Commit 4ca0d347 authored by Jérome Perrin's avatar Jérome Perrin

Example model: modernize the example model

Set short ids, set some CSS on nodes (use circle shape), use "name"
everywhere, use "priority" to order some properties and tab (I did not
make it perfect, just reordered a bit).
parent 9d1f0dca
......@@ -3,30 +3,21 @@
"general": {
"properties": {
"maxSimTime": {
"default": 100,
"priority": 10,
"default": 120,
"description": "Length of the simulation run",
"title": "Length of Experiment",
"name": "Length of Experiment",
"type": "number"
},
"numberOfReplications": {
"default": 1,
"description": "Number of replications to run",
"title": "Number of replications",
"type": "integer"
},
"seed": {
"default": 1,
"description": "The seed of random number generation. If empty the seed will be random",
"title": "Seed for random number generator",
"type": "number"
},
"confidenceLevel": {
"default": 0.95,
"description": "Confidence level for statistical analysis of stochastic experiments",
"title": "Confidence level",
"type": "number"
"currentDate": {
"priority": 9,
"default": "2014/10/01 09:00:00",
"description": "The day the experiment starts, in YYYY/MM/DD HH:MM:SS format",
"name": "Simulation Start Time",
"type": "string"
},
"timeUnit": {
"priority": 8,
"default": "minute",
"description": "Used for input and reporting widgets.",
"enum": [
......@@ -37,35 +28,45 @@
"month",
"year"
],
"name": "Time unit",
"name": "Time Unit",
"type": "string"
},
"currentDate": {
"default": "2014/10/01 09:00:00",
"description": "The day the experiment starts, in YYYY/MM/DD HH:MM:SS format",
"title": "SimulationStartTime",
"type": "string"
"numberOfReplications": {
"priority": 7,
"default": 1,
"description": "Number of replications to run",
"name": "Number of Replications",
"type": "number"
},
"seed": {
"priority": 6,
"description": "The seed of random number generation. If empty the seed will be random",
"name": "Seed for Random Number Generator",
"type": "number"
},
"confidenceLevel": {
"priority": 5,
"default": 0.95,
"description": "Confidence level for statistical analysis of stochastic experiments",
"name": "Confidence Level",
"type": "number"
},
"processTimeout": {
"priority": 4,
"default": 10,
"description": "Number of seconds before the calculation process is interrupted",
"title": "ProcessTimeout",
"name": "Process Timeout",
"type": "number"
},
"ke_url": {
"default": "",
"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",
"type": "string"
},
"trace": {
"priority": 3,
"default": "No",
"description": "Create an excel trace file (Yes or No)",
"enum": [
"No",
"Yes"
],
"title": "OutputTrace",
"name": "Output Trace",
"type": "string"
}
}
......@@ -79,7 +80,8 @@
"view": {
"gadget": "Input_viewProductionLine",
"title": "Production Line",
"type": "object_view"
"type": "object_view",
"priority": 1
},
"view_machine_shift_spreadsheet": {
"configuration": {
......@@ -171,16 +173,8 @@
}
},
"output": {
"view_tabular_results": {
"configuration": {
"handsontable_options": {},
"output_id": "exit_output"
},
"gadget": "Output_viewSpreadsheet",
"title": "Exit Statistics",
"type": "object_view"
},
"view_station_utilization": {
"priority": 10,
"configuration": {
"output_id": "station_utilization"
},
......@@ -189,6 +183,7 @@
"type": "object_view"
},
"view_queue_stats": {
"priority": 9,
"configuration": {
"output_id": "queue_statistics"
},
......@@ -196,7 +191,18 @@
"title": "Queue Statistics",
"type": "object_view"
},
"view_tabular_results": {
"priority": 8,
"configuration": {
"handsontable_options": {},
"output_id": "exit_output"
},
"gadget": "Output_viewSpreadsheet",
"title": "Exit Statistics",
"type": "object_view"
},
"view_download_trace": {
"priority": 7,
"configuration": {
"output_id": "download_trace"
},
......@@ -262,17 +268,7 @@
"$ref": "#/node"
},
{
"properties": {
"id": {
"default": "E",
"required": true
},
"name": {
"default": "Exit",
"type": "string"
}
},
"type": "object"
"properties": {}
}
],
"css": {
......@@ -282,7 +278,7 @@
},
"description": "A station where entities exits from the system",
"name": "Exit",
"shape": "rectangle"
"short_id": "E"
},
"Dream.Machine": {
"_class": "node",
......@@ -292,29 +288,25 @@
},
{
"properties": {
"id": {
"default": "M",
"required": true,
"type": "string"
},
"name": {
"default": "Machine",
"type": "string"
},
"processingTime": {
"$ref": "#/definitions/_dist",
"required": true,
"default":{"Fixed":{"mean":1}}
},
"setupTime": {
"$ref": "#/definitions/_dist",
"interruption": {
"name": "Interruptions",
"properties": {
"failure": {
"$ref": "#/definitions/_failureDist",
"required": true
}
},
"type": "object"
},
"loadTime": {
"$ref": "#/definitions/_dist",
"name": "Load Time",
"priority": 8,
"required": true
},
"operationType": {
"name": "Operation Type",
"priority": 7,
"properties": {
"load": {
"$ref": "#/definitions/_operationType",
......@@ -339,14 +331,22 @@
],
"type": "object"
},
"interruption": {
"properties": {
"failure": {
"$ref": "#/definitions/_failureDist",
"required": true
"processingTime": {
"$ref": "#/definitions/_dist",
"default": {
"Fixed": {
"mean": 1
}
},
"type": "object"
"name": "Processing Time",
"priority": 10,
"required": true
},
"setupTime": {
"$ref": "#/definitions/_dist",
"name": "Setup Time",
"priority": 9,
"required": true
}
},
"type": "object"
......@@ -358,7 +358,8 @@
"border": "1px solid #cbc"
},
"description": "A station processing items for some time given by a distribution",
"name": "Machine"
"name": "Machine",
"short_id": "M"
},
"Dream.Queue": {
"_class": "node",
......@@ -372,14 +373,6 @@
"$ref": "#/definitions/_capacity",
"required": true
},
"id": {
"default": "Q",
"type": "string"
},
"name": {
"default": "Queue",
"type": "string"
},
"schedulingRule": {
"$ref": "#/definitions/_schedulingRule",
"required": true
......@@ -391,10 +384,12 @@
"css": {
"backgroundColor": "#eff",
"backgroundImage": "linear-gradient(to bottom, #eff 0%, #dee 100%)",
"border": "1px solid #bcc"
"border": "1px solid #bcc",
"border-radius": "50px"
},
"description": "A buffer where entites can be hold until the next station is ready to process them",
"name": "Queue"
"name": "Queue",
"short_id": "Q"
},
"Dream.Repairman": {
"_class": "node",
......@@ -407,15 +402,6 @@
"capacity": {
"$ref": "#/definitions/_capacity",
"required": true
},
"id": {
"default": "R",
"required": true,
"type": "string"
},
"name": {
"default": "Repairman",
"type": "string"
}
},
"type": "object"
......@@ -427,7 +413,8 @@
"border": "1px solid #cbb"
},
"description": "A resource that repairs stations in failure",
"name": "Repairman"
"name": "Repairman",
"short_id": "R"
},
"Dream.Source": {
"_class": "node",
......@@ -437,44 +424,41 @@
},
{
"properties": {
"id": {
"default": "S",
"entity": {
"default": "Dream.Part",
"description": "Class used for entities",
"name": "Entity Class",
"required": true,
"type": "string"
},
"name": {
"default": "Source",
"type": "string"
},
"interArrivalTime": {
"$ref": "#/definitions/_dist",
"description": "Inter-arrivaltime",
"required": true,
"default":{"Fixed":{"mean":2}}
"default": {
"Fixed": {
"mean": 2
}
},
"entity": {
"default": "Dream.Part",
"description": "EntityClass",
"required": true,
"type": "string"
"description": "Inter-arrivaltime",
"required": true
}
},
"type": "object"
}
],
"css": {
"backgroundColor": "#ffe",
"backgroundImage": "linear-gradient(to bottom, #ffe 0%, #dde 100%)",
"border": "1px solid #bbc"
"backgroundColor": "#FEF1B5",
"backgroundImage": "linear-gradient(to bottom, #FEF1B5 0%, #FFF8DC 100%)",
"border": "1px solid #bcc"
},
"description": "A station creating entities",
"name": "Source"
"name": "Source",
"short_id": "S"
},
"definitions": {
"_capacity": {
"default": 1,
"name": "Capacity",
"description": "capacity of the queue. -1 means infinite",
"name": "Capacity",
"oneOf": [
{
"enum": [
......@@ -583,7 +567,6 @@
},
"_schedulingRule": {
"default": "FIFO",
"name": "Scheduling Rule",
"description": "Scheduling Rule, one of FIFO Priority EDD EOD NumStages RPC LPT SPT MS WINQ",
"enum": [
"FIFO",
......@@ -598,6 +581,7 @@
"WINQ",
"WT"
],
"name": "Scheduling Rule",
"type": "string"
},
"distributionTypes": {
......@@ -606,10 +590,12 @@
"properties": {
"mean": {
"default": 0,
"name": "Mean",
"type": "number"
},
"size": {
"default": 0,
"name": "Size",
"type": "number"
}
},
......@@ -620,10 +606,12 @@
"description": "Cauchy",
"properties": {
"location": {
"name": "Location",
"default": 0,
"type": "number"
},
"scale": {
"name": "Scale",
"default": 0,
"type": "number"
}
......@@ -635,6 +623,7 @@
"description": "Exponential",
"properties": {
"mean": {
"name": "Mean",
"default": 0,
"required": true,
"type": "number"
......@@ -668,6 +657,7 @@
"properties": {
"mean": {
"default": 0,
"name": "Value",
"required": true,
"type": "number"
}
......@@ -679,11 +669,13 @@
"description": "Gama",
"properties": {
"rate": {
"name": "Rate",
"default": 0,
"required": true,
"type": "number"
},
"shape": {
"name": "Shape",
"default": 0,
"required": true,
"type": "number"
......@@ -696,6 +688,7 @@
"description": "Geometric",
"properties": {
"probability": {
"name": "Probability",
"default": 0,
"required": true,
"type": "number"
......@@ -708,11 +701,13 @@
"description": "Logistic",
"properties": {
"location": {
"name": "Location",
"default": 0,
"required": true,
"type": "number"
},
"scale": {
"name": "Scale",
"default": 0,
"required": true,
"type": "number"
......@@ -725,13 +720,11 @@
"description": "Lognormal",
"properties": {
"mean": {
"_class": "Dream.Property",
"default": 0,
"name": "Mean",
"type": "number"
},
"stdev": {
"_class": "Dream.Property",
"default": 0,
"name": "Standard Deviation",
"type": "number"
......@@ -749,11 +742,13 @@
"description": "Normal",
"properties": {
"mean": {
"name": "Mean",
"default": 0,
"required": true,
"type": "number"
},
"stdev": {
"name": "Standard Deviation",
"default": 0,
"required": true,
"type": "number"
......@@ -766,6 +761,7 @@
"description": "Poisson",
"properties": {
"lambda": {
"name": "Lambda",
"default": 0,
"type": "number"
}
......@@ -777,11 +773,13 @@
"description": "Weibull",
"properties": {
"scale": {
"name": "Scale",
"default": 0,
"required": true,
"type": "number"
},
"shape": {
"name": "Scale",
"default": 0,
"required": true,
"type": "number"
......@@ -802,6 +800,7 @@
"type": "string"
},
"name": {
"name": "Name",
"type": "string"
},
"source": {
......@@ -828,7 +827,16 @@
},
"type": "object"
},
"id": {
"description": "The unique identifier of this node",
"name": "ID",
"priority": 10000,
"type": "string"
},
"name": {
"description": "The name of this node",
"name": "Name",
"priority": 9999,
"type": "string"
}
},
......@@ -840,52 +848,15 @@
}
},
"constraints": {},
"general": {},
"general": {
},
"graph": {
"edge": {},
"node": {}
"edge": {
},
"node": {
}
},
"input": {
"machine_shift_spreadsheet": [
[
"Date",
"Machine",
"Start",
"Stop"
],
[
null,
null,
null,
null
]
],
"repairman_shift_spreadsheet": [
[
"Date",
"Repairman",
"Start",
"Stop"
],
[
null,
null,
null,
null
]
],
"wip_spreadsheet": [
[
"ID",
"StationID",
"Remaining Processing Time"
],
[
null,
null,
null
]
]
},
"result": {
"result_list": []
......
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