public class Instruction
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Instruction.InstructionType
Enumeration containing all the instructions
|
Modifier and Type | Field and Description |
---|---|
Indicator |
destination |
double |
distance
Distance from the start point
|
Instruction.InstructionType |
instruction
Instruction to apply at that distance
|
Indicator |
orientation |
java.util.HashMap<java.lang.String,java.lang.String> |
props
Values retrieved for the instruction
|
Constructor and Description |
---|
Instruction(double distance,
Instruction.InstructionType instruction,
java.util.HashMap<java.lang.String,java.lang.String> props)
Instruction constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getFloorNumber()
Getter for the floor number.
|
int |
getTurnAngle()
Getter for the turn angle.
|
java.lang.String |
toJson()
This method provides compatibility by returning relevant info into a
JSON String.
|
java.lang.String |
toString() |
public final double distance
public final Instruction.InstructionType instruction
public final java.util.HashMap<java.lang.String,java.lang.String> props
public Indicator orientation
public Indicator destination
public Instruction(double distance, Instruction.InstructionType instruction, java.util.HashMap<java.lang.String,java.lang.String> props)
distance
- Distance from the start pointinstruction
- Instruction to apply at that distanceprops
- Hashmap including extra values to complete the instructionpublic java.lang.String toJson()
public java.lang.String toString()
toString
in class java.lang.Object
public int getFloorNumber()
public int getTurnAngle()