Commit b5ddd129 authored by Eric Tobias's avatar Eric Tobias
Browse files

Added scenarios and assets done during the first workshop in Madrid.

parent 67d60891
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>bon</name>
<image>assets/bechamel_bon.png</image>
<triggerCondition>true</triggerCondition>
</scene>
<scene>
<name>liquide</name>
<image>assets/bechamel_liquide.png</image>
<triggerCondition>Durete &lt; -0.5</triggerCondition>
</scene>
<scene>
<name>solide</name>
<image>assets/bechamel_solide.png</image>
<triggerCondition>Durete &gt; 0.5</triggerCondition>
</scene>
<scene>
<name>vide</name>
<image>assets/bechamel_vide.png</image>
<triggerCondition>Chaleur == 0</triggerCondition>
</scene>
</scenes>
<objects>
<object>
<type>ValueWidget</type>
<handles>
<handle>0</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>0</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<!-- <corona> -->
<!-- <type>TextBox</type> -->
<!-- <handle>0</handle> -->
<!-- <centre> -->
<!-- <x>0</x> -->
<!-- <y>0</y> -->
<!-- <z>0</z> -->
<!-- </centre> -->
<!-- <drawPriority>1</drawPriority> -->
<!-- <lineWidth>100</lineWidth> -->
<!-- <font>Arial-20</font> -->
<!-- <initialTranslation> -->
<!-- <x>0</x> -->
<!-- <y>120</y> -->
<!-- <z>0</z> -->
<!-- <state>ScreenCoordinates</state> -->
<!-- </initialTranslation> -->
<!-- <rotateWithHandle>false</rotateWithHandle> -->
<!-- <centred>true</centred> -->
<!-- <text>Banana</text> -->
<!-- </corona> -->
<corona>
<type>Gauge</type>
<handle>0</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<initialTranslation>
<x>-125</x>
<y>-125</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<width>250</width>
<height>250</height>
<lowerBound>0</lowerBound>
<upperBound>2000</upperBound>
<scale>1</scale>
<title>Roux</title>
<unit>gr</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Roux</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>2000</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Roux</name>
<unit>gr</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>11</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>11</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> -->
<!-- <initialTranslation> -->
<!-- <x>0</x> -->
<!-- <y>120</y> -->
<!-- <z>0</z> -->
<!-- <state>ScreenCoordinates</state> -->
<!-- </initialTranslation> -->
<!-- <rotateWithHandle>false</rotateWithHandle> -->
<!-- <centred>true</centred> -->
<!-- <text>Banana</text> -->
<!-- </corona> -->
<corona>
<type>Gauge</type>
<handle>11</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<initialTranslation>
<x>-125</x>
<y>-125</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<width>250</width>
<height>250</height>
<lowerBound>0</lowerBound>
<upperBound>10</upperBound>
<scale>1</scale>
<title>Lait</title>
<unit>l</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Lait</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>10</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Lait</name>
<unit>l</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<!-- <object>
<type>ValueWidget</type>
<handles>
<handle>2</handle>
</handles>
<coronas>
<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>0</x> -->
<!-- <y>0</y> -->
<!-- <z>0</z> -->
<!-- </centre> -->
<!-- <drawPriority>1</drawPriority> -->
<!-- <lineWidth>100</lineWidth> -->
<!-- <font>Arial-20</font> -->
<!-- <initialTranslation> -->
<!-- <x>0</x> -->
<!-- <y>120</y> -->
<!-- <z>0</z> -->
<!-- <state>ScreenCoordinates</state> -->
<!-- </initialTranslation> -->
<!-- <rotateWithHandle>false</rotateWithHandle> -->
<!-- <centred>true</centred> -->
<!-- <text>Banana</text> -->
<!-- </corona> -->
<!-- <corona>
<type>Gauge</type>
<handle>2</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<initialTranslation>
<x>-125</x>
<y>-125</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<width>250</width>
<height>250</height>
<lowerBound>1</lowerBound>
<upperBound>100</upperBound>
<scale>1</scale>
<title>Nr de personnes</title>
<unit>pieces</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>NrPersonnes</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>1</lowerBound>
<upperBound>100</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>NrPersonnes</name>
<unit>piece</unit>
<value>1</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>-->
<object>
<type>ValueWidget</type>
<handles>
<handle>1</handle>
</handles>
<coronas>
<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>2</handle> -->
<!-- <centre> -->
<!-- <x>0</x> -->
<!-- <y>0</y> -->
<!-- <z>0</z> -->
<!-- </centre> -->
<!-- <drawPriority>1</drawPriority> -->
<!-- <lineWidth>100</lineWidth> -->
<!-- <font>Arial-20</font> -->
<!-- <initialTranslation> -->
<!-- <x>0</x> -->
<!-- <y>120</y> -->
<!-- <z>0</z> -->
<!-- <state>ScreenCoordinates</state> -->
<!-- </initialTranslation> -->
<!-- <rotateWithHandle>false</rotateWithHandle> -->
<!-- <centred>true</centred> -->
<!-- <text>Banana</text> -->
<!-- </corona> -->
<corona>
<type>Gauge</type>
<handle>1</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<initialTranslation>
<x>-125</x>
<y>-125</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<width>250</width>
<height>250</height>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<scale>1</scale>
<title>Chaleur</title>
<unit>pieces</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Chaleur</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Chaleur</name>
<unit>piece</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>4</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>4</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>RoundedSquare</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>4</handle>
<centre>
<x>50</x>
<y>50</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
<colour>black</colour>
<initialTranslation>
<x>0</x>
<y>75</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<text>Banana</text>
<centred>true</centred>
</corona>
</coronas>
<name>Personnes</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Personnes</name>
<unit>Pieces</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>2</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>2</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>RoundedSquare</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>
<colour>black</colour>
<initialTranslation>
<x>0</x>
<y>75</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<centred>true</centred>
<rotateWithHandle>false</rotateWithHandle>
<text>Banana</text>
</corona>
</coronas>
<name>Durete</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Durete</name>
<unit>Unit</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
</objects>
<system>
<outputs>
<output name="Personnes" />
<output name="Durete" />
</outputs>
<equations>
<equation name="Bechamel">
<parameters>
<parameter name="Roux" unit="gr" />
<parameter name="Lait" unit="l" />
<parameter name="Chaleur" />
</parameters>
<invoke>Math.min((Roux/100),Lait)</invoke>
<results>
<result name="Personnes" />
</results>
</equation>
<equation name="Durete">
<parameters>
<parameter name="Roux" unit="gr" />
<parameter name="Lait" unit="l" />
<parameter name="Chaleur" />
</parameters>
<invoke>(Roux/100) - (Lait)</invoke>
<results>
<result name="Durete" />
</results>
</equation>
</equations>
</system>
</scenario>
\ No newline at end of file
This diff is collapsed.
......@@ -3,7 +3,7 @@
<scenes>
<scene>
<name>Background</name>
<image>assets/floorplan1.png</image>
<image>assets/checkered_tablecloth.jpg</image>
<triggerCondition>true</triggerCondition>
</scene>
</scenes>
......
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background</name>
<image>assets/potometer3.gif</image>
<triggerCondition>true</triggerCondition>
</scene>
</scenes>
<objects>
<object>
<type>ValueWidget</type>
<handles>
<handle>1</handle>
</handles>
<coronas>
<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>Gauge</type>
<handle>1</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<initialTranslation>
<x>-125</x>
<y>-125</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<width>250</width>
<height>250</height>
<lowerBound>0</lowerBound>
<upperBound>10</upperBound>
<scale>1</scale>
<title>LightIntensity</title>
<unit></unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>LightIntensity</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>10</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>LightIntensity</name>
<unit></unit>
<value>0</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>2</handle>
</handles>
<coronas>
<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>Gauge</type>
<handle>2</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<initialTranslation>
<x>-125</x>
<y>-125</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<drawPriority>2</drawPriority>
<width>250</width>
<height>250</height>
<lowerBound>0</lowerBound>
<upperBound>10</upperBound>
<scale>1</scale>
<title>WindSpeed</title>
<unit></unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>WindSpeed</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>