Commit 5afe450e authored by Valérie Maquil's avatar Valérie Maquil
Browse files

new gearing scenario

parent ef9534c3
......@@ -175,15 +175,15 @@
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<!-- <width>100</width>
<height>100</height> -->
<width>200</width>
<height>200</height>
<drawPriority>2</drawPriority>
<image>assets/chaleur_on.png</image>
<rotateWithHandle>false</rotateWithHandle>
<triggerCondition>Chaleur == 1</triggerCondition>
</corona>
<corona>
<type>ConditionalCorona</type>
<type>Image</type>
<handle>1</handle>
<centre>
<x>0</x>
......@@ -197,12 +197,12 @@
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>3</drawPriority>
<!-- <width>100</width>
<height>100</height> -->
<width>200</width>
<height>200</height>
<drawPriority>2</drawPriority>
<image>assets/chaleur_off.png</image>
<rotateWithHandle>false</rotateWithHandle>
<triggerCondition>Chaleur == 0</triggerCondition>
<!-- <triggerCondition>Chaleur == 0</triggerCondition> -->
</corona>
</coronas>
......
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background0</name>
<image>assets/floorplan1.png</image>
<sound/>
<triggerCondition>Ampere &lt; Breaker</triggerCondition>
<drawpriority>0</drawpriority>
</scene>
<scene>
<name>Background1</name>
<image>assets/floorplan2.png</image>
<sound/>
<triggerCondition>Ampere &gt;= 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>Ampere</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>Ampere</name>
<unit>A</unit>
</parameter>
<parameter>
<name>Load</name>
<unit>%</unit>
</parameter>
</parameters>
<results>
<result>
<name>CircuitLoad</name>
</result>
</results>
</equation>
</equations>
</system>
</scenario>
......@@ -15,6 +15,13 @@
<objects>
<object>
<name>Lights</name>
<variable>
<name>Lights</name>
<unit>Watt</unit>
<value>300</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<type>ValueWidget</type>
<handles>
<handle>1</handle>
......@@ -23,22 +30,12 @@
<corona>
<type>Shadow</type>
<handle>1</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>1</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
......@@ -53,22 +50,16 @@
<text>Banana</text>
</corona>
</coronas>
<name>Lights</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>3.1415</lowerStopAngle>
<upperStopAngle>6.2830</upperStopAngle>
<stepSize>1</stepSize>
</object>
<object>
<name>Hair Dryer</name>
<variable>
<name>Lights</name>
<name>Dryer</name>
<unit>Watt</unit>
<value>300</value>
<value>2200</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>2</handle>
......@@ -77,22 +68,12 @@
<corona>
<type>Shadow</type>
<handle>2</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>2</handle>
<centre>
<x>50</x>
<y>50</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
......@@ -107,22 +88,16 @@
<text>Banana</text>
</corona>
</coronas>
<name>Hair Dryer</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>3.1415</lowerStopAngle>
<upperStopAngle>6.2830</upperStopAngle>
<stepSize>1</stepSize>
</object>
<object>
<name>Dishwasher</name>
<variable>
<name>Dryer</name>
<name>Dishwasher</name>
<unit>Watt</unit>
<value>2200</value>
<value>1800</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>3</handle>
......@@ -131,22 +106,12 @@
<corona>
<type>Shadow</type>
<handle>3</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>3</handle>
<centre>
<x>50</x>
<y>50</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
......@@ -161,22 +126,16 @@
<text>Banana</text>
</corona>
</coronas>
<name>Dishwasher</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>