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
d134fb97
Commit
d134fb97
authored
Jan 17, 2018
by
Tobias Meuser
Browse files
Updated xml simulation controller
parent
65606442
Changes
2
Show whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/csv/RoadSideUnitInformationHandler.java
View file @
d134fb97
...
@@ -56,7 +56,7 @@ public class RoadSideUnitInformationHandler {
...
@@ -56,7 +56,7 @@ public class RoadSideUnitInformationHandler {
}
}
scanner
.
close
();
scanner
.
close
();
}
catch
(
FileNotFoundException
e
)
{
}
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 @
d134fb97
...
@@ -28,7 +28,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
...
@@ -28,7 +28,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
private
List
<
String
>
_vehicles
;
private
List
<
String
>
_vehicles
;
private
Map
<
Double
,
Map
<
String
,
VehicleInformationContainer
>>
_positonsByTimestamp
=
new
HashMap
<>();
private
Map
<
Double
,
Map
<
String
,
VehicleInformationContainer
>>
_positonsByTimestamp
=
new
HashMap
<>();
private
int
_futureInformation
=
1
0
;
private
int
_futureInformation
=
0
;
private
boolean
_initalized
=
false
;
private
boolean
_initalized
=
false
;
...
@@ -178,7 +178,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
...
@@ -178,7 +178,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
@Override
@Override
public
RoadNetwork
getRoadNetwork
()
{
public
RoadNetwork
getRoadNetwork
()
{
throw
new
UnsupportedOperationException
(
"This method is not supported for "
+
getClass
().
getSimpleName
())
;
return
null
;
}
}
@Override
@Override
...
@@ -207,7 +207,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
...
@@ -207,7 +207,7 @@ public class XMLSimulationController implements VehicleController, SimulationSet
@Override
@Override
public
double
getVehicleSpeed
(
String
pVehicleID
)
{
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