AnyLogic
Expand
Font size
All Implemented Interfaces:
IMovement, Serializable

public class PlainMovement
extends Object
implements IMovement
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
PlainMovement(Agent space, Point source, Point target) 
PlainMovement(INetwork<?,?> network, Point source, Point target) 
PlainMovement(INetworkMarkupElement networkElement, Point source, Point target) 
PlainMovement(Level level, Point source, Point target) 

Method Summary

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

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

getLocationAtOffset, isMovingForward

Constructor Details

PlainMovement

public PlainMovement(Level level,
 Point source,
 Point target)

PlainMovement

public PlainMovement(INetwork<?,?> network,
 Point source,
 Point target)

PlainMovement

public PlainMovement(INetworkMarkupElement networkElement,
 Point source,
 Point target)

PlainMovement

public PlainMovement(Agent space,
 Point source,
 Point target)

Method Details

getSpace

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

getLevel

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

getSource

public Position getSource()

getTarget

public Position getTarget()

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

toString

public String toString()
Overrides:
toString in class Object

getNormal

@AnyLogicInternalAPI
public Position getNormal()

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 Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object