uchicago.src.sim.engine
Class SimEvent
java.lang.Object
java.util.EventObject
uchicago.src.sim.engine.SimEvent
- All Implemented Interfaces:
- java.io.Serializable
public class SimEvent
- extends java.util.EventObject
A semantic event that indicates that the simulation run has paused or
stopped. The event is passed to SimEventListeners.
- Version:
- $Revision: 1.4 $ $Date: 2004/11/03 19:50:57 $
- Author:
- Nick Collier
- See Also:
SimEventListener,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
SimEvent(java.lang.Object source,
int id)
Constructs a SimEvent with the specified source, and the specified id. |
|
Method Summary |
int |
getId()
Gets the id (type) of this SimEvent. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STOP_EVENT
public static final int STOP_EVENT
- See Also:
- Constant Field Values
PAUSE_EVENT
public static final int PAUSE_EVENT
- See Also:
- Constant Field Values
END_EVENT
public static final int END_EVENT
- See Also:
- Constant Field Values
RNG_SEED_EVENT
public static final int RNG_SEED_EVENT
- See Also:
- Constant Field Values
START_EVENT
public static final int START_EVENT
- See Also:
- Constant Field Values
SimEvent
public SimEvent(java.lang.Object source,
int id)
- Constructs a SimEvent with the specified source, and the specified id.
The id or type can STOP_EVENT, START_EVENT, PAUSE_EVENT, END_EVENT, or
RNG_SEED_EVENT.
- Parameters:
source - the source of this eventid - or type of the event
getId
public int getId()
- Gets the id (type) of this SimEvent. The id or type can STOP_EVENT,
START_EVENT, PAUSE_EVENT, END_EVENT, or RNG_SEED_EVENT.