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

public class PathMovement
extends java.lang.Object
implements IMovement
See Also:
Serialized Form

Constructor Summary

Constructors 
PathMovement​(INetworkMarkupElement networkElement, IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units)  
PathMovement​(IPath<?> path, double sourceOffset, double targetOffset, LengthUnits units)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
boolean contains​(IRouteLocation location)  
double distance​(LengthUnits units)  
boolean equals​(java.lang.Object obj)  
PathMovementDirection getDirection()  
Level getLevel()  
IRouteLocation getLocationAtOffset​(double offset, LengthUnits units, IRouteLocation out)  
INetwork<?,​?> getNetwork()  
INetworkMarkupElement getNetworkElement()  
IPath<?> getPath()  
double getSourceOffset​(LengthUnits units)  
Agent getSpace()  
double getTargetOffset​(LengthUnits units)  
MovementType getType()  
int hashCode()  
boolean isMovingForward()  
java.lang.String toString()  
Modifier and Type Method Description

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Methods inherited from interface com.anylogic.engine.routing.IMovement

getLocationAtOffset

Constructor Detail

PathMovement

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

PathMovement

public PathMovement​(INetworkMarkupElement networkElement,
                    IPath<?> path,
                    double sourceOffset,
                    double targetOffset,
                    LengthUnits units)

Method Detail

getLevel

public Level getLevel()
Specified by:
getLevel in interface IMovement

getPath

public IPath<?> getPath()

getSourceOffset

public double getSourceOffset​(LengthUnits units)

getTargetOffset

public double getTargetOffset​(LengthUnits units)

getSpace

public Agent getSpace()
Specified by:
getSpace in interface IMovement

getNetworkElement

public INetworkMarkupElement getNetworkElement()
Specified by:
getNetworkElement in interface IMovement

getNetwork

public INetwork<?,​?> getNetwork()
Specified by:
getNetwork in interface IMovement

getType

public MovementType getType()
Specified by:
getType in interface IMovement

distance

public double distance​(LengthUnits units)
Specified by:
distance in interface IMovement

getDirection

public PathMovementDirection getDirection()

isMovingForward

public boolean isMovingForward()
Specified by:
isMovingForward in interface IMovement

toString

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

getLocationAtOffset

@AnyLogicInternalAPI
public IRouteLocation getLocationAtOffset​(double offset,
                                          LengthUnits units,
                                          IRouteLocation out)
Specified by:
getLocationAtOffset in interface IMovement

contains

public boolean contains​(IRouteLocation location)
Specified by:
contains in interface IMovement

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals​(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
How can we improve this article?