Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NUI
TULIP-Scenario
Commits
b28a4aa0
Commit
b28a4aa0
authored
Sep 01, 2016
by
Pony
Browse files
Scenario now need the properties file as argument to start
parent
c46dbb08
Changes
6
Show whitespace changes
Inline
Side-by-side
Scenarios/circuit_properties.properties
0 → 100644
View file @
b28a4aa0
# Properties for the Logger
logger.event.output.location
=
log.txt
logger.event.output.enabled
=
false
logger.level
=
ALL
logger.event.configuration
=
logger.xml
# Widget IDs to be mapped
# Properties for calibrating the interface
frameTitle
=
NUI Application
windowWidth
=
1920
windowHeight
=
1080
fullScreen
=
false
font
=
Arial
fontSize
=
13
colour
=
BLACK
centred
=
false
# Properties for the calibration of the object manager
#The value below is best left at or above 1024
cursor.id.remapping.constant
=
1024
# The low-level computer vision (or similar) adapter to load.
# Syntax is : adapter.class = packageName.ClassName
adapter.class
=
lu.list.itis.dkd.tui.adapter.TuioAdapter
# The location and name of the root bootstrapping file.
bootstrapping.root
=
circuit_scenario.xml
# Properties for the equation system
scriptEngine.executable
=
C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir
=
model
equation.system
=
circuit_scenario.xml
scenario.description
=
circuit_scenario.xml
\ No newline at end of file
Scenarios/gear_uni_properties.properties
0 → 100644
View file @
b28a4aa0
# Properties for the Logger
logger.event.output.location
=
log.txt
logger.event.output.enabled
=
false
logger.level
=
ALL
logger.event.configuration
=
logger.xml
# Widget IDs to be mapped
# Properties for calibrating the interface
frameTitle
=
NUI Application
windowWidth
=
1920
windowHeight
=
1080
fullScreen
=
false
font
=
Arial
fontSize
=
13
colour
=
BLACK
centred
=
false
# Properties for the calibration of the object manager
#The value below is best left at or above 1024
cursor.id.remapping.constant
=
1024
# The low-level computer vision (or similar) adapter to load.
# Syntax is : adapter.class = packageName.ClassName
adapter.class
=
lu.list.itis.dkd.tui.adapter.TuioAdapter
# The location and name of the root bootstrapping file.
bootstrapping.root
=
gear_scenario_uni.xml
# Properties for the equation system
scriptEngine.executable
=
C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir
=
model
equation.system
=
gear_scenario_uni.xml
scenario.description
=
gear_scenario_uni.xml
\ No newline at end of file
Scenarios/power_properties.properties
0 → 100644
View file @
b28a4aa0
# Properties for the Logger
logger.event.output.location
=
log.txt
logger.event.output.enabled
=
false
logger.level
=
ALL
logger.event.configuration
=
logger.xml
# Widget IDs to be mapped
# Properties for calibrating the interface
frameTitle
=
NUI Application
windowWidth
=
1920
windowHeight
=
1080
fullScreen
=
false
font
=
Arial
fontSize
=
13
colour
=
BLACK
centred
=
false
# Properties for the calibration of the object manager
#The value below is best left at or above 1024
cursor.id.remapping.constant
=
1024
# The low-level computer vision (or similar) adapter to load.
# Syntax is : adapter.class = packageName.ClassName
adapter.class
=
lu.list.itis.dkd.tui.adapter.TuioAdapter
# The location and name of the root bootstrapping file.
bootstrapping.root
=
power_scenario.xml
# Properties for the equation system
scriptEngine.executable
=
C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir
=
model
equation.system
=
power_scenario.xml
scenario.description
=
power_scenario.xml
\ No newline at end of file
Scenarios/power_scenario.xml
View file @
b28a4aa0
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
<unit>
Wind Park
</unit>
<unit>
Wind Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
<unit>
Wind Park
</unit>
<unit>
Wind Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
<unit>
Wind Park
</unit>
<unit>
Wind Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -304,7 +304,7 @@
...
@@ -304,7 +304,7 @@
<unit>
Wind Park
</unit>
<unit>
Wind Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -359,7 +359,7 @@
...
@@ -359,7 +359,7 @@
<unit>
Wind Park
</unit>
<unit>
Wind Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
...
@@ -417,7 +417,7 @@
...
@@ -417,7 +417,7 @@
<unit>
Solar Park
</unit>
<unit>
Solar Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -472,7 +472,7 @@
...
@@ -472,7 +472,7 @@
<unit>
Solar Park
</unit>
<unit>
Solar Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -527,7 +527,7 @@
...
@@ -527,7 +527,7 @@
<unit>
Solar Park
</unit>
<unit>
Solar Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -582,7 +582,7 @@
...
@@ -582,7 +582,7 @@
<unit>
Solar Park
</unit>
<unit>
Solar Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
<type>
ValueWidget
</type>
<type>
ValueWidget
</type>
...
@@ -637,7 +637,7 @@
...
@@ -637,7 +637,7 @@
<unit>
Solar Park
</unit>
<unit>
Solar Park
</unit>
<value>
1
</value>
<value>
1
</value>
</variable>
</variable>
<modifyValueOnRotation>
Tru
e
</modifyValueOnRotation>
<modifyValueOnRotation>
fals
e
</modifyValueOnRotation>
</object>
</object>
<object>
<object>
...
...
Scenarios/properties.properties
View file @
b28a4aa0
...
@@ -27,10 +27,10 @@ cursor.id.remapping.constant = 1024
...
@@ -27,10 +27,10 @@ cursor.id.remapping.constant = 1024
adapter.class
=
lu.list.itis.dkd.tui.adapter.TuioAdapter
adapter.class
=
lu.list.itis.dkd.tui.adapter.TuioAdapter
# The location and name of the root bootstrapping file.
# The location and name of the root bootstrapping file.
bootstrapping.root
=
testtest
.xml
bootstrapping.root
=
power_scenario
.xml
# Properties for the equation system
# Properties for the equation system
scriptEngine.executable
=
C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.executable
=
C:/Octave/Octave-3.8.2/bin/octave.exe
scriptEngine.workingDir
=
model
scriptEngine.workingDir
=
model
equation.system
=
testtest.xml
equation.system
=
power_scenario.xml
scenario.description
=
testtest.xml
scenario.description
=
power_scenario.xml
\ No newline at end of file
\ No newline at end of file
Scenarios/src/lu/list/itis/dkd/tui/scenario/Scenario.java
View file @
b28a4aa0
...
@@ -69,10 +69,10 @@ public class Scenario {
...
@@ -69,10 +69,10 @@ public class Scenario {
* thrown when the provided URI could not be interpreted and, hence, the scenario
* thrown when the provided URI could not be interpreted and, hence, the scenario
* description document loaded.
* description document loaded.
*/
*/
public
Scenario
()
throws
BuildException
{
public
Scenario
(
String
file
)
throws
BuildException
{
try
{
try
{
equationSystemBuilder
=
new
EquationSystemBuilder
();
equationSystemBuilder
=
new
EquationSystemBuilder
();
equationSystemBuilder
.
parseEquationFile
(
new
File
(
PropertiesFetcher
.
fetchProperties
().
getProperty
(
"equation.system"
)));
//$NON-NLS-1$
equationSystemBuilder
.
parseEquationFile
(
new
File
(
PropertiesFetcher
.
fetchProperties
(
file
).
getProperty
(
"equation.system"
)));
//$NON-NLS-1$
}
catch
(
final
EquationSystemException
exception
)
{
}
catch
(
final
EquationSystemException
exception
)
{
throw
new
BuildException
(
"The equation system for this scenario could not be built!"
,
exception
);
//$NON-NLS-1$
throw
new
BuildException
(
"The equation system for this scenario could not be built!"
,
exception
);
//$NON-NLS-1$
}
}
...
@@ -80,7 +80,7 @@ public class Scenario {
...
@@ -80,7 +80,7 @@ public class Scenario {
inputs
=
equationSystemBuilder
.
getInputVariables
();
inputs
=
equationSystemBuilder
.
getInputVariables
();
outputs
=
equationSystemBuilder
.
getOutputVariables
();
outputs
=
equationSystemBuilder
.
getOutputVariables
();
tangibleApplication
=
new
TangibleApplicationBootstrapper
(
null
);
tangibleApplication
=
new
TangibleApplicationBootstrapper
(
file
);
populateVariables
();
populateVariables
();
...
@@ -131,9 +131,8 @@ public class Scenario {
...
@@ -131,9 +131,8 @@ public class Scenario {
* @throws BuildException
* @throws BuildException
*/
*/
public
static
void
main
(
String
[]
args
)
throws
BuildException
{
public
static
void
main
(
String
[]
args
)
throws
BuildException
{
Preconditions
.
checkArgument
(
args
.
length
==
0
,
"No parameters are accepted!"
);
//$NON-NLS-1$
Preconditions
.
checkArgument
(
args
.
length
==
1
,
"1 parameter needed"
);
//$NON-NLS-1$
@SuppressWarnings
(
"unused"
)
@SuppressWarnings
(
"unused"
)
final
Scenario
scenario
=
new
Scenario
();
final
Scenario
scenario
=
new
Scenario
(
args
[
0
]
);
}
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment