public abstract class AbstractBusConductor extends java.lang.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,
java.lang.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 java.lang.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()
protected void fireBusCrashed(BusPhase phase, java.lang.Exception e)
public abstract java.lang.String toString()
toString
in class java.lang.Object