Public Member Functions | |
void | initNewScenario () |
void | load (File file, boolean zip) |
void | setReadyState (boolean ready) |
void | save (File file, boolean zip) |
boolean | getReadyState () |
String | getScenarioName () |
void | setScenarioName (String scenarioName) |
Static Public Member Functions | |
static Scenario | getInstance () |
A scenario saves the vehicles and events.
|
inlinestatic |
Gets the single instance of this scenario.
|
inline |
Returns if the scenario is currently being loaded. While loading, simulation and rendering should not be done because not all simulation elements are already existing!
true
if loading has finished, else false
|
inline |
Initializes a new (empty) scenario.
|
inline |
Load a scenario.
file | the file to load |
zip | true if the file given is zipped, else false |
|
inline |
Save the scenario.
file | the file in which to save |
zip | if true , file is saved in a compressed zip file (extension .zip is added to file !). If false , no compression is made. |
|
inline |
Sets the ready state of the scenario.
ready | true to signal that this scenario is ready with loading, else false |