public abstract class AbstractBusConductor extends Object implements BusConductor
BusConductor
s. Provides methods for firing
events.Constructor and Description |
---|
AbstractBusConductor() |
Modifier and Type | Method and Description |
---|---|
void |
addBusListener(BusListener listener)
Add a listener.
|
protected void |
fireBusCrashed(BusPhase phase,
Exception e) |
protected void |
fireBusStarting() |
protected void |
fireBusStopping() |
protected void |
fireBusStopRequested(boolean started) |
protected void |
fireBusTerminated() |
protected void |
fireTripBeginning() |
protected void |
fireTripEnding() |
void |
removeBusListener(BusListener listener)
Remove the listener.
|
abstract String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cleanBus, requestBusStop
public void addBusListener(BusListener listener)
BusConductor
addBusListener
in interface BusConductor
listener
- The listener.public void removeBusListener(BusListener listener)
BusConductor
removeBusListener
in interface BusConductor
listener
- The listener.protected void fireBusStarting() throws BusCrashException
BusCrashException
protected void fireTripBeginning() throws BusCrashException
BusCrashException
protected void fireTripEnding() throws BusCrashException
BusCrashException
protected void fireBusStopRequested(boolean started)
protected void fireBusStopping() throws BusCrashException
BusCrashException
protected void fireBusTerminated()