AnyLogic
Expand
Font size

Interface AnimationStaticLocationProvider

All Superinterfaces:
Serializable
All Known Subinterfaces:
AnimationMovingLocationProvider, INode<N,P>, IPath<N>
All Known Implementing Classes:
AreaNode, ConveyorCustomStation, ConveyorNode, ConveyorPath, ConveyorPointNode, ConveyorPortImpl, ConveyorTransferTable, ConveyorTransitionalNode, ConveyorTurnStation, ConveyorTurntable, GISNode, GISPoint, GISRegion, GISRoute, NetworkPortImpl, Node, Path, PointNode, PolygonalNode, QueueArea, RectangularNode

public interface AnimationStaticLocationProvider
extends Serializable

Method Summary

Modifier and TypeMethodDescription
PositiongetPosition(int index, int totalNumber, Position out)
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).
AgentgetSpace()
Returns the space where the animation location is defined

Method Details

getSpace

Agent getSpace()
Returns the space where the animation location is defined
Returns:
the space associated with this object

getPosition

Position getPosition(int index,
 int totalNumber,
 Position out)
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).
Parameters:
index - the index of some item positions, should be not negative and less than totalNumber
totalNumber - the total number of item positions, should be positive
out - output object to write to, may be null
Returns:
the Position object with coordinates of the requested item position