Enum Constant and Description |
---|
BACKWARD |
FORWARD |
LEFT |
LIFT_DOWN |
LIFT_UP |
MODERATE_LEFT |
MODERATE_RIGHT |
RIGHT |
SHARP_LEFT |
SHARP_RIGHT |
STAIR_DOWN |
STAIR_UP |
TOUR_LOCATION |
Modifier and Type | Method and Description |
---|---|
static int |
getFirstAngle(java.util.List<Edge> edges)
Given a list of edges, return the heading users should face to follow parsed directions.
|
int |
getImageRepresentation() |
int |
getLocalisedDirection() |
static java.util.List<Direction> |
parseDirections(java.util.List<Edge> edges)
Given a list of edges, returns a list of directions for turn by turn navigation between nodes.
|
static Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction FORWARD
public static final Direction BACKWARD
public static final Direction LEFT
public static final Direction MODERATE_LEFT
public static final Direction SHARP_LEFT
public static final Direction RIGHT
public static final Direction MODERATE_RIGHT
public static final Direction SHARP_RIGHT
public static final Direction LIFT_UP
public static final Direction LIFT_DOWN
public static final Direction STAIR_UP
public static final Direction STAIR_DOWN
public static final Direction TOUR_LOCATION
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@StringRes public int getLocalisedDirection()
@DrawableRes public int getImageRepresentation()
public static java.util.List<Direction> parseDirections(java.util.List<Edge> edges) throws java.lang.IllegalArgumentException
edges
- list of edges whose directions should be parsed.java.lang.IllegalArgumentException
- Invalid directions were found along the route.public static int getFirstAngle(java.util.List<Edge> edges)
edges
- list of edges whose directions the user will follow.