Commit a36c0b18 authored by Georgios Dagkakis's avatar Georgios Dagkakis

excel input to be given to event generator as argument of the method

parent d4b71719
......@@ -14,6 +14,9 @@ class AddDemandPlannerGenerator(plugin.InputPreparationPlugin):
def preprocess(self, data):
nodes=data['graph']['node']
data_uri_encoded_input_data = data['input'].get(self.configuration_dict['input_id'], {})
nodes['DPG']={
"name": "DemandPlannerGenerator",
"prioritizeIfCanFinish": 1,
......@@ -21,7 +24,8 @@ class AddDemandPlannerGenerator(plugin.InputPreparationPlugin):
"start": 0,
"stop": 0.5,
"_class": "dream.simulation.EventGenerator.EventGenerator",
"method": "dream.simulation.applications.DemandPlanning.executor_ACO.main"
"method": "dream.simulation.applications.DemandPlanning.executor_ACO.main",
"argumentDict": {'input':data_uri_encoded_input_data}
}
#print nodes
return data
......
......@@ -200,15 +200,11 @@
"plugin_list": [
{
"_class": "dream.plugins.AddDemandPlannerGenerator.AddDemandPlannerGenerator",
"argument": "Argument Value"
"input_id": "attached_document"
},
{
"_class": "dream.plugins.Debug.Debug",
"argument": "Argument Value"
},
{
"_class": "dream.plugins.ReadDemandPlannerExcelInput.ReadDemandPlannerExcelInput",
"input_id": "attached_document"
}
]
},
......
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