Commit 2d4545f9 authored by Valérie Maquil's avatar Valérie Maquil
Browse files

added transport scenario

parent fafd5ed4
......@@ -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 = question_scenario.xml
bootstrapping.root = budget_scenario.xml
# Properties for the equation system
scriptEngine.executable = C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir = model
equation.system = question_scenario.xml
scenario.description = question_scenario.xml
\ No newline at end of file
equation.system = budget_scenario.xml
scenario.description = budget_scenario.xml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<scene>
<name>Background</name>
<image>assets/Moses-Transports.jpg</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>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>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>50</upperBound>
<scale>1</scale>
<title>Bicycle</title>
<unit>km</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Bicycle</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>50</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Bicycle</name>
<unit>km</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>0</lowerBound>
<upperBound>50</upperBound>
<scale>1</scale>
<title>Train</title>
<unit>km</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Train</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>50</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Train</name>
<unit>km</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</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>120</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<rotateWithHandle>false</rotateWithHandle>
<centred>true</centred>
<text>Banana</text>
</corona>
<corona>
<type>Gauge</type>
<handle>3</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>50</upperBound>
<scale>1</scale>
<title>Car</title>
<unit>km</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Car</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>50</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Car</name>
<unit>km</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>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>4</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>4</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>50</upperBound>
<scale>1</scale>
<title>Bus</title>
<unit>km</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Bus</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>50</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Bus</name>
<unit>km</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>True</modifyValueOnRotation>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>5</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>5</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>Circle</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>5</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>5</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>50</upperBound>
<scale>1</scale>
<title>Foot</title>
<unit>km</unit>
<rotateWithHandle>false</rotateWithHandle>
</corona>
</coronas>
<name>Foot</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>50</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Foot</name>
<unit>km</unit>
<value>0</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>RoundedSquare</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>6</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<rotateWithHandle>false</rotateWithHandle>
<lineWidth>100</lineWidth>
<centred>true</centred>
<font>Arial-20</font>
<initialTranslation>
<x>0</x>
<y>75</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<text>Banana</text>
</corona>
</coronas>
<name>Pollution</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Pollution</name>
<unit>gr</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>7</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>7</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>RoundedSquare</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>7</handle>
<centre>
<x>50</x>
<y>50</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
<centred>true</centred>
<initialTranslation>
<x>0</x>
<y>75</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<rotateWithHandle>false</rotateWithHandle>
<text>Banana</text>
</corona>
</coronas>
<name>Time</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Time</name>
<unit>min</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
<object>
<type>ValueWidget</type>
<handles>
<handle>8</handle>
</handles>
<coronas>
<corona>
<type>Shadow</type>
<handle>8</handle>
<centre>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<shape>RoundedSquare</shape>
<drawPriority>0</drawPriority>
</corona>
<corona>
<type>TextBox</type>
<handle>8</handle>
<centre>
<x>50</x>
<y>50</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
<lineWidth>100</lineWidth>
<font>Arial-20</font>
<centred>true</centred>
<initialTranslation>
<x>0</x>
<y>75</y>
<z>0</z>
<state>ScreenCoordinates</state>
</initialTranslation>
<rotateWithHandle>false</rotateWithHandle>
<text>Banana</text>
</corona>
</coronas>
<name>Price</name>
<definingShape></definingShape>
<networkAdapter></networkAdapter>
<lowerBound>0</lowerBound>
<upperBound>1</upperBound>
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>6.28318530718</upperStopAngle>
<stepSize>1</stepSize>
<variable>
<name>Price</name>
<unit></unit>
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
</objects>
<system>
<outputs>
<output name="Pollution" unit="gr" />
<output name="Time" unit="min" />
<output name="Price" unit="€" />
</outputs>
<equations>
<equation name="Pollution">
<parameters>
<parameter name="Bicycle" unit="km"/>
<parameter name="Train" unit="km"/>
<parameter name="Car" unit="km"/>
<parameter name="Bus" unit="km"/>
<parameter name="Foot" unit="km"/>
</parameters>
<invoke>0.08 * Train + 0.13 * Car + 0.08 * Bus</invoke>
<results>
<result name="Pollution" />
</results>
</equation>
<equation name="Time">
<parameters>
<parameter name="Bicycle" unit="km"/>
<parameter name="Train" unit="km"/>
<parameter name="Car" unit="km"/>
<parameter name="Bus" unit="km"/>
<parameter name="Foot" unit="km"/>
</parameters>
<invoke>3.8 * Bicycle + 1.38 * Train + 0.9 * Car + 2.22 * Bus + 10.28 * Foot</invoke>
<results>
<result name="Time" />
</results>
</equation>
<equation name="Price">
<parameters>
<parameter name="Bicycle" unit="km"/>
<parameter name="Train" unit="km"/>
<parameter name="Car" unit="km"/>
<parameter name="Bus" unit="km"/>
<parameter name="Foot" unit="km"/>
</parameters>
<invoke>0.07 * Train + 0.28 * Car + 0.14 * Bus</invoke>
<results>
<result name="Price" />
</results>
</equation>
</equations>
</system>
</scenario>