AnyLogic
Expand
Font size
Type Parameters:
N - network node, an instance of INode
P - network path, an instance of IPath
All Superinterfaces:
AnimationStaticLocationProvider, INetworkMarkupElement, java.io.Serializable
All Known Implementing Classes:
AreaNode, ConveyorCustomStation, ConveyorNode, ConveyorPointNode, ConveyorPortImpl, ConveyorTransferTable, ConveyorTransitionalNode, ConveyorTurnStation, ConveyorTurntable, GISNode, GISPoint, GISRegion, NetworkPortImpl, Node, PointNode, PolygonalNode, QueueArea, RectangularNode

public interface INode<N extends INode<N,​P>,​P extends IPath<N>>
extends INetworkMarkupElement, AnimationStaticLocationProvider
Basic interface for network node.
Author:
AnyLogic North America, LLC https://anylogic.com

Method Summary

All Methods Instance Methods Abstract Methods 
void addConnection​(P path, PathEndType type)  
java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
P getConnection​(int index)
Returns connection of this node with another node by index.
int getConnectionsCount()
Amount of the node's connections to other nodes.
java.awt.Color getFillColor()
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case getFillTexture() should be used instead)
Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
java.awt.Color getLineColor()
Returns the line color of the markup element, or null if markup element has no line color or has textured line (in this case getLineTexture() should be used instead)
Texture getLineTexture()
Returns the line texture of the markup element, if the markup element has line texture
java.lang.String getName()  
double getTransferDistance​(P path1, P path2)  
Position getTransferPositionByPercent​(P path1, P path2, double percent, Position out)  
void setFillColor​(java.awt.Paint color)
Sets the fill color (or Texture) of the shape.
void setLineColor​(java.awt.Paint lineColor)
Sets the line color (or Texture) of the markup element.
Modifier and Type Method Description

Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider

getPosition, getSpace

Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement

contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside

Method Detail

getConnectionsCount

int getConnectionsCount()
Amount of the node's connections to other nodes.
Returns:
number of connections

getConnection

P getConnection​(int index)
Returns connection of this node with another node by index.
Parameters:
index - the index of required connection in range (0, this.getConnectionsCount() - 1)
Returns:
instance of com.anylogic.engine.markup.IPath interface

addConnection

void addConnection​(P path,
                   PathEndType type)

getTransferDistance

@AnyLogicInternalAPI
double getTransferDistance​(P path1,
                           P path2)

getTransferPositionByPercent

@AnyLogicInternalAPI
Position getTransferPositionByPercent​(P path1,
                                      P path2,
                                      double percent,
                                      Position out)

getName

java.lang.String getName()

setLineColor

void setLineColor​(java.awt.Paint lineColor)
Sets the line color (or Texture) of the markup element.
Parameters:
lineColor - the new line color, null = do not draw the markup element line

getLineColor

java.awt.Color getLineColor()
Returns the line color of the markup element, or null if markup element has no line color or has textured line (in this case getLineTexture() should be used instead)
Returns:
the line color of the markup element

getLineTexture

Texture getLineTexture()
Returns the line texture of the markup element, if the markup element has line texture
Returns:
the line texture of the markup element

getFillColor

java.awt.Color getFillColor()
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case getFillTexture() should be used instead)
Returns:
the fill color of the shape

getFillTexture

Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
Returns:
the fill texture of the shape

setFillColor

void setFillColor​(java.awt.Paint color)
Sets the fill color (or Texture) of the shape.
Parameters:
fillColor - the new fill color, null = do not fill the shape

getCompatibleAgentExtensionClass

@AnyLogicInternalAPI
java.lang.Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
How can we improve this article?