AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.routing.RouteData
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<IMovement>

public class RouteData
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<IMovement>
See Also:
Serialized Form

Constructor Summary

Constructors 
RouteData​(IMovement... movements)  
RouteData​(RouteData routeData)  
RouteData​(java.util.Collection<? extends IMovement> movements)  
Constructor Description

Method Summary

All Methods Static Methods Instance Methods Concrete Methods 
void add​(RouteData routeData)  
void addMovement​(int index, IMovement movement)  
void addMovement​(IMovement movement)  
void addMovements​(IMovement... movements)  
void addMovements​(java.util.Collection<? extends IMovement> movements)  
void addNodeTransferMovement​(INode<?,​?> node, IPath<?> sourcePath, IPath<?> targetPath)  
void addPathMovement​(IPath<?> path, boolean forward)  
void addPathMovement​(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units)  
void addPlainMovement​(Agent space, Point source, Point target)  
void addPlainMovement​(INetworkMarkupElement networkElement, Point source, Point target)  
void addPortMovement​(MarkupPort source, MarkupPort target)  
boolean contains​(INode<?,​?> node)  
boolean contains​(IPath<?> path)  
static IMovement createNodeTransferMovement​(INode<?,​?> node, IPath<?> sourcePath, IPath<?> targetPath)  
static IMovement createPathMovement​(IPath<?> path, boolean forward)  
static IMovement createPathMovement​(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units)  
static IMovement createPlainMovement​(Agent space, Point source, Point target)  
static IMovement createPlainMovement​(INetworkMarkupElement networkElement, Point source, Point target)  
static IMovement createPortMovement​(MarkupPort source, MarkupPort target)  
double distance​(LengthUnits units)  
static RouteData findShortestRoute​(java.util.Collection<RouteData> collection, LengthUnits units)  
IMovement getFirstMovement()  
IMovement getLastMovement()  
IRouteLocation getLocationAtOffset​(double offset, LengthUnits units)  
IRouteLocation getLocationAtOffset​(double offset, LengthUnits units, IRouteLocation out)  
IMovement getMovement​(int index)  
java.util.List<IMovement> getMovements()  
IRouteLocation getSourceLocation()  
IRouteLocation getTargetLocation()  
boolean isEmpty()  
java.util.Iterator<IMovement> iterator()  
double recalculateDistance()  
void removeFirstMovement()  
void removeLastMovement()  
void removeMovement​(int index)  
boolean removeMovement​(IMovement movement)  
int size()  
java.lang.String toString()  
Modifier and Type Method Description

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods inherited from interface java.lang.Iterable

forEach, spliterator

Constructor Detail

RouteData

public RouteData​(RouteData routeData)

RouteData

public RouteData​(IMovement... movements)

RouteData

public RouteData​(java.util.Collection<? extends IMovement> movements)

Method Detail

isEmpty

public boolean isEmpty()

size

public int size()

recalculateDistance

@AnyLogicInternalAPI
public double recalculateDistance()

getMovement

public IMovement getMovement​(int index)

getFirstMovement

public IMovement getFirstMovement()

getLastMovement

public IMovement getLastMovement()

getMovements

public java.util.List<IMovement> getMovements()

addMovement

public void addMovement​(IMovement movement)

addMovement

public void addMovement​(int index,
                        IMovement movement)

addMovements

public void addMovements​(IMovement... movements)

addMovements

public void addMovements​(java.util.Collection<? extends IMovement> movements)

add

public void add​(RouteData routeData)

distance

public double distance​(LengthUnits units)

contains

public boolean contains​(INode<?,​?> node)

contains

public boolean contains​(IPath<?> path)

addPlainMovement

public void addPlainMovement​(INetworkMarkupElement networkElement,
                             Point source,
                             Point target)

addPlainMovement

@AnyLogicInternalAPI
public void addPlainMovement​(Agent space,
                             Point source,
                             Point target)

addPathMovement

public void addPathMovement​(IPath<?> path,
                            boolean forward)

addPathMovement

public void addPathMovement​(IPath<?> path,
                            double sourceOffset,
                            double targetOffset,
                            LengthUnits units)

addNodeTransferMovement

public void addNodeTransferMovement​(INode<?,​?> node,
                                    IPath<?> sourcePath,
                                    IPath<?> targetPath)

addPortMovement

public void addPortMovement​(MarkupPort source,
                            MarkupPort target)

createPlainMovement

public static IMovement createPlainMovement​(INetworkMarkupElement networkElement,
                                            Point source,
                                            Point target)

createPlainMovement

@AnyLogicInternalAPI
public static IMovement createPlainMovement​(Agent space,
                                            Point source,
                                            Point target)

createPathMovement

public static IMovement createPathMovement​(IPath<?> path,
                                           boolean forward)

createPathMovement

public static IMovement createPathMovement​(IPath<?> path,
                                           double sourceOffset,
                                           double targetOffset,
                                           LengthUnits units)

createPortMovement

public static IMovement createPortMovement​(MarkupPort source,
                                           MarkupPort target)

createNodeTransferMovement

public static IMovement createNodeTransferMovement​(INode<?,​?> node,
                                                   IPath<?> sourcePath,
                                                   IPath<?> targetPath)

removeMovement

public boolean removeMovement​(IMovement movement)

removeMovement

public void removeMovement​(int index)

removeFirstMovement

public void removeFirstMovement()

removeLastMovement

public void removeLastMovement()

getSourceLocation

public IRouteLocation getSourceLocation()

getTargetLocation

public IRouteLocation getTargetLocation()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLocationAtOffset

@AnyLogicInternalAPI
public IRouteLocation getLocationAtOffset​(double offset,
                                          LengthUnits units)

getLocationAtOffset

@AnyLogicInternalAPI
public IRouteLocation getLocationAtOffset​(double offset,
                                          LengthUnits units,
                                          IRouteLocation out)

findShortestRoute

public static RouteData findShortestRoute​(java.util.Collection<RouteData> collection,
                                          LengthUnits units)

iterator

public java.util.Iterator<IMovement> iterator()
Specified by:
iterator in interface java.lang.Iterable<IMovement>
How can we improve this article?