AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable, Iterable<IMovement>

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

Constructor Summary

ConstructorDescription
RouteData(IMovement... movements) 
RouteData(RouteData routeData) 
RouteData(Collection<? extends IMovement> movements) 

Method Summary

Modifier and TypeMethodDescription
voidadd(RouteData routeData) 
voidaddMovement(int index, IMovement movement) 
voidaddMovement(IMovement movement) 
voidaddMovements(IMovement... movements) 
voidaddMovements(Collection<? extends IMovement> movements) 
voidaddNodeTransferMovement(INode<?,?> node, IPath<?> sourcePath, IPath<?> targetPath) 
voidaddPathMovement(IPath<?> path, boolean forward) 
voidaddPathMovement(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units) 
voidaddPlainMovement(Agent space, Point source, Point target) 
voidaddPlainMovement(INetworkMarkupElement networkElement, Point source, Point target) 
voidaddPortMovement(MarkupPort source, MarkupPort target) 
booleancontains(INode<?,?> node) 
booleancontains(IPath<?> path) 
static IMovementcreateNodeTransferMovement(INode<?,?> node, IPath<?> sourcePath, IPath<?> targetPath) 
static IMovementcreatePathMovement(IPath<?> path, boolean forward) 
static IMovementcreatePathMovement(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units) 
static IMovementcreatePlainMovement(Agent space, Point source, Point target) 
static IMovementcreatePlainMovement(INetworkMarkupElement networkElement, Point source, Point target) 
static IMovementcreatePortMovement(MarkupPort source, MarkupPort target) 
doubledistance(LengthUnits units) 
static RouteDatafindShortestRoute(Collection<RouteData> collection, LengthUnits units) 
IMovementgetFirstMovement() 
IMovementgetLastMovement() 
IRouteLocationgetLocationAtOffset(double offset, LengthUnits units) 
IRouteLocationgetLocationAtOffset(double offset, LengthUnits units, IRouteLocation out) 
IMovementgetMovement(int index) 
List<IMovement>getMovements() 
IRouteLocationgetSourceLocation() 
IRouteLocationgetTargetLocation() 
booleanisEmpty() 
Iterator<IMovement>iterator() 
doublerecalculateDistance() 
voidremoveFirstMovement() 
voidremoveLastMovement() 
voidremoveMovement(int index) 
booleanremoveMovement(IMovement movement) 
intsize() 
StringtoString() 

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 Details

RouteData

public RouteData(RouteData routeData)

RouteData

public RouteData(IMovement... movements)

RouteData

public RouteData(Collection<? extends IMovement> movements)

Method Details

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 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(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 String toString()
Overrides:
toString in class 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(Collection<RouteData> collection,
 LengthUnits units)

iterator

public Iterator<IMovement> iterator()
Specified by:
iterator in interface Iterable<IMovement>