Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TULIP-Scenario
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NUI
TULIP-Scenario
Commits
5adabaf7
Commit
5adabaf7
authored
Jul 15, 2016
by
Valérie Maquil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version used for test with uni
parent
dab92105
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2781 additions
and
5 deletions
+2781
-5
Scenarios/circuitTest_scenario1.xml
Scenarios/circuitTest_scenario1.xml
+0
-0
Scenarios/circuitTest_scenario2.txt
Scenarios/circuitTest_scenario2.txt
+415
-0
Scenarios/circuitTest_scenario2.xml
Scenarios/circuitTest_scenario2.xml
+411
-0
Scenarios/circuitTest_scenario3.txt
Scenarios/circuitTest_scenario3.txt
+1407
-0
Scenarios/circuitTest_scenario3.xml
Scenarios/circuitTest_scenario3.xml
+395
-0
Scenarios/gear_scenario_uni.xml
Scenarios/gear_scenario_uni.xml
+2
-2
Scenarios/properties.properties
Scenarios/properties.properties
+3
-3
Scenarios/testtest.xml
Scenarios/testtest.xml
+148
-0
No files found.
Scenarios/circuitTest_scenario.xml
→
Scenarios/circuitTest_scenario
1
.xml
View file @
5adabaf7
File moved
Scenarios/circuitTest_scenario2.txt
0 → 100644
View file @
5adabaf7
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background0</name>
<image>assets/floorplan1.png</image>
<sound/>
<triggerCondition>Ampere < Breaker</triggerCondition>
<drawPriority>0</drawPriority>
</scene>
<scene>
<name>Background1</name>
<image>assets/floorplan2.png</image>
<sound/>
<triggerCondition>Ampere >= Breaker</triggerCondition>
<drawPriority>1</drawPriority>
</scene>
</scenes>
<objects>
<object>
<type>BaseWidget</type>
<name>Lights</name>
<handles>
<handle>1</handle>
</handles>
<variable>
<name>Lights</name>
<value>300</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>1</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>172</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-90</x><y>63</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Dryer</name>
<handles>
<handle>2</handle>
</handles>
<variable>
<name>Dryer</name>
<value>2200</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>2</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-101</x><y>46</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Dishwasher</name>
<handles>
<handle>4</handle>
</handles>
<variable>
<name>Dishwasher</name>
<value>100</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-91</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>220</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>false</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-107</x><y>58</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Laptop</name>
<handles>
<handle>4</handle>
</handles>
<variable>
<name>Laptop</name>
<value>100</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-91</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<corona>
<handle>4</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>220</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>false</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-107</x><y>58</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Smartphone</name>
<handles>
<handle>5</handle>
</handles>
<variable>
<name>Smartphone</name>
<value>5</value>
<unit>Watt</unit>
</variable>
<coronas>
<corona>
<handle>5</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-95</x><y>47</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Breaker</name>
<handles>
<handle>6</handle>
</handles>
<variable>
<name>Breaker</name>
<value>16</value>
<unit>A</unit>
</variable>
<coronas>
<corona>
<handle>6</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-109</x><y>42</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Ampere</name>
<handles>
<handle>7</handle>
</handles>
<variable>
<name>Ampere</name>
<value>15</value>
<unit>A</unit>
</variable>
<coronas>
<corona>
<handle>7</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-108</x><y>39</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>BaseWidget</type>
<name>Load</name>
<handles>
<handle>8</handle>
</handles>
<variable>
<name>Load</name>
<value>0</value>
<unit>%</unit>
</variable>
<coronas>
<corona>
<handle>8</handle>
<type>TextBox</type>
<drawPriority>233</drawPriority>
<rotateWithHandle>true</rotateWithHandle>
<lineWidth>200</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<centred>true</centred>
<text/>
<assignable>false</assignable>
<centre>
<x>0</x><y>0</y><z>0</z>
</centre>
<initialTranslation>
<x>-105</x><y>68</y><z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
</objects>
<system>
<outputs>
<output>
<name>Ampere</name>
<unit>A</unit>
</output>
<output>
<name>CircuitLoad</name>
<unit>%</unit>
</output>
</outputs>
<equations>
<equation>
<name>Ampere</name>
<invoke>(Lights + Dryer + Dishwasher + Laptop + Smartphone) / 230</invoke>
<parameters>
<parameter>
<name>Lights</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dryer</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dishwasher</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Laptop</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Smartphone</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Breaker</name>
<unit>A</unit>
</parameter>
<parameter>
<name>Load</name>
<unit>%</unit>
</parameter>
</parameters>
<results>
<result>
<name>Ampere</name>
</result>
</results>
</equation>
<equation>
<name>CircuitLoad</name>
<invoke>(Ampere / Breaker) * 100</invoke>
<parameters>
<parameter>
<name>Lights</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dryer</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Dishwasher</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Laptop</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Smartphone</name>
<unit>Watt</unit>
</parameter>
<parameter>
<name>Breaker</name>
<unit>A</unit>
</parameter>
<parameter>
<name>Load</name>
<unit>%</unit>
</parameter>
</parameters>
<results>
<result>
<name>CircuitLoad</name>
</result>
</results>
</equation>
</equations>
</system>
</scenario>
\ No newline at end of file
Scenarios/circuitTest_scenario2.xml
0 → 100644
View file @
5adabaf7
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>
Background0
</name>
<image>
assets/floorplan1.png
</image>
<sound/>
<triggerCondition>
Ampere
<
Breaker
</triggerCondition>
<drawPriority>
0
</drawPriority>
</scene>
<scene>
<name>
Background1
</name>
<image>
assets/floorplan2.png
</image>
<sound/>
<triggerCondition>
Ampere
>
= Breaker
</triggerCondition>
<drawPriority>
1
</drawPriority>
</scene>
</scenes>
<objects>
<object>
<type>
ValueWidget
</type>
<name>
Lights
</name>
<handles>
<handle>
1
</handle>
</handles>
<variable>
<name>
Lights
</name>
<value>
300
</value>
<unit>
Watt
</unit>
</variable>
<coronas>
<corona>
<handle>
1
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
true
</rotateWithHandle>
<lineWidth>
172
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
true
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-90
</x><y>
63
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>
ValueWidget
</type>
<name>
Dryer
</name>
<handles>
<handle>
2
</handle>
</handles>
<variable>
<name>
Dryer
</name>
<value>
2200
</value>
<unit>
Watt
</unit>
</variable>
<coronas>
<corona>
<handle>
2
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
true
</rotateWithHandle>
<lineWidth>
200
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
true
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-101
</x><y>
46
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>
ValueWidget
</type>
<name>
Dishwasher
</name>
<handles>
<handle>
4
</handle>
</handles>
<variable>
<name>
Dishwasher
</name>
<value>
100
</value>
<unit>
Watt
</unit>
</variable>
<coronas>
<corona>
<handle>
4
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
false
</rotateWithHandle>
<lineWidth>
200
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
true
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-91
</x><y>
47
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
<corona>
<handle>
4
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
false
</rotateWithHandle>
<lineWidth>
220
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
false
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-107
</x><y>
58
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>
ValueWidget
</type>
<name>
Laptop
</name>
<handles>
<handle>
4
</handle>
</handles>
<variable>
<name>
Laptop
</name>
<value>
100
</value>
<unit>
Watt
</unit>
</variable>
<coronas>
<corona>
<handle>
4
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
false
</rotateWithHandle>
<lineWidth>
200
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
true
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-91
</x><y>
47
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
<corona>
<handle>
4
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
false
</rotateWithHandle>
<lineWidth>
220
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
false
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-107
</x><y>
58
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>
ValueWidget
</type>
<name>
Smartphone
</name>
<handles>
<handle>
5
</handle>
</handles>
<variable>
<name>
Smartphone
</name>
<value>
5
</value>
<unit>
Watt
</unit>
</variable>
<coronas>
<corona>
<handle>
5
</handle>
<type>
TextBox
</type>
<drawPriority>
233
</drawPriority>
<rotateWithHandle>
false
</rotateWithHandle>
<lineWidth>
200
</lineWidth>
<font>
Arial-20
</font>
<colour>
black
</colour>
<centred>
true
</centred>
<text/>
<assignable>
false
</assignable>
<centre>
<x>
0
</x><y>
0
</y><z>
0
</z>
</centre>
<initialTranslation>
<x>
-95
</x><y>
47
</y><z>
0
</z>
<state>
ScreenCoordinates
</state>
</initialTranslation>
</corona>
</coronas>
</object>
<object>
<type>
ValueWidget
</type>