post/pre-plugins lists defined within processing objects which may have other...

post/pre-plugins lists defined within processing objects which may have other properties (description). Plugin registry modified to read in that way the configuration file
parent 32c14fc9
...@@ -55,11 +55,11 @@ class PluginRegistry(object): ...@@ -55,11 +55,11 @@ class PluginRegistry(object):
def __init__(self, logger, data): def __init__(self, logger, data):
self.input_preparation_list = [] self.input_preparation_list = []
for plugin_data in data['application_configuration']['pre_processing_plugin_list']: for plugin_data in data['application_configuration']['pre_processing']['plugin_list']:
self.input_preparation_list.append(resolve(plugin_data['_class'])(logger, plugin_data)) self.input_preparation_list.append(resolve(plugin_data['_class'])(logger, plugin_data))
self.output_preparation_list = [] self.output_preparation_list = []
for plugin_data in data['application_configuration']['post_processing_plugin_list']: for plugin_data in data['application_configuration']['post_processing']['plugin_list']:
self.output_preparation_list.append(resolve(plugin_data['_class'])(logger, plugin_data)) self.output_preparation_list.append(resolve(plugin_data['_class'])(logger, plugin_data))
plugin_data = data['application_configuration']['processing_plugin'] plugin_data = data['application_configuration']['processing_plugin']
......
...@@ -266,30 +266,37 @@ ...@@ -266,30 +266,37 @@
"type": "object_view" "type": "object_view"
} }
}, },
"post_processing_plugin_list": [], "post_processing": {
"pre_processing_plugin_list": [ "description" : "",
{ "plugin_list" : []
"_class": "dream.plugins.GatherWIPStat.GatherWIPStat", },
"input_id": "WIPStat" "pre_processing": {
}, "description" : "",
{ "plugin_list" : [
"_class": "dream.plugins.ReadEntryData.ReadEntryData", {
"input_id": "EntryData" "_class": "dream.plugins.GatherWIPStat.GatherWIPStat",
}, "input_id": "WIPStat"
{ },
"_class": "dream.plugins.BatchesWIPSpreadsheet.BatchesWIPSpreadsheet", {
"input_id": "WipSpreadsheet" "_class": "dream.plugins.ReadEntryData.ReadEntryData",
}, "input_id": "EntryData"
{ },
"_class": "dream.plugins.ReadSkilledOperators.ReadSkilledOperators", {
"input_id": "SkilledOperatorsSpreadsheet" "_class": "dream.plugins.BatchesWIPSpreadsheet.BatchesWIPSpreadsheet",
}, "input_id": "WipSpreadsheet"
{ },
"_class": "dream.plugins.ReadShiftFromSpreadsheet.ReadShiftFromSpreadsheet", {
"input_id": "ShiftSpreadsheet" "_class": "dream.plugins.ReadSkilledOperators.ReadSkilledOperators",
} "input_id": "SkilledOperatorsSpreadsheet"
], },
{
"_class": "dream.plugins.ReadShiftFromSpreadsheet.ReadShiftFromSpreadsheet",
"input_id": "ShiftSpreadsheet"
}
]
},
"processing_plugin": { "processing_plugin": {
"description" : "",
"_class": "dream.plugins.plugin.DefaultExecutionPlugin" "_class": "dream.plugins.plugin.DefaultExecutionPlugin"
} }
}, },
......
...@@ -772,27 +772,26 @@ ...@@ -772,27 +772,26 @@
"gadget": "Output_viewDebugJson" "gadget": "Output_viewDebugJson"
} }
}, },
"preprocessing": { "pre_processing": {
"description" : "",
"plugin_list": [ "plugin_list": [
{ {
"plugin": "GatherWIPStat.GatherWIPStat", "_class": "dream.plugins.GatherWIPStat.GatherWIPStat",
"input_id": "WIPStat" "input_id": "WIPStat"
}, },
{ {
"plugin": "WIPSpreadsheet.WIPSpreadsheet", "_class": "dream.plugins.WIPSpreadsheet.WIPSpreadsheet",
"input_id": "WIPdata" "input_id": "WIPdata"
} }
] ]
}, },
"processing": { "processing_plugin": {
"plugin_list": [ "description" : "",
{ "_class": "dream.plugins.plugin.DefaultExecutionPlugin",
"plugin": "plugin.DefaultExecutionPlugin", "input_id": "Simulation"
"input_id": "Simulation"
}
]
}, },
"postprocessing": { "post_processing": {
"description" : "",
"plugin_list": [] "plugin_list": []
}, },
"general": { "general": {
......
...@@ -843,25 +843,32 @@ ...@@ -843,25 +843,32 @@
"gadget" : "Output_viewDebugJson" "gadget" : "Output_viewDebugJson"
} }
}, },
"preprocessing" : { "pre_processing" : {
"description" : "",
"plugin_list" : [{ "plugin_list" : [{
"plugin" : "PartJobShop", "_class" : "dream.plugins.PartJobShop.PartJobShop",
"input_id" : "Simulation" "input_id" : "Simulation"
}, { }, {
"plugin" : "ReadShiftFromSpreadsheet", "_class" : "dream.plugins.ReadShiftFromSpreadsheet.ReadShiftFromSpreadsheet",
"input_id" : "ShiftSpreadsheet" "input_id" : "ShiftSpreadsheet"
}, { }, {
"plugin" : "ReadWipFromSpreadsheet", "_class" : "dream.plugins.ReadWipFromSpreadsheet.ReadWipFromSpreadsheet",
"input_id" : "WipSpreadsheet" "input_id" : "WipSpreadsheet"
}, { }, {
"plugin" : "ReadRouteFromSpreadsheet", "_class" : "dream.plugins.ReadRouteFromSpreadsheet.ReadRouteFromSpreadsheet",
"input_id" : "RouteSpreadsheet" "input_id" : "RouteSpreadsheet"
} }
] ]
}, },
"postprocessing" : { "processing_plugin" : {
"description" : "",
"_class" : "",
"input_id" : ""
}
"post_processing" : {
"description" : "",
"plugin_list" : [{ "plugin_list" : [{
"plugin" : "CalculateConfidenceIntervals" "_class" : "dream.plugins.CalculateConfidenceIntervals.CalculateConfidenceIntervals"
}] }]
}, },
"general" : { "general" : {
......
...@@ -810,20 +810,27 @@ ...@@ -810,20 +810,27 @@
"gadget": "Output_viewDebugJson" "gadget": "Output_viewDebugJson"
} }
}, },
"pre_processing_plugin_list": [ "pre_processing": {
{ "description" : "",
"_class": "dream.plugins.Debug.Debug", "_plugin_list": [
"argument": "Argument Value" {
}, "_class": "dream.plugins.Debug.Debug",
{ "argument": "Argument Value"
"_class": "dream.plugins.OldStylePartJobShopWIP.OldStylePartJobShopWIP", },
"input_id": "old_style_part_jobshop_spreadsheet" {
} "_class": "dream.plugins.OldStylePartJobShopWIP.OldStylePartJobShopWIP",
], "input_id": "old_style_part_jobshop_spreadsheet"
}
]
},
"processing_plugin": { "processing_plugin": {
"description": "",
"_class": "dream.plugins.ACO.ACO" "_class": "dream.plugins.ACO.ACO"
}, },
"post_processing_plugin_list": [], "post_processing": {
"description": "",
"plugin_list": []
},
"general": { "general": {
"properties": { "properties": {
"numberOfReplications": { "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