Scenario Selector GUI
The class sim.ScenarioSelector provides a GUI that shows all available scenario configurations and starts the selected scenario.
GUI Elements
The window contains the following elements:
- Scenario menu - Each file that has the extension ”.properties” in the folder S:\ARSIN_V01\Sim\config is listed1).
- Description group - The details of the select configuration are shown.
- Title - The short title of the scenario (identical to the entry in the scenario menu above).
- Icon - An icon that shows a typical scene of the scenario or what ever seemed to fit.
- Short Description - A short description of the scenario. Something like an abstract.
- Field Size - The world dimension.
- Filename - The filename of the scenario property file.
- Long Description - A lengthy description of the scenario.
- autostart - If selected, the simulator loads all entities, objects, and agents and pauses at step 0. Otherwise, the whole loading process would have to be started explicitly at the next window. Only necessary if the loading process needs to be debugged.
- adaptor - upon pressing “start scenario” an additional window is shown (if checkbox is activated) and the number of entities can be changed. But only for entity types that exist in this scenario.
- “Start Scenario” - Submit the selected parameters to SimulatorMain and close the window.
- “Exit” - Close the window.
Scenario Property File
This is an example for a typical scenario property file. Six different entitiy groups define what kind of objects and entities are placed in the world. Each group defines what kind if entity and, if applicable, which decision unti to be used. Further, the number of entities and how they are placed in the world has to be provided. Optionally, the default values for the entity and/or the decision unit can be overwritten (e.g. entitygroups.0.overwriteentitydefaults.immortal=TRUE). An indepth explanation of the properties is given at page properties.
For details see the property-file "C:\Repository_Root\ARSIN_V01\ARSIN_V01\Sim\config\scenarios\tutorial.properties"
# #Sun Jul 26 15:07:41 CEST 2009 entitygroups.0.groupentitytype=ARSIN entitygroups.0.groupdecisionunittype=PA entitygroups.0.numentities=1 entitygroups.0.positions.0.pos_angle=0 entitygroups.0.positions.0.pos_x=100 entitygroups.0.positions.0.pos_y=100 entitygroups.0.positions.positiontype=LIST entitygroups.0.overwriteentitydefaults.immortal=TRUE entitygroups.1.groupentitytype=REMOTEBOT entitygroups.1.groupdecisionunittype=REMOTE entitygroups.1.numentities=0 entitygroups.1.positions.0.pos_angle=0 entitygroups.1.positions.0.pos_x=80 entitygroups.1.positions.0.pos_y=80 entitygroups.1.positions.positiontype=LIST entitygroups.2.groupentitytype=PLANT entitygroups.2.numentities=0 entitygroups.2.positions.positiontype=RANDOM entitygroups.3.groupentitytype=CAN entitygroups.3.numentities=0 entitygroups.3.positions.positiontype=RANDOM entitygroups.4.groupentitytype=CAKE entitygroups.4.numentities=1 entitygroups.4.positions.positiontype=RANDOM entitygroups.5.groupentitytype=STONE entitygroups.5.numentities=1 entitygroups.5.positions.positiontype=RANDOM loader_type=SIMPLE_PROPERTY_LOADER loader_version=3 short_description=Clemens' main test world setup for temp development purposes description=Ich schreib hier rein was mir gefällt denn es ist ja meine eigene Welt! \n meine Welt: 1 ARSIN der hunger hat, eine Futterquelle field_height=200.0 field_width=200.0 image=Clemens_01.png entitygroups.numentitygroups=6 title=Clemens' testscenario worldboundarywalls=true usedefaults=true