Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
f9dbe74e
Commit
f9dbe74e
authored
Sep 05, 2018
by
Jose Ignacio Monreal Bailey
Browse files
Adding summary
parent
6b5da450
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/traci/TraciSimulationController.java
View file @
f9dbe74e
...
@@ -117,7 +117,10 @@ public class TraciSimulationController implements VehicleController, SimulationS
...
@@ -117,7 +117,10 @@ public class TraciSimulationController implements VehicleController, SimulationS
_connection
.
addOption
(
"time-to-teleport"
,
Integer
.
toString
(-
1
));
_connection
.
addOption
(
"time-to-teleport"
,
Integer
.
toString
(-
1
));
_connection
.
addOption
(
"tripinfo-output.write-unfinished"
,
"t"
);
_connection
.
addOption
(
"tripinfo-output.write-unfinished"
,
"t"
);
String
outputTripFileName
=
getTripOutputFilename
(
_tripOutputFile
);
String
outputTripFileName
=
getTripOutputFilename
(
_tripOutputFile
);
String
summaryFile
=
getSummaryFilename
(
_tripOutputFile
);
_connection
.
addOption
(
"tripinfo-output"
,
outputTripFileName
);
_connection
.
addOption
(
"tripinfo-output"
,
outputTripFileName
);
_connection
.
addOption
(
"duration-log.statistics"
,
"t"
);
_connection
.
addOption
(
"summary"
,
summaryFile
);
_connection
.
printSumoError
(
true
);
_connection
.
printSumoError
(
true
);
try
{
try
{
...
@@ -134,6 +137,11 @@ public class TraciSimulationController implements VehicleController, SimulationS
...
@@ -134,6 +137,11 @@ public class TraciSimulationController implements VehicleController, SimulationS
}
}
}
}
private
String
getSummaryFilename
(
String
tripOutputFile
)
{
Path
path
=
Paths
.
get
(
_configFile
);
return
path
.
getParent
().
toString
()
+
"/summary/"
+
tripOutputFile
;
}
private
String
getTripOutputFilename
(
String
filename
)
{
private
String
getTripOutputFilename
(
String
filename
)
{
Path
path
=
Paths
.
get
(
_configFile
);
Path
path
=
Paths
.
get
(
_configFile
);
return
path
.
getParent
().
toString
()
+
"/results/"
+
filename
;
return
path
.
getParent
().
toString
()
+
"/results/"
+
filename
;
...
...
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