public class TrackingBusListener extends Object
BusListener methods
to make implementing bus listeners easier.
This allows BusConductor to be tracked because it will be set each time a bus part is configured.
| Constructor and Description |
|---|
TrackingBusListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
busCrashed(BusEvent event) |
void |
busStarting(BusEvent event) |
void |
busStopping(BusEvent event) |
void |
busStopRequested(BusEvent event) |
void |
busTerminated(BusEvent event) |
BusConductor |
getBusConductor() |
void |
setBusConductor(BusConductor busConductor) |
void |
tripBeginning(BusEvent event) |
void |
tripEnding(BusEvent event) |
public void setBusConductor(BusConductor busConductor)
public void busStarting(BusEvent event) throws BusCrashException
BusCrashExceptionpublic void tripBeginning(BusEvent event) throws BusCrashException
BusCrashExceptionpublic void tripEnding(BusEvent event) throws BusCrashException
BusCrashExceptionpublic void busStopRequested(BusEvent event)
public void busStopping(BusEvent event) throws BusCrashException
BusCrashExceptionpublic void busCrashed(BusEvent event)
public void busTerminated(BusEvent event)
public BusConductor getBusConductor()