|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.scenario.facade.ScenarioManager
public class ScenarioManager
ScenarioManager is a singleton that provides a global point of access to the scenario information.
Creation date: 1-Jan-2004
| Method Summary | |
|---|---|
void |
executeNextEvent()
Executes the next event in the scenario if there is one. |
void |
executeNextEvents(int n)
Executes the n next events in the scenario. |
void |
executeScenario()
Executes the rest of the scenario. |
static ScenarioManager |
getInstance()
Returns the single instance of the ScenarioManager. |
boolean |
hasNext()
Returns true if there are pending events and false otherwise. |
boolean |
isStopOnError()
|
void |
loadScenario(Scenario scenario)
Loads the specified scenario object into the manager. |
void |
loadScenario(java.lang.String fileName)
Loads the specified scenario XML file. |
void |
setStopOnError(boolean stopOnError)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isStopOnError()
public void setStopOnError(boolean stopOnError)
public static ScenarioManager getInstance()
public void loadScenario(Scenario scenario)
public void loadScenario(java.lang.String fileName)
public void executeScenario()
public void executeNextEvent()
public void executeNextEvents(int n)
n next events in the scenario. If there are less than n
pending events, this method is equivalent to executeScenario.
n - The number of events to execute.public boolean hasNext()
true if there are pending events and false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||