Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`static int` | `END_EVENT`
`static int` | `PAUSE_EVENT`
`static int` | `RNG_SEED_EVENT`
`static int` | `START_EVENT`
`static int` | `STOP_EVENT`

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`

Field Detail

### 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

Constructor Detail

### 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 event
    `id` - or type of the event

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD