Commit 7bc5c8b9 authored by Nicolas Seydoux's avatar Nicolas Seydoux
Browse files

Prepared experiments distribution 1,2,3

parent 7b60d3de
......@@ -126,6 +126,24 @@ python3 simulator/generator.py -t simulator/thesis/distribution/distribution_0.j
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_0.json -o simulator/thesis/distribution_0_cip -c cip
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_0.json -o simulator/thesis/distribution_0_adp -c adp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_1.json -o simulator/thesis/distribution_1_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_1.json -o simulator/thesis/distribution_1_cir -c cir
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_1.json -o simulator/thesis/distribution_1_cdp -c cdp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_1.json -o simulator/thesis/distribution_1_cip -c cip
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_1.json -o simulator/thesis/distribution_1_adp -c adp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_2.json -o simulator/thesis/distribution_2_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_2.json -o simulator/thesis/distribution_2_cir -c cir
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_2.json -o simulator/thesis/distribution_2_cdp -c cdp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_2.json -o simulator/thesis/distribution_2_cip -c cip
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_2.json -o simulator/thesis/distribution_2_adp -c adp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_3.json -o simulator/thesis/distribution_3_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_3.json -o simulator/thesis/distribution_3_cir -c cir
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_3.json -o simulator/thesis/distribution_3_cdp -c cdp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_3.json -o simulator/thesis/distribution_3_cip -c cip
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_3.json -o simulator/thesis/distribution_3_adp -c adp
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_4.json -o simulator/thesis/distribution_4_cdr -c cdr
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_4.json -o simulator/thesis/distribution_4_cir -c cir
python3 simulator/generator.py -t simulator/thesis/distribution/distribution_4.json -o simulator/thesis/distribution_4_cdp -c cdp
......
This diff is collapsed.
@prefix : <https://w3id.org/laas-iot/edr/iiot/factory#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <https://w3id.org/laas-iot/edr/iiot/factory> .
:Floor0 rdf:type :Floor ; :locatedIn :myFactory.
:Conveyor00 rdf:type :Conveyor ; :locatedIn :Floor0.
:Machine000 :onConveyor :Conveyor00.
:Machine000 rdf:type :SparkGeneratingMachine.
:Machine001 :onConveyor :Conveyor00.
:Machine001 rdf:type :ColdSensitiveMachine.
:Conveyor01 rdf:type :Conveyor ; :locatedIn :Floor0.
:Machine010 :onConveyor :Conveyor01.
:Machine010 rdf:type :SparkGeneratingMachine.
:Machine011 :onConveyor :Conveyor01.
:Machine011 rdf:type :ColdSensitiveMachine.
:Floor1 rdf:type :Floor ; :locatedIn :myFactory.
:Conveyor10 rdf:type :Conveyor ; :locatedIn :Floor1.
:Machine100 :onConveyor :Conveyor10.
:Machine100 rdf:type :SparkGeneratingMachine.
:Machine101 :onConveyor :Conveyor10.
:Machine101 rdf:type :ColdSensitiveMachine.
:Conveyor11 rdf:type :Conveyor ; :locatedIn :Floor1.
:Machine110 :onConveyor :Conveyor11.
:Machine110 rdf:type :SparkGeneratingMachine.
:Machine111 :onConveyor :Conveyor11.
:Machine111 rdf:type :ColdSensitiveMachine.
......@@ -3,18 +3,18 @@
"floors":[{
"type":"floor",
"sensors":[],
"count":1,
"count":2,
"conveyors":[{
"type":"conveyor",
"sensors":[{"type":"luminosity", "up":1}, {"type":"presence", "up":0}, {"type":"conveyor_state", "up":0}, {"type":"conveyor_speed", "up":0}, {"type":"supervisor_presence", "up":0}],
"sensors":[{"type":"luminosity", "up":1}, {"type":"presence", "up":1}, {"type":"conveyor_state", "up":1}, {"type":"conveyor_speed", "up":2}, {"type":"supervisor_presence", "up":2}],
"count":2,
"machines":[{
"type":"spark_machine",
"sensors":[{"type":"particle_level", "up":0}, {"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"sensors":[{"type":"particle_level", "up":2}, {"type":"luminosity", "up":3}, {"type":"presence", "up":2}, {"type":"machine_state", "up":2}, {"type":"product_quality", "up":3}, {"type":"machine_speed", "up":3}],
"count":1
},{
"type":"temperature_machine",
"sensors":[{"type":"temperature", "up":0}, {"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"sensors":[{"type":"temperature", "up":2}, {"type":"luminosity", "up":3}, {"type":"presence", "up":2}, {"type":"machine_state", "up":2}, {"type":"product_quality", "up":3}, {"type":"machine_speed", "up":3}],
"count":1
}]
}
......
This diff is collapsed.
@prefix : <https://w3id.org/laas-iot/edr/iiot/factory#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <https://w3id.org/laas-iot/edr/iiot/factory> .
:Floor0 rdf:type :Floor ; :locatedIn :myFactory.
:Conveyor00 rdf:type :Conveyor ; :locatedIn :Floor0.
:Machine000 :onConveyor :Conveyor00.
:Machine000 rdf:type :SparkGeneratingMachine.
:Machine001 :onConveyor :Conveyor00.
:Machine001 rdf:type :ColdSensitiveMachine.
:Conveyor01 rdf:type :Conveyor ; :locatedIn :Floor0.
:Machine010 :onConveyor :Conveyor01.
:Machine010 rdf:type :SparkGeneratingMachine.
:Machine011 :onConveyor :Conveyor01.
:Machine011 rdf:type :ColdSensitiveMachine.
:Floor1 rdf:type :Floor ; :locatedIn :myFactory.
:Conveyor10 rdf:type :Conveyor ; :locatedIn :Floor1.
:Machine100 :onConveyor :Conveyor10.
:Machine100 rdf:type :SparkGeneratingMachine.
:Machine101 :onConveyor :Conveyor10.
:Machine101 rdf:type :ColdSensitiveMachine.
:Conveyor11 rdf:type :Conveyor ; :locatedIn :Floor1.
:Machine110 :onConveyor :Conveyor11.
:Machine110 rdf:type :SparkGeneratingMachine.
:Machine111 :onConveyor :Conveyor11.
:Machine111 rdf:type :ColdSensitiveMachine.
......@@ -3,18 +3,18 @@
"floors":[{
"type":"floor",
"sensors":[],
"count":1,
"count":2,
"conveyors":[{
"type":"conveyor",
"sensors":[{"type":"luminosity", "up":1}, {"type":"presence", "up":0}, {"type":"conveyor_state", "up":0}, {"type":"conveyor_speed", "up":0}, {"type":"supervisor_presence", "up":0}],
"sensors":[{"type":"luminosity", "up":1}, {"type":"presence", "up":1}, {"type":"conveyor_state", "up":1}, {"type":"conveyor_speed", "up":0}, {"type":"supervisor_presence", "up":2}],
"count":2,
"machines":[{
"type":"spark_machine",
"sensors":[{"type":"particle_level", "up":0}, {"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"sensors":[{"type":"particle_level", "up":2}, {"type":"luminosity", "up":2}, {"type":"presence", "up":2}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":3}, {"type":"machine_speed", "up":0}],
"count":1
},{
"type":"temperature_machine",
"sensors":[{"type":"temperature", "up":0}, {"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"sensors":[{"type":"temperature", "up":2}, {"type":"luminosity", "up":2}, {"type":"presence", "up":2}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":3}, {"type":"machine_speed", "up":0}],
"count":1
}]
}
......
This diff is collapsed.
@prefix : <https://w3id.org/laas-iot/edr/iiot/factory#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <https://w3id.org/laas-iot/edr/iiot/factory> .
:Floor0 rdf:type :Floor ; :locatedIn :myFactory.
:Conveyor00 rdf:type :Conveyor ; :locatedIn :Floor0.
:Machine000 :onConveyor :Conveyor00.
:Machine000 rdf:type :SparkGeneratingMachine.
:Machine001 :onConveyor :Conveyor00.
:Machine001 rdf:type :ColdSensitiveMachine.
:Conveyor01 rdf:type :Conveyor ; :locatedIn :Floor0.
:Machine010 :onConveyor :Conveyor01.
:Machine010 rdf:type :SparkGeneratingMachine.
:Machine011 :onConveyor :Conveyor01.
:Machine011 rdf:type :ColdSensitiveMachine.
:Floor1 rdf:type :Floor ; :locatedIn :myFactory.
:Conveyor10 rdf:type :Conveyor ; :locatedIn :Floor1.
:Machine100 :onConveyor :Conveyor10.
:Machine100 rdf:type :SparkGeneratingMachine.
:Machine101 :onConveyor :Conveyor10.
:Machine101 rdf:type :ColdSensitiveMachine.
:Conveyor11 rdf:type :Conveyor ; :locatedIn :Floor1.
:Machine110 :onConveyor :Conveyor11.
:Machine110 rdf:type :SparkGeneratingMachine.
:Machine111 :onConveyor :Conveyor11.
:Machine111 rdf:type :ColdSensitiveMachine.
......@@ -3,18 +3,18 @@
"floors":[{
"type":"floor",
"sensors":[],
"count":1,
"count":2,
"conveyors":[{
"type":"conveyor",
"sensors":[{"type":"luminosity", "up":1}, {"type":"presence", "up":0}, {"type":"conveyor_state", "up":0}, {"type":"conveyor_speed", "up":0}, {"type":"supervisor_presence", "up":0}],
"sensors":[{"type":"luminosity", "up":1}, {"type":"presence", "up":1}, {"type":"conveyor_state", "up":1}, {"type":"conveyor_speed", "up":0}, {"type":"supervisor_presence", "up":2}],
"count":2,
"machines":[{
"type":"spark_machine",
"sensors":[{"type":"particle_level", "up":0}, {"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"sensors":[{"type":"particle_level", "up":0}, {"type":"luminosity", "up":1}, {"type":"presence", "up":1}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":1}, {"type":"machine_speed", "up":0}],
"count":1
},{
"type":"temperature_machine",
"sensors":[{"type":"temperature", "up":0}, {"type":"luminosity", "up":0}, {"type":"presence", "up":0}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":0}, {"type":"machine_speed", "up":0}],
"sensors":[{"type":"temperature", "up":0}, {"type":"luminosity", "up":1}, {"type":"presence", "up":1}, {"type":"machine_state", "up":0}, {"type":"product_quality", "up":1}, {"type":"machine_speed", "up":0}],
"count":1
}]
}
......
echo "distribution local"
python3 factory_generator.py -b distribution/distribution_0_blueprint.json -d distribution/distribution_0.ttl -o distribution/distribution_0.json
python3 factory_generator.py -b distribution/distribution_1_blueprint.json -d distribution/distribution_1.ttl -o distribution/distribution_1.json
python3 factory_generator.py -b distribution/distribution_2_blueprint.json -d distribution/distribution_2.ttl -o distribution/distribution_2.json
python3 factory_generator.py -b distribution/distribution_3_blueprint.json -d distribution/distribution_3.ttl -o distribution/distribution_3.json
python3 factory_generator.py -b distribution/distribution_4_blueprint.json -d distribution/distribution_4.ttl -o distribution/distribution_4.json
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