- All Superinterfaces:
AnimationStaticLocationProvider
,INetworkMarkupElement
,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>, extends INetworkMarkupElement, AnimationStaticLocationProviderP extends IPath<N>>
Basic interface for network node.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Modifier and Type | Method | Description |
---|---|---|
void | addConnection | |
Class<? extends ExtAgentWithSpatialMetrics> | getCompatibleAgentExtensionClass() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
P | getConnection |
Returns connection of this node with another node by index.
|
int | getConnectionsCount() |
Amount of the node's connections to other nodes.
|
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
|
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
|
String | getName() | |
double | getTransferDistance | |
Position | getTransferPositionByPercent | |
void | setFillColor |
Sets the fill color (or
Texture ) of the shape. |
void | setLineColor |
Sets the line color (or
Texture ) of the markup element. |
int getConnectionsCount()
Amount of the node's connections to other nodes.
- Returns:
- number of connections
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
void addConnection(P path, PathEndType type)
@AnyLogicInternalAPI double getTransferDistance(P path1, P path2)
@AnyLogicInternalAPI Position getTransferPositionByPercent(P path1, P path2, double percent, Position out)
String getName()
void setLineColor(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
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
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
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
Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
- Returns:
- the fill texture of the shape
void setFillColor(Paint color)
Sets the fill color (or
Texture
) of the shape.- Parameters:
fillColor
- the new fill color, null = do not fill the shape
@AnyLogicInternalAPI Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.