Package com.anylogic.engine.routing
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- isEmpty
- size
- recalculateDistance
- getMovement
- getFirstMovement
- getLastMovement
- getMovements
- addMovement
- addMovement
- addMovements
- addMovements
- add
- distance
- contains
- contains
- addPlainMovement
- addPlainMovement
- addPathMovement
- addPathMovement
- addNodeTransferMovement
- addPortMovement
- createPlainMovement
- createPlainMovement
- createPathMovement
- createPathMovement
- createPortMovement
- createNodeTransferMovement
- removeMovement
- removeMovement
- removeFirstMovement
- removeLastMovement
- getSourceLocation
- getTargetLocation
- toString
- getLocationAtOffset
- getLocationAtOffset
- findShortestRoute
- iterator
- java.lang.Object
- com.anylogic.engine.routing.RouteData
- All Implemented Interfaces:
Serializable
,Iterable<IMovement>
public class RouteData extends Object implements Serializable, Iterable<IMovement>
- See Also:
- Serialized Form
Constructor | Description |
---|---|
RouteData | |
RouteData | |
RouteData |
public RouteData(RouteData routeData)
public RouteData(IMovement... movements)
public RouteData(Collection<? extends IMovement> movements)
public boolean isEmpty()
public int size()
@AnyLogicInternalAPI public double recalculateDistance()
public IMovement getMovement(int index)
public IMovement getFirstMovement()
public IMovement getLastMovement()
public List<IMovement> getMovements()
public void addMovement(IMovement movement)
public void addMovement(int index, IMovement movement)
public void addMovements(IMovement... movements)
public void addMovements(Collection<? extends IMovement> movements)
public void add(RouteData routeData)
public double distance(LengthUnits units)
public boolean contains(INode<?, ?> node)
public boolean contains(IPath<?> path)
public void addPlainMovement(INetworkMarkupElement networkElement, Point source, Point target)
@AnyLogicInternalAPI public void addPlainMovement(Agent space, Point source, Point target)
public void addPathMovement(IPath<?> path, boolean forward)
public void addPathMovement(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units)
public void addNodeTransferMovement(INode<?, ?> node, IPath<?> sourcePath, IPath<?> targetPath)
public void addPortMovement(MarkupPort source, MarkupPort target)
public static IMovement createPlainMovement(INetworkMarkupElement networkElement, Point source, Point target)
@AnyLogicInternalAPI public static IMovement createPlainMovement(Agent space, Point source, Point target)
public static IMovement createPathMovement(IPath<?> path, boolean forward)
public static IMovement createPathMovement(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units)
public static IMovement createPortMovement(MarkupPort source, MarkupPort target)
public static IMovement createNodeTransferMovement(INode<?, ?> node, IPath<?> sourcePath, IPath<?> targetPath)
public boolean removeMovement(IMovement movement)
public void removeMovement(int index)
public void removeFirstMovement()
public void removeLastMovement()
public IRouteLocation getSourceLocation()
public IRouteLocation getTargetLocation()
public String toString()
@AnyLogicInternalAPI public IRouteLocation getLocationAtOffset(double offset, LengthUnits units)
@AnyLogicInternalAPI public IRouteLocation getLocationAtOffset(double offset, LengthUnits units, IRouteLocation out)
public static RouteData findShortestRoute(Collection<RouteData> collection, LengthUnits units)
public Iterator<IMovement> iterator()