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
85482a86
Commit
85482a86
authored
Jan 17, 2018
by
Tobias Meuser
Committed by
Jose Ignacio Monreal Bailey
Aug 20, 2019
Browse files
Updated xml simulation controller
parent
65da6cf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/csv/RoadSideUnitInformationHandler.java
View file @
85482a86
...
...
@@ -56,7 +56,7 @@ public class RoadSideUnitInformationHandler {
}
scanner
.
close
();
}
catch
(
FileNotFoundException
e
)
{
throw
new
UnsupportedOperationExceptio
n
(
"Unable to read file
"
,
e
);
System
.
err
.
printl
n
(
"Unable to read file
"
+
e
.
getMessage
()
);
}
}
...
...
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/xml/XMLSimulationController.java
View file @
85482a86
...
...
@@ -28,7 +28,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
private
List
<
String
>
_vehicles
;
private
Map
<
Double
,
Map
<
String
,
VehicleInformationContainer
>>
_positonsByTimestamp
=
new
HashMap
<>();
private
int
_futureInformation
=
1
0
;
private
int
_futureInformation
=
0
;
private
boolean
_initalized
=
false
;
...
...
@@ -178,7 +178,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
@Override
public
RoadNetwork
getRoadNetwork
()
{
throw
new
UnsupportedOperationException
(
"This method is not supported for "
+
getClass
().
getSimpleName
())
;
return
null
;
}
@Override
...
...
@@ -207,7 +207,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
@Override
public
double
getVehicleSpeed
(
String
pVehicleID
)
{
throw
new
UnsupportedOperationException
(
"This method is not supported for "
+
getClass
().
getSimpleName
()
);
return
_vehicleDataInformationHandler
.
getVehiclePositions
().
get
(
pVehicleID
).
getSpeed
(
);
}
}
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