| Constructor and Description |
|---|
CommodityListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
endLocationUpdated(double latitude,
double longitude)
Invoked when the commodity's end location was updated by a message.
|
void |
metadataUpdated(JsonObject metadata)
Invoked when the commodity's metadata was updated by a message.
|
void |
routed(Route route)
Invoked when the commodity receives a routed message.
|
void |
startLocationUpdated(double latitude,
double longitude)
Invoked when the commodity's start location was updated by a message.
|
void |
statusUpdated(CommodityStatus status)
Invoked when the commodity's status was updated by a message.
|
void |
transportUpdated(Transport transport)
Invoked when the commodity's transport is changed.
|
connected, created, deleted, error, routeSubscribed, routeUnsubscribed, subscribed, unsubscribed, updatedpublic void routed(Route route)
route - the commodity's new route.public void startLocationUpdated(double latitude,
double longitude)
latitude - that the commodity updated to.longitude - that the commodity updated to.public void endLocationUpdated(double latitude,
double longitude)
latitude - that the commodity updated to.longitude - that the commodity updated to.public void statusUpdated(CommodityStatus status)
status - that the commodity updated to.public void metadataUpdated(JsonObject metadata)
metadata - that the commodity updated to.public void transportUpdated(Transport transport)
transport - carrying the commodity.