Commit 89a896ac authored by Eric Tobias's avatar Eric Tobias
Browse files

First working prototype

parent 94732bdb
......@@ -30,6 +30,6 @@ adapter.class = lu.list.itis.dkd.tui.adapter.TuioAdapter
bootstrapping.root = scenario.xml
# Properties for the equation system
scriptEngine.executable = C:\\Octave\\Octave-4.0.0\\bin\\octave.exe
scriptEngine.executable = C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir = model
equation.system = scenario.xml
\ No newline at end of file
......@@ -34,8 +34,8 @@
<type>TextBox</type>
<handle>1</handle>
<centre>
<x>50</x>
<y>50</y>
<x>0</x>
<y>0</y>
<z>0</z>
</centre>
<drawPriority>1</drawPriority>
......@@ -76,7 +76,7 @@
</corona>
<corona>
<type>TextBox</type>
<handle>1</handle>
<handle>2</handle>
<centre>
<x>50</x>
<y>50</y>
......@@ -120,7 +120,7 @@
</corona>
<corona>
<type>TextBox</type>
<handle>1</handle>
<handle>3</handle>
<centre>
<x>50</x>
<y>50</y>
......@@ -164,7 +164,7 @@
</corona>
<corona>
<type>TextBox</type>
<handle>1</handle>
<handle>4</handle>
<centre>
<x>50</x>
<y>50</y>
......@@ -208,7 +208,7 @@
</corona>
<corona>
<type>TextBox</type>
<handle>1</handle>
<handle>5</handle>
<centre>
<x>50</x>
<y>50</y>
......@@ -252,7 +252,7 @@
</corona>
<corona>
<type>TextBox</type>
<handle>1</handle>
<handle>6</handle>
<centre>
<x>50</x>
<y>50</y>
......@@ -319,7 +319,8 @@
<unit>A</unit>
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
<object>
<type>ValueWidget</type>
......@@ -364,29 +365,30 @@
<value>0</value>
</variable>
<modifyValueOnRotation>False</modifyValueOnRotation>
<dynamic>true</dynamic>
</object>
</objects>
<system>
<outputs>
<output name="Load" />
<output name="Ampere" />
<output name="Load" unit="%" />
<output name="Ampere" unit="A" />
</outputs>
<equations>
<equation name="Power Consumption">
<equation name="PowerConsumption">
<parameters>
<parameter name="Lights" />
<parameter name="Dryer" />
<parameter name="Dishwasher" />
<parameter name="Laptop" />
<parameter name="Smartphone" />
<parameter name="Lights" unit="W" />
<parameter name="Dryer" unit="W"/>
<parameter name="Dishwasher" unit="W"/>
<parameter name="Laptop" unit="W"/>
<parameter name="Smartphone" unit="W"/>
</parameters>
<invoke>Ampere = PowerConsumption (Lights, Dryer, Dishwasher, Laptop, Smartphone);</invoke>
<invoke>(Lights + Dryer + Dishwasher + Laptop + Smartphone) / 230;</invoke>
<results>
<result name="Ampere" />
</results>
</equation>
<equation name="Circuit Load">
<equation name="CircuitLoad">
<parameters>
<parameter name="Breaker" />
<parameter name="Lights" />
......@@ -395,7 +397,7 @@
<parameter name="Laptop" />
<parameter name="Smartphone" />
</parameters>
<invoke>Load = CircuitLoad (Breaker, Lights, Dryer, Dishwasher, Laptop, Smartphone);</invoke>
<invoke>Breaker / ((Lights + Dryer + Dishwasher + Laptop + Smartphone) / 230)</invoke>
<results>
<result name="Load" />
</results>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment