Commit c44137bd authored by Jérome Perrin's avatar Jérome Perrin

add EventGenerator in GUI

parent da05243f
......@@ -31,5 +31,12 @@ class Simulation(DefaultSimulation):
"_class": "Dream.BatchScrapMachine",
"property_list": conf['Dream-Machine']['property_list']
}
conf['Dream-EventGenerator'] = {
"_class": "Dream.EventGenerator",
"property_list": [schema['start'], schema['stop'], schema['duration'],
schema['method'], schema['argumentDict']]
}
conf["Dream-Configuration"]["gui"]["debug_json"] = 1
conf["Dream-Configuration"]["gui"]["shift_spreadsheet"] = 1
return conf
......@@ -117,6 +117,36 @@ schema = {
"_class": "Dream.Property",
"_default": "10"
},
"method": {
"id": "method",
"type": "string",
"_class": "Dream.Property",
"_default": ""
},
"start": {
"id": "start",
"type": "string",
"_class": "Dream.Property",
"_default": "1"
},
"stop": {
"id": "stop",
"type": "string",
"_class": "Dream.Property",
"_default": "-1"
},
"duration": {
"id": "duration",
"type": "string",
"_class": "Dream.Property",
"_default": "10"
},
"argumentDict": {
"id": "argumentDict",
"type": "string", # XXX json encoded ?
"_class": "Dream.Property",
"_default": "{}"
},
}
# complex schemas (Dream.PropertyList)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment