public class ConveyorPointNode extends ConveyorNode<Agent>
Constructor and Description |
---|
ConveyorPointNode() |
ConveyorPointNode(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
ConveyorPointNode(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
double x,
double y,
double z,
PathEnd<ConveyorPath<?>>... pathEnds)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method and Description |
---|---|
void |
addConnection(ConveyorPath<?> path,
PathEndType type) |
boolean |
contains(double px,
double py)
Test 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)
|
double |
getNearestPoint(Point givenPoint,
Point out)
Calculates (using the
output object) the point in this space markup element
nearest to the given point. |
Position |
getPosition(int index,
int totalNumber,
Position out)
Returns the item position with the given index.
|
double |
getTransferDistance(ConveyorPath<?> path1,
ConveyorPath<?> path2) |
Point |
randomPointInside(java.util.Random rng,
Point out)
Returns the randomly chosen point inside/along the given space markup element.
|
getCompatibleAgentExtensionClass, getConnection, getConnections, getConnectionsCount, getFillColor, getFillTexture, getIncomingPaths, getLineColor, getLineTexture, getNetwork, getOutgoingPaths, getTransferPositionByPercent, getX, getXYZ, getY, getZ, postInitialize, setFillColor, setFillColor, setLineColor, setLineColor, setXYZ
getLevel, setNetwork
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSpace, randomPointInside, randomPointInside, randomPointInside
getSpace
public ConveyorPointNode()
@Deprecated public ConveyorPointNode(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
owner
- drawMode
- isPublic
- @AnyLogicInternalAPI @Deprecated @SafeVarargs public ConveyorPointNode(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, PathEnd<ConveyorPath<?>>... pathEnds)
owner
- drawMode
- isPublic
- x
- y
- z
- pathEnds
- public double getTransferDistance(ConveyorPath<?> path1, ConveyorPath<?> path2)
public double getNearestPoint(Point givenPoint, Point out)
INetworkMarkupElement
output
object) the point in this space markup element
nearest to the given point. Returns the square of distance to the point.getNearestPoint
in interface INetworkMarkupElement
getNearestPoint
in class ConveyorNode<Agent>
givenPoint
- given pointout
- the output point to write result to.public Point randomPointInside(java.util.Random rng, Point out)
INetworkMarkupElement
randomPointInside
in interface INetworkMarkupElement
randomPointInside
in class ConveyorNode<Agent>
rng
- the random number generator.out
- output object to write to, may be null
public Position getPosition(int index, int totalNumber, Position out)
AnimationStaticLocationProvider
getPosition
in interface AnimationStaticLocationProvider
getPosition
in class ConveyorNode<Agent>
index
- the index of some item positions, should be not negative and less than totalNumber
totalNumber
- the total number of item positions, should be positiveout
- output object to write to, may be null
public boolean contains(double px, double py)
MarkupShape
contains
in interface INetworkMarkupElement
contains
in class ConveyorNode<Agent>
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containertrue
if the shape contains the point with the given
coordinatespublic void addConnection(ConveyorPath<?> path, PathEndType type)
addConnection
in interface INode<ConveyorNode<?>,ConveyorPath<?>>
addConnection
in class ConveyorNode<Agent>
Copyright © AnyLogic North America, LLC. All Rights Reserved.