Commit f7041825 authored by Georgios Dagkakis's avatar Georgios Dagkakis

CapacityStationInstaance to define and read the total assembly space

parent c058cb42
from copy import copy
import json
import time
import random
import operator
import datetime
from dream.plugins import plugin
class CapacityStationsSetAssemblySpace(plugin.InputPreparationPlugin):
""" Input preparation
creates the CapacityStationBuffer and CapacityStationExit for each CapacityStation
"""
def preprocess(self, data):
assemblySpace=int(copy(data['general']).get('assemblySpace',100))
data['general']['extraPropertyDict']={}
data['general']['extraPropertyDict']['assemblySpace']=assemblySpace
print data['general']
return data
...@@ -556,6 +556,10 @@ ...@@ -556,6 +556,10 @@
}, },
"pre_processing": { "pre_processing": {
"plugin_list": [ "plugin_list": [
{
"_class": "dream.plugins.CapacityStationsSetAssemblySpace.CapacityStationsSetAssemblySpace",
"input_id": "assemblySpace"
},
{ {
"_class": "dream.plugins.AvailableCapacitySpreadsheet.AvailableCapacitySpreadsheet", "_class": "dream.plugins.AvailableCapacitySpreadsheet.AvailableCapacitySpreadsheet",
"input_id": "availableCapacity" "input_id": "availableCapacity"
...@@ -640,6 +644,12 @@ ...@@ -640,6 +644,12 @@
"description": "The URL for knowledge extraction to access its data for example http: //git.erp5.org/gitweb/dream.git/blob_plain/HEAD: /dream/KnowledgeExtraction/Mockup_Processingtimes.xls", "description": "The URL for knowledge extraction to access its data for example http: //git.erp5.org/gitweb/dream.git/blob_plain/HEAD: /dream/KnowledgeExtraction/Mockup_Processingtimes.xls",
"title": "URL for Knowledge Extraction Spreadsheet", "title": "URL for Knowledge Extraction Spreadsheet",
"type": "string" "type": "string"
},
"assemblySpace": {
"title": "Assembly Space",
"description": "Total assembly Space in square meters",
"type": "number",
"default": 100
} }
} }
} }
......
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