AnyLogic AnyLogic
Expand
Font size

Interface AnimationStaticLocationProvider

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

public interface AnimationStaticLocationProvider
extends java.io.Serializable

Method Summary

All Methods Instance Methods Abstract Methods 
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).
Agent getSpace()
Returns the space where the animation location is defined
Modifier and Type Method Description

Method Detail

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
How can we improve this article?