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

Added first draft of scenarios from second workshop along with their assets.

parent b5ddd129
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Backdrop</name>
<image>assets/Background.png</image>
<triggerCondition>true</triggerCondition>
</scene>
<scene>
<name>FlatAsphalt</name>
<image>assets/Flat Asphalt.png</image>
<triggerCondition>Inclination == 0 &amp;&amp; Ground == 0.2</triggerCondition>
<!-- Inclination 0 and Ground is Asphalt -->
</scene>
<scene>
<name>10Asphalt</name>
<image>assets/10Degrees Asphalt.png</image>
<triggerCondition>Inclination == 10 &amp;&amp; Ground == 0.2</triggerCondition>
</scene>
<scene>
<name>20Asphalt</name>
<image>assets/20Degrees Asphalt.png</image>
<triggerCondition>Inclination == 20 &amp;&amp; Ground == 0.2</triggerCondition>
</scene>
<scene>
<name>FlatSand</name>
<image>assets/Flat Sand.png</image>
<triggerCondition>Inclination == 0 &amp;&amp; Ground == 0.4</triggerCondition>
<!-- Inclination 0 and Ground is Sand -->
</scene>
<scene>
<name>10Sand</name>
<image>assets/10Degrees Sand.png</image>
<triggerCondition>Inclination == 10 &amp;&amp; Ground == 0.4</triggerCondition>
</scene>
<scene>
<name>20Sand</name>
<image>assets/20Degrees Sand.png</image>
<triggerCondition>Inclination == 20 &amp;&amp; Ground == 0.4</triggerCondition>
</scene>
</scenes>
<objects>
<object>
<type>ValueWidget</type>
<handles>
<handle>9</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>9</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>Gauge</type>
<handle>9</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>7</upperBound>
<scale>1</scale>
<title>WheelGear</title>
<unit>Gear</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>WheelGear</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>1</lowerBound>
<upperBound>7</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>WheelGear</name>
<unit>Gear</unit>
<value>1</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>6</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>6</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>Gauge</type>
<handle>6</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>3</upperBound>
<scale>1</scale>
<title>PedalGear</title>
<unit>Gear</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>PedalGear</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>1</lowerBound>
<upperBound>3</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>PedalGear</name>
<unit>Gear</unit>
<value>1</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>10</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>10</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>Gauge</type>
<handle>10</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>20</upperBound>
<scale>1</scale>
<title>Inclination</title>
<unit></unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Inclination</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>20</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>10</stepSize>
<variable>
<name>Inclination</name>
<unit>%</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>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.2</lowerBound>
<upperBound>0.4</upperBound>
<scale>1</scale>
<title>Ground</title>
<unit>Coarseness</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Ground</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0.2</lowerBound>
<upperBound>0.4</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>0.2</stepSize>
<variable>
<name>Ground</name>
<unit>Coarseness</unit>
<value>0.2</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<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>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>1</lowerBound>
<upperBound>30</upperBound>
<scale>1</scale>
<title>Distance</title>
<unit>km</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Distance</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>1</lowerBound>
<upperBound>30</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>5</stepSize>
<variable>
<name>Distance</name>
<unit>km</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>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>100</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<rotateWithHandle>false</rotateWithHandle>
<centred>true</centred>
<text>Ratio</text>
</corona>
</coronas>
<name>Ratio</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Ratio</name>
<unit></unit>
<value>0</value>
</variable>
</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>100</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<rotateWithHandle>false</rotateWithHandle>
<centred>true</centred>
<text>ForceOnPedal</text>
</corona>
</coronas>
<name>ForceOnPedal</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>ForceOnPedal</name>
<unit>N</unit>
<value>0</value>
</variable>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>3</handle>
</handles>
<coronas>
<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>0</x>
<y>0</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
<initialTranslation>
<x>0</x>
<y>100</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<rotateWithHandle>false</rotateWithHandle>
<centred>true</centred>
<text>Energy</text>
</corona>
</coronas>
<name>Energy</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Energy</name>
<unit>J</unit>
<value>0</value>
</variable>
</object>
</objects>
<system>
<outputs>
<output name="Ratio" unit="" />
<output name="ForceOnPedal" unit="N" />
<output name="Energy" unit="J" />
</outputs>
<equations>
<equation name="Ratio">
<parameters>
<parameter name="WheelGear" unit="Gear" />
<parameter name="PedalGear" unit="Gear" />
</parameters>
<invoke>WheelGear / PedalGear ;</invoke>
<results>
<result name="Ratio" />
</results>
</equation>
<!-- Force on Wheel = Fg * sin(alpha) + Friction -->
<!-- -->
<equation name="ForceOnPedal">
<parameters>
<parameter name="Inclination" unit="%" />
<parameter name="Ground" unit="Coarseness" />
<parameter name="Ratio" unit="" />
<parameter name="PedalGear" unit="" />
<parameter name="WheelGear" unit="" />
</parameters>
<invoke>(74 * 10 * (Ground + Math.sin(Inclination/180 * 6.28))) * ( (37*(5+((PedalGear-1)*2.5))) / ((5-((WheelGear-1)*0.35))*20));</invoke>
<results>
<result name="ForceOnPedal" />
</results>
</equation>
<equation name="Energy">
<parameters>
<parameter name="Inclination" unit="€" />
<parameter name="Ground" unit="€" />
<parameter name="Distance" unit="€" />
</parameters>
<invoke>(74 * 10 * (Ground + Math.sin(Inclination/180 * 6.28))) * Distance</invoke>
<results>
<result name="Energy" />
</results>
</equation>
</equations>
</system>
</scenario>
\ No newline at end of file
......@@ -27,10 +27,10 @@ cursor.id.remapping.constant = 1024
adapter.class = lu.list.itis.dkd.tui.adapter.TuioAdapter
# The location and name of the root bootstrapping file.
bootstrapping.root = budget_scenario.xml
bootstrapping.root = question_scenario.xml
# Properties for the equation system
scriptEngine.executable = C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir = model
equation.system = budget_scenario.xml
scenario.description = budget_scenario.xml
\ No newline at end of file
equation.system = question_scenario.xml
scenario.description = question_scenario.xml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background</name>
<image>assets/fruit.png</image>
<triggerCondition>true</triggerCondition>
</scene>
<scene>
<name>Waiting</name>
<image>assets/clock.png</image>
<triggerCondition>(QuestionSum &gt; 0) &amp;&amp; QuestionSum != Sum ;</triggerCondition>
</scene>
<scene>
<name>Correct</name>
<image>assets/correct.png</image>
<triggerCondition>(QuestionSum &gt; 0) &amp;&amp; QuestionSum == Sum ;</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>
</coronas>
<name>Fruit</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Fruit</name>