Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
324e5329
Commit
324e5329
authored
Jun 01, 2021
by
Stefan Schuhbaeck
Browse files
Merge branch 'remove_package_size' into 'master'
remove package size parameters See merge request
!155
parents
6a45464b
f3962333
Pipeline
#510919
passed with stages
in 127 minutes and 46 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
VadereManager/src/org/vadere/manager/traci/commandHandler/SimulationCommandHandler.java
View file @
324e5329
...
...
@@ -211,10 +211,9 @@ public class SimulationCommandHandler extends CommandHandler<SimulationVar> {
try
{
CompoundObject
cfg
=
(
CompoundObject
)
cmd
.
getVariableValue
();
//remoteManager.setSimCfg(cfg);
packet_size
=
(
int
)
cfg
.
getData
(
0
,
TraCIDataType
.
INTEGER
);
specify_id
=
Integer
.
parseInt
((
String
)
cfg
.
getData
(
1
,
TraCIDataType
.
STRING
));
model_name
=
(
String
)
cfg
.
getData
(
2
,
TraCIDataType
.
STRING
);
msg_content
=
(
String
)
cfg
.
getData
(
3
,
TraCIDataType
.
STRING
);
specify_id
=
Integer
.
parseInt
((
String
)
cfg
.
getData
(
0
,
TraCIDataType
.
STRING
));
model_name
=
(
String
)
cfg
.
getData
(
1
,
TraCIDataType
.
STRING
);
msg_content
=
(
String
)
cfg
.
getData
(
2
,
TraCIDataType
.
STRING
);
if
(!
iControlModelHashMap
.
containsKey
(
model_name
))
{
logger
.
infof
(
"Model"
+
model_name
+
" not found. Try to initialize from model name."
);
...
...
VadereManager/tests/org/vadere/manager/traci/commandHandler/SimulationCommandHandlerTest.java
View file @
324e5329
...
...
@@ -123,11 +123,10 @@ public class SimulationCommandHandlerTest extends CommandHandlerTest {
// set up control command
CompoundObject
data
=
CompoundObjectBuilder
.
builder
()
.
add
(
TraCIDataType
.
INTEGER
)
// packet size
.
add
(
TraCIDataType
.
STRING
)
// sending node
.
add
(
TraCIDataType
.
STRING
)
// model name
.
add
(
TraCIDataType
.
STRING
)
// command
.
build
(
-
1
,
"10"
,
"RouteChoice"
,
"{'time': 8.0}"
);
.
build
(
"10"
,
"RouteChoice"
,
"{'time': 8.0}"
);
TraCISetCommand
cmd
=
(
TraCISetCommand
)
getFirstCommand
(
TraCISetCommand
.
build
(
TraCICmd
.
SET_SIMULATION_STATE
,
elementID
,
varID
,
varType
,
data
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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