public class BusEvent extends EventObject
source
Constructor and Description |
---|
BusEvent(BusConductor source,
BusPhase phase)
Constructor.
|
BusEvent(BusConductor source,
BusPhase phase,
Exception busCrashException)
Constructor for a bus crash event.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getBusCrashException() |
BusPhase |
getPhase() |
BusConductor |
getSource() |
toString
public BusEvent(BusConductor source, BusPhase phase)
source
- The source of the event.phase
- The phase that caused the event.public BusEvent(BusConductor source, BusPhase phase, Exception busCrashException)
source
- The source of the event.phase
- The phase that caused the event.busCrashException
- The exception that cause the crash.public BusConductor getSource()
getSource
in class EventObject
public BusPhase getPhase()
public Exception getBusCrashException()