uchicago.src.sim.engine
Class SimEvent
java.lang.Object
|
+--java.util.EventObject
|
+--uchicago.src.sim.engine.SimEvent
- All Implemented Interfaces:
- Serializable
- public class SimEvent
- extends EventObject
A semantic event that indicates that the simulation run has paused or
stopped. The event is passed to SimEventListeners.
- See Also:
SimEventListener,
Serialized Form
|
Constructor Summary |
SimEvent(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. |
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(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.
Bug reports and feature requests to RePast