Package com.anylogic.engine.markup
- java.lang.Object
- java.lang.Enum<SimpleDirection>
- com.anylogic.engine.markup.SimpleDirection
- All Implemented Interfaces:
Serializable
,Comparable<SimpleDirection>
,Constable
@AnyLogicInternalAPI public enum SimpleDirection extends Enum<SimpleDirection>
Enum.EnumDesc<E extends Enum<E>>
Modifier and Type | Method | Description |
---|---|---|
abstract Position | getEndPosition | |
abstract INode | getNextNode |
Call this method for
NodeType.TRANSIT nodes only |
abstract INode | getNextNode | |
abstract IPath | getNextPath |
Call this method for
NodeType.TRANSIT nodes only |
abstract double | getOffsetOnPath | |
abstract double | getOffsetOnPath | |
abstract Position | getPositionAtOffset | |
abstract double | getRemainingLength | |
abstract SimpleDirection | reverse() | |
static SimpleDirection | valueOf |
Returns the enum constant of this class with the specified name.
|
static SimpleDirection[] | values() |
Returns an array containing the constants of this enum class, in
the order they are declared.
|
public static SimpleDirection[] values()
Returns an array containing the constants of this enum class, in
the order they are declared.
- Returns:
- an array containing the constants of this enum class, in the order they are declared
public static SimpleDirection valueOf(String name)
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
public abstract INode getNextNode(INode node)
Call this method for
NodeType.TRANSIT
nodes only- Parameters:
node
- the node- Returns:
- the next node in this direction
public abstract IPath getNextPath(INode node)
Call this method for
NodeType.TRANSIT
nodes only- Parameters:
node
- the node- Returns:
- the connected path in this direction
public abstract INode getNextNode(IPath path)
public abstract double getOffsetOnPath(double baseOffset, double relativeOffset)
public abstract double getRemainingLength(IPath path, double baseOffset)
public abstract SimpleDirection reverse()
public abstract Position getEndPosition(IPath path, Position out)
public abstract double getOffsetOnPath(IPath path, double distance)
public abstract Position getPositionAtOffset(IPath path, double offset, Position out)