Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.ConveyorNode
- 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
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.ConveyorMarkupElement<T>
- com.anylogic.engine.markup.ConveyorNode<Agent>
- com.anylogic.engine.markup.ConveyorPointNode
- All Implemented Interfaces:
AbstractPositionalMarkup,AggregatableAnimationElement,AnimationStaticLocationProvider,HasLevel,INetworkMarkupElement,INode<ConveyorNode<?>,,ConveyorPath<?>> SVGElement,UsdElement,Serializable
public class ConveyorPointNode extends ConveyorNode<Agent> implements AbstractPositionalMarkup
- See Also:
- Serialized Form
| Constructor | Description |
|---|---|
ConveyorPointNode() | |
ConveyorPointNode |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
ConveyorPointNode |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
| 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.
|
double | getNearestPoint |
Calculates (using the
output object) the point in this space markup element
nearest to the given point. |
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). |
double | getTransferDistance | |
Point | randomPointInside |
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, setXYZerror, 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 ConveyorPointNode()
@Deprecated public ConveyorPointNode(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner-drawMode-isPublic-
@AnyLogicInternalAPI @Deprecated @SafeVarargs public 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
- Parameters:
owner-drawMode-isPublic-x-y-z-pathEnds-
public double getTransferDistance(ConveyorPath<?> path1, ConveyorPath<?> path2)
- Specified by:
getTransferDistancein interfaceINode<ConveyorNode<?>,ConveyorPath<?>>
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- Overrides:
getNearestPointin classConveyorNode<Agent>- 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- Overrides:
randomPointInsidein classConveyorNode<Agent>- 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- Overrides:
getPositionin classConveyorNode<Agent>- 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- Overrides:
containsin classConveyorNode<Agent>- 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
public void addConnection(ConveyorPath<?> path, PathEndType type)
- Specified by:
addConnectionin interfaceINode<ConveyorNode<?>,ConveyorPath<?>> - Overrides:
addConnectionin classConveyorNode<Agent>