public class Route extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<Action> |
actions
Actions for the transport to perform
|
private static org.slf4j.Logger |
logger |
private Transport |
transport
Transport used for the route.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Route(JsonObject routeJson,
PathfinderServices services)
Creates a route for a transport to perform.
|
| Modifier and Type | Method and Description |
|---|---|
List<Action> |
getActions()
Returns a list of actions for the transport to perform.
|
private static List<Action> |
getActions(JsonObject json,
PathfinderServices services)
Gets the actions for the transport to perform from the route JSON.
|
Transport |
getTransport()
Returns the transport to perform the route.
|
private static Transport |
getTransport(JsonObject json,
PathfinderServices services)
Gets the transport from the route JSON.
|
String |
toString() |
private static final org.slf4j.Logger logger
private final Transport transport
protected Route(JsonObject routeJson, PathfinderServices services)
routeJson - JSON of the route.services - a pathfinder services object.public Transport getTransport()
public List<Action> getActions()
private static Transport getTransport(JsonObject json, PathfinderServices services)
json - the route JSON.services - the pathfinder services object.private static List<Action> getActions(JsonObject json, PathfinderServices services)
json - the route JSON.services - the pathfinder services object.