Package com.anylogic.engine.markup
- Field Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.ConveyorMarkupElement
- 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.AbstractPositionalMarkup
- Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider
- 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.presentation.SVGElement
- Methods inherited from interface com.anylogic.engine.presentation.UsdElement
- Method Details
- getNetwork
- getX
- getY
- getZ
- getXYZ
- setXYZ
- getIncomingPaths
- getOutgoingPaths
- getConnectionsCount
- getConnection
- getConnections
- addConnection
- getLineColor
- getLineTexture
- setLineColor
- setLineColor
- getFillColor
- getFillTexture
- setFillColor
- setFillColor
- getCompatibleAgentExtensionClass
- getTransferPositionByPercent
- postInitialize
- getNearestPoint
- randomPointInside
- getPosition
- contains
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.ConveyorMarkupElement<T>
- com.anylogic.engine.markup.ConveyorNode<T>
- All Implemented Interfaces:
AbstractPositionalMarkup,AggregatableAnimationElement,AnimationStaticLocationProvider,HasLevel,INetworkMarkupElement,INode<ConveyorNode<?>,,ConveyorPath<?>> SVGElement,UsdElement,Serializable
- Direct Known Subclasses:
ConveyorCustomStation,ConveyorPointNode,ConveyorPortImpl,ConveyorTransitionalNode
public abstract class ConveyorNode<T extends Agent> extends ConveyorMarkupElement<T> implements INode<ConveyorNode<?>,ConveyorPath<?>>, AbstractPositionalMarkup
- See Also:
- Serialized Form
| Modifier and Type | Method | Description |
|---|---|---|
void | addConnection | |
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
Class<? extends ExtAgentWithSpatialMetrics> | getCompatibleAgentExtensionClass() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
ConveyorPath<?> | getConnection |
Returns connection of this node with another node by index.
|
List<ConveyorPath<?>> | getConnections() |
Returns the list of ConveyorPath<?> objects connected to this node
|
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 INode.getFillTexture() should be used instead) |
Texture | getFillTexture() |
Returns the fill texture of the shape, if the shape has fill texture
|
List<ConveyorPath<?>> | getIncomingPaths() |
Returns the list of all incoming conveyors, i.e.
|
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 INode.getLineTexture() should be used instead) |
Texture | getLineTexture() |
Returns the line texture of the markup element, if the markup element has line texture
|
double | getNearestPoint |
Calculates (using the
output object) the point in this space markup element
nearest to the given point. |
ConveyorNetwork | getNetwork() | |
List<ConveyorPath<?>> | getOutgoingPaths() |
Returns the list of all outgoing conveyors, i.e.
|
Position | getPosition |
Returns the item position with the given index.
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1). |
Position | getTransferPositionByPercent | |
double | getX() |
Get X coordinate of this element
|
Point | getXYZ |
Returns the location of this element
|
double | getY() |
Get Y coordinate of this element
|
final double | getZ() |
Get Z coordinate of this element
|
void | postInitialize() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
Point | randomPointInside |
Returns the randomly chosen point inside/along the given space markup element.
|
void | setFillColor |
Sets the fill color of the shape.
|
void | setFillColor |
Sets the fill color (or
Texture) of the shape. |
void | setLineColor |
Sets the line color of the markup element.
|
void | setLineColor |
Sets the line color (or
Texture) of the markup element. |
void | setXYZ |
Sets the location of this node.
|
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isOnly3D, isPublic, onClick, remove, setDrawMode, setOwnerdiscardOwner, executeUserAction, findSVGElement, getGroupOrOwner, getInspect, getInspectionWindowString, getName, getOrGenerateUSDId, getSVGComponent, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setInspect, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGPropertiesexecuteUserAction, findSVGElement, getGroupOrOwner, getPresentable, getSVGComponent, getSVGId, isOnly3D, removeSVGFromOwner, resetSVGState, updateSVGPropertiespublic ConveyorNetwork getNetwork()
- Specified by:
getNetworkin interfaceINetworkMarkupElement- Overrides:
getNetworkin classConveyorMarkupElement<T extends Agent>- Returns:
- network this markup element belongs to
or
nullif this element isn't a part of a network
public double getX()
Get X coordinate of this element
- Specified by:
getXin interfaceAbstractPositionalMarkup- Returns:
- X coordinate of this element
public double getY()
Get Y coordinate of this element
- Specified by:
getYin interfaceAbstractPositionalMarkup- Returns:
- Y coordinate of this element
public final double getZ()
Get Z coordinate of this element
- Specified by:
getZin interfaceAbstractPositionalMarkup- Returns:
- Z coordinate of this element
public Point getXYZ(Point out)
Returns the location of this element
- Parameters:
out- output object to write to, may benull- Returns:
- the Point object with coordinates of the node
public void setXYZ(double x, double y, double z)
Sets the location of this node. The node should be unitialized
- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate
public List<ConveyorPath<?>> getIncomingPaths()
Returns the list of all incoming conveyors, i.e. the conveyors, transferring agents (material items) to the transfer table, returns null if none.
- Returns:
- the list of all incoming conveyors
public List<ConveyorPath<?>> getOutgoingPaths()
Returns the list of all outgoing conveyors, i.e. the conveyors, accepting agents (material items) from the transfer table, returns null if none.
- Returns:
- the list of all outgoing conveyors
public int getConnectionsCount()
Description copied from interface:
INodeAmount of the node's connections to other nodes.
- Specified by:
getConnectionsCountin interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Returns:
- number of connections
public ConveyorPath<?> getConnection(int index)
Description copied from interface:
INodeReturns connection of this node with another node by index.
- Specified by:
getConnectionin interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Parameters:
index- the index of required connection in range (0,this.getConnectionsCount() - 1)- Returns:
- instance of
com.anylogic.engine.markup.IPathinterface
public List<ConveyorPath<?>> getConnections()
Returns the list of ConveyorPath<?> objects connected to this node
- Returns:
- the list of connections
public void addConnection(ConveyorPath<?> path, PathEndType type)
- Specified by:
addConnectionin interfaceINode<ConveyorNode<?>,ConveyorPath<?>>
public Color getLineColor()
Description copied from interface:
INodeReturns the line color of the markup element, or
null if markup element has no line color or
has textured line (in this case INode.getLineTexture() should be used instead)- Specified by:
getLineColorin interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Returns:
- the line color of the markup element
public Texture getLineTexture()
Description copied from interface:
INodeReturns the line texture of the markup element, if the markup element has line texture
- Specified by:
getLineTexturein interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Returns:
- the line texture of the markup element
public 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 void setLineColor(Paint lineColor)
Description copied from interface:
INodeSets the line color (or
Texture) of the markup element.- Specified by:
setLineColorin interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Parameters:
lineColor- the new line color, null = do not draw the markup element line
public Color getFillColor()
Description copied from interface:
INodeReturns the fill color of the shape, or
null if shape has no fill color or
has textured fill (in this case INode.getFillTexture() should be used instead)- Specified by:
getFillColorin interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Returns:
- the fill color of the shape
public Texture getFillTexture()
Description copied from interface:
INodeReturns the fill texture of the shape, if the shape has fill texture
- Specified by:
getFillTexturein interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Returns:
- the fill texture of the shape
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)
Description copied from interface:
INodeSets the fill color (or
Texture) of the shape.- Specified by:
setFillColorin interfaceINode<ConveyorNode<?>,ConveyorPath<?>>
public Class<? extends ExtAgentWithSpatialMetrics> getCompatibleAgentExtensionClass()
Description copied from interface:
INodeThis 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:
getCompatibleAgentExtensionClassin interfaceINode<ConveyorNode<?>,ConveyorPath<?>>
@AnyLogicInternalAPI public Position getTransferPositionByPercent(ConveyorPath<?> path1, ConveyorPath<?> path2, double percent, Position out)
- Specified by:
getTransferPositionByPercentin interfaceINode<ConveyorNode<?>,ConveyorPath<?>>
@AnyLogicInternalAPI public void postInitialize()
Description copied from interface:
AggregatableAnimationElementThis 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:
postInitializein interfaceAggregatableAnimationElement
public double getNearestPoint(Point givenPoint, Point out)
Description copied from interface:
INetworkMarkupElementCalculates (using the
output object) the point in this space markup element
nearest to the given point. Returns the square of distance to the point.- Specified by:
getNearestPointin interfaceINetworkMarkupElement- Parameters:
givenPoint- given pointout- the output point to write result to.- Returns:
- the square of distance to the nearest point
public Point randomPointInside(Random rng, Point out)
Description copied from interface:
INetworkMarkupElementReturns the randomly chosen point inside/along the given space markup element.
This method utilises the given Random Number Generator.
- Specified by:
randomPointInsidein interfaceINetworkMarkupElement- Parameters:
rng- the random number generator.out- output object to write to, may benull- Returns:
- the randomly chosen point
public Position getPosition(int index, int totalNumber, Position out)
Description copied from interface:
AnimationStaticLocationProviderReturns the item position with the given index.
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1).
In case of any wrong argument returns zero-index position (position for index=0 with totalNumber=1).
- Specified by:
getPositionin interfaceAnimationStaticLocationProvider- Parameters:
index- the index of some item positions, should be not negative and less thantotalNumbertotalNumber- the total number of item positions, should be positiveout- output object to write to, may benull- Returns:
- the Position object with coordinates of the requested item position
public boolean contains(double px, double py)
Description copied from class:
MarkupShapeTest if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y)
- Specified by:
containsin interfaceINetworkMarkupElement- Specified by:
containsin classMarkupShape- Parameters:
px- the x coordinate relative to this shape's containerpy- the y coordinate relative to this shape's container- Returns:
trueif the shape contains the point with the given coordinates