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

comments

parent 3f190d40
import json
from dream.simulation.LineGenerationJSON import main as simulate_line_json
# describe type for properties
schema = {
"entity": {
"id": "entity",
......@@ -106,6 +107,7 @@ schema = {
}
}
# complex schemas (Dream.PropertyList)
schema["interarrivalTime"] = {
"id": "interarrivalTime",
"property_list": [
......@@ -143,7 +145,8 @@ class Simulation(object):
self.logger = logger
def getConfigurationDict(self):
"""Returns the possible nodes to use in the graph editor
"""Returns the possible nodes to use in the graph editor, and the global
configuration.
"""
return {
"Dream-Source": {
......@@ -193,6 +196,8 @@ class Simulation(object):
"property_list": [schema["capacity"]],
"_class": 'Dream.Repairman'
},
# global configuration
"Dream-Configuration": {
"property_list": [
schema["numberOfReplications"],
......
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