public class BusEvent
extends java.util.EventObject
Constructor and Description |
---|
BusEvent(BusConductor source,
BusPhase phase)
Constructor.
|
BusEvent(BusConductor source,
BusPhase phase,
java.lang.Exception busCrashException)
Constructor for a bus crash event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getBusCrashException() |
BusPhase |
getPhase() |
BusConductor |
getSource() |
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, java.lang.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 java.util.EventObject
public BusPhase getPhase()
public java.lang.Exception getBusCrashException()