| Constructor and Description |
|---|
TransportListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
commoditiesUpdated(List<Commodity> commodities)
Invoked when the transport's commodities was updated by a message.
|
void |
locationUpdated(double latitude,
double longitude)
Invoked when the transport's location was updated by a message.
|
void |
metadataUpdated(JsonObject metadata)
Invoked when the transport's metadata was updated by a message.
|
void |
routed(Route route)
Invoked when the transport receives a routed message.
|
void |
statusUpdated(TransportStatus status)
Invoked when the transport's status was updated by a message.
|
connected, created, deleted, error, routeSubscribed, routeUnsubscribed, subscribed, unsubscribed, updatedpublic void routed(Route route)
route - the transport's new route.public void locationUpdated(double latitude,
double longitude)
latitude - that the transport updated to.longitude - that the transport updated to.public void statusUpdated(TransportStatus status)
status - that the transport updated to.public void metadataUpdated(JsonObject metadata)
metadata - that the transport updated to.