Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.NetworkMarkupElement
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider
- Methods inherited from interface com.anylogic.engine.markup.HasLevel
- Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
- Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement
- Methods inherited from interface com.anylogic.engine.markup.INode
- Methods inherited from interface com.anylogic.engine.markup.LevelElement
- Constructor Details
- Method Details
- getMaterialLibraryDescriptor
- addConnection
- isLimitSpeed
- setLimitSpeed
- getMaxSpeed
- setMaxSpeed
- getZ
- getConnectionsCount
- getConnection
- getTransferDistance
- setLineColor
- setLineColor
- getLineColor
- getLineTexture
- setFillColor
- setFillColor
- getFillColor
- getFillTexture
- getTransferPositionByPercent
- getCompatibleAgentExtensionClass
- getTransporters
- getNumberOfTransporters
- getTransporter
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.NetworkMarkupElement
- com.anylogic.engine.markup.Node
- All Implemented Interfaces:
AggregatableAnimationElement
,AnimationStaticLocationProvider
,HasLevel
,IMarkupLibraryDescriptor
,INetworkMarkupElement
,INode<Node,
,Path> LevelElement
,LevelMarkup
,com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
,com.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>
,SVGElement
,UsdElement
,Serializable
- Direct Known Subclasses:
AreaNode
,NetworkPortImpl
,PointNode
public abstract class Node extends NetworkMarkupElement implements INode<Node,Path>, com.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>, LevelMarkup
Implementation of
INode
for network in continuous space.- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
Node() | |
Node | |
Node |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Node |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method | Description |
---|---|---|
void | addConnection | |
final Class<? extends ExtAgentWithSpatialMetrics> | getCompatibleAgentExtensionClass() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
final Path | getConnection |
Returns connection of this node with another node by index.
|
final 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
|
abstract 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) |
abstract Texture | getLineTexture() |
Returns the line texture of the markup element, if the markup element has line texture
|
com.anylogic.engine.markup.material_handling.INodeDescriptor<Agent> | getMaterialLibraryDescriptor() | |
double | getMaxSpeed |
Returns max allowed speed in this node in specified speed units
|
int | getNumberOfTransporters() |
Returns the number of path-guided transporters inside node which is a part of a network.
|
final double | getTransferDistance | |
Position | getTransferPositionByPercent | |
Agent | getTransporter |
Returns the path-guided transporter with specified index inside the node which is a part of a network.
|
List<Agent> | getTransporters() |
Returns the list of path-guided transporters inside the node which is a part of a network.
|
abstract double | getZ() |
Returns the z coordinate of the node.
|
boolean | isLimitSpeed() |
Return true if speed is limited in this node, false otherwise
|
void | setFillColor |
Sets the fill color of the shape.
|
void | setFillColor |
Sets the fill color (or
Texture ) of the shape. |
void | setLimitSpeed |
Enables speed limit in this node if the argument is true, disables it if the argument is false
The element should be uninitialized
|
abstract void | setLineColor |
Sets the line color of the markup element.
|
abstract void | setLineColor |
Sets the line color (or
Texture ) of the markup element. |
void | setMaxSpeed |
Sets the maximum allowed speed in specified units
|
getDrawMode, getLevel, getNearestPoint, getNearestPoint, getNearestPoint, getNearestPoint, getNearestPoint, getNetwork, setLevel
contains, error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
getMarkup, setMarkup
contains, getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside
public Node()
public Node(Agent owner)
@SafeVarargs @Deprecated public Node(Agent owner, ShapeDrawMode drawMode, boolean isPublic, Paint fillColor, PathEnd<Path>... pathEnds)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-fillColor
-pathEnds
-
@SafeVarargs @Deprecated public Node(Agent owner, ShapeDrawMode drawMode, boolean isPublic, Paint fillColor, boolean limitSpeed, double maxSpeedInMPS, PathEnd<Path>... pathEnds)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-fillColor
-limitSpeed
-maxSpeedInMPS
-pathEnds
-
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.INodeDescriptor<Agent> getMaterialLibraryDescriptor()
public void addConnection(Path path, PathEndType type)
- Specified by:
addConnection
in interfaceINode<Node,
Path>
public boolean isLimitSpeed()
Return true if speed is limited in this node, false otherwise
public void setLimitSpeed(boolean limitSpeed)
Enables speed limit in this node if the argument is true, disables it if the argument is false
The element should be uninitialized
- Parameters:
limitSpeed
- argument flag
public double getMaxSpeed(SpeedUnits units)
Returns max allowed speed in this node in specified speed units
- Parameters:
units
- speed units- Returns:
- max speed
public void setMaxSpeed(double maxSpeed, SpeedUnits units)
Sets the maximum allowed speed in specified units
- Parameters:
maxSpeed
- new max speedunits
- speed units
public abstract double getZ()
Returns the z coordinate of the node.
- Returns:
- the z coordinate of the node
public final int getConnectionsCount()
Description copied from interface:
INode
Amount of the node's connections to other nodes.
- Specified by:
getConnectionsCount
in interfaceINode<Node,
Path> - Returns:
- number of connections
public final Path getConnection(int index)
Description copied from interface:
INode
Returns connection of this node with another node by index.
- Specified by:
getConnection
in interfaceINode<Node,
Path> - Parameters:
index
- the index of required connection in range (0
,this.getConnectionsCount() - 1
)- Returns:
- instance of
com.anylogic.engine.markup.IPath
interface
@AnyLogicInternalAPI public final double getTransferDistance(Path path1, Path path2)
- Specified by:
getTransferDistance
in interfaceINode<Node,
Path>
public abstract void setLineColor(Color lineColor)
Sets the line color of the markup element.
- Parameters:
lineColor
- the new line color, null = do not draw the markup element line
public abstract void setLineColor(Paint lineColor)
Sets the line color (or
Texture
) of the markup element.- Specified by:
setLineColor
in interfaceINode<Node,
Path> - Parameters:
lineColor
- the new line color, null = do not draw the markup element line
public abstract 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)- Specified by:
getLineColor
in interfaceINode<Node,
Path> - Returns:
- the line color of the markup element
public abstract Texture getLineTexture()
Returns the line texture of the markup element, if the markup element has line texture
- Specified by:
getLineTexture
in interfaceINode<Node,
Path> - Returns:
- the line texture of the markup element
public void setFillColor(Color fillColor)
Sets the fill color of the shape.
- Parameters:
fillColor
- the new fill color, null = do not fill the shape
public void setFillColor(Paint fillColor)
Sets the fill color (or
Texture
) of the shape.- Specified by:
setFillColor
in interfaceINode<Node,
Path> - Parameters:
fillColor
- the new fill color, null = do not fill the shape
public 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)- Specified by:
getFillColor
in interfaceINode<Node,
Path> - Returns:
- the fill color of the shape
public Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
- Specified by:
getFillTexture
in interfaceINode<Node,
Path> - Returns:
- the fill texture of the shape
@AnyLogicInternalAPI public Position getTransferPositionByPercent(Path path1, Path path2, double percent, Position out)
- Specified by:
getTransferPositionByPercent
in interfaceINode<Node,
Path>
@AnyLogicInternalAPI public final Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
Description copied from interface:
INode
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.
- Specified by:
getCompatibleAgentExtensionClass
in interfaceINode<Node,
Path>
public List<Agent> getTransporters()
Returns the list of path-guided transporters inside the node which is a part of a network.
- Specified by:
getTransporters
in interfacecom.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>
- Returns:
- list of path-guided transporters inside node.
public int getNumberOfTransporters()
Returns the number of path-guided transporters inside node which is a part of a network.
- Specified by:
getNumberOfTransporters
in interfacecom.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>
- Returns:
- number of path-guided transporters inside the node.
public Agent getTransporter(int index)
Returns the path-guided transporter with specified index inside the node which is a part of a network.
- Specified by:
getTransporter
in interfacecom.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>
- Returns:
- path-guided transporter with a specified index.