Package microsim.event
Class SystemEvent
java.lang.Object
microsim.event.Event
microsim.event.SystemEvent
- All Implemented Interfaces:
Comparable<Event>
System events are directly processed by the simulation engine.
There are some special events that engine is able to understand.
For instance, you can schedule the end of simulation using a system event.
SystemEvent e = new SystemEvent(Sim.EVENT_SIMULATION_END); eventQueue.schedule(100, e);The above code make the engine stop at 100. When this event happens the
simulationEnd() method of the current running models is called.- Author:
- Michele Sonnessa
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class microsim.event.Event
compareTo, getLoop, getOrdering, getTime, setTimeAtNextLoop, setTimeOrderingAndLoopPeriod
-
Constructor Details
-
SystemEvent
-
-
Method Details
-
fireEvent
- Specified by:
fireEventin classEvent- Throws:
SimulationException
-
toString
Return a string describing event.
-