|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsema.Engine
Engine of the modelling.
The current time is the one of the last treated event (t=0 at initialisation).
It simulates a continious time (coded on a Double).
An Event executes itself with no duration in the simulation.
The lasting of a series of event is emulated by the virtual time to wait until next event.
| Nested Class Summary | |
static class |
Engine.EndOfSimulation
Indicates that the simulation has ended. |
static class |
Engine.SimulationError
The last event has raised an exception. |
| Constructor Summary | |
Engine()
|
|
| Method Summary | |
protected void |
add(Event ev)
Add an event to the engine Events with strict inferior dates to the current simulated time, are ignored. |
void |
delete(Event ev)
Delete an event from the engine. |
java.lang.String[][] |
getProperties()
Returns the world's properties. |
double |
getTime()
Returns the current simulated time in milliseconde |
void |
gotoDate(java.lang.Double date)
Executes every events until it reachs the date. |
void |
next()
Executes the events of the smallest date. |
void |
setProperties(java.lang.String property,
java.lang.String value)
Allows the modification of the properties through the interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Engine()
| Method Detail |
public double getTime()
protected void add(Event ev)
public void delete(Event ev)
public void next()
throws Engine.EndOfSimulation,
Engine.SimulationError
Engine.EndOfSimulation
Engine.SimulationError
public void gotoDate(java.lang.Double date)
throws Engine.EndOfSimulation,
Engine.SimulationError
Engine.EndOfSimulation
Engine.SimulationErrorpublic java.lang.String[][] getProperties()
public void setProperties(java.lang.String property,
java.lang.String value)
getProperties().
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||