Method | Description | |
---|---|---|
AddOrUpdateShuttle ( int shuttleId, Coordinate location, string name, int bearing, string cardinalPoint, int speed, int route = -1 ) : void |
Adds a shuttle to the world or updates the position of an existing shuttle.
|
|
GenerateWorld ( |
Create a world object from a Netlink object.
|
|
RemoveOldShuttles ( ) : void |
Removes all shuttles older than SHUTTLE_EXPIRATION_TIME
|
Method | Description | |
---|---|---|
AddRoute ( |
||
AddRoute ( int routeId, string name, List |
||
AddStop ( |
||
AddStop ( string stopId, Coordinate location, string name, List |
||
CurrentTimeMillis ( ) : long | ||
World ( ) : System |
public AddOrUpdateShuttle ( int shuttleId, Coordinate location, string name, int bearing, string cardinalPoint, int speed, int route = -1 ) : void | ||
shuttleId | int | The ID number of the shuttle. |
location | Coordinate | The shuttle's current location. |
name | string | The name of the shuttle. |
bearing | int | The heading of the shuttle in degrees from north. |
cardinalPoint | string | The heading of the shuttle as a cardinal direcation (e.g. Northwest). |
speed | int | The speed of the shuttle in miles per hour. |
route | int | The id of the shuttle route. -1 indicates that the shuttle is not on a route. |
return | void |
public static GenerateWorld ( |
||
n | The Netlink class that represents the Netlink JSON. | |
return |