|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvanetsim.scenario.Scenario
public final class Scenario
A scenario saves the vehicles and events.
| Method Summary | |
|---|---|
static Scenario |
getInstance()
Gets the single instance of this scenario. |
boolean |
getReadyState()
Returns if the scenario is currently being loaded. |
java.lang.String |
getScenarioName()
|
void |
initNewScenario()
Initializes a new (empty) scenario. |
void |
load(java.io.File file,
boolean zip)
Load a scenario. |
void |
save(java.io.File file,
boolean zip)
Save the scenario. |
void |
setReadyState(boolean ready)
Sets the ready state of the scenario. |
void |
setScenarioName(java.lang.String scenarioName)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Scenario getInstance()
public void initNewScenario()
public void load(java.io.File file,
boolean zip)
file - the file to loadzip - true if the file given is zipped, else falsepublic void setReadyState(boolean ready)
ready - true to signal that this scenario is ready with loading, else false
public void save(java.io.File file,
boolean zip)
file - the file in which to savezip - if true, file is saved in a compressed zip file (extension .zip is added to file!). If false, no compression is made.public boolean getReadyState()
true if loading has finished, else falsepublic java.lang.String getScenarioName()
public void setScenarioName(java.lang.String scenarioName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||