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
669227fa
Commit
669227fa
authored
Jul 30, 2018
by
Jose Ignacio Monreal Bailey
Browse files
Setting structure for vehicles per second and vehicles moving on each lane.
I need to agregate lanes with same phase.
parent
016fedf3
Changes
3
Show whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/traci/TraciSimulationController.java
View file @
669227fa
...
...
@@ -394,6 +394,20 @@ public class TraciSimulationController implements VehicleController, SimulationS
}
@Override
public
List
<
String
>
getNextTLS
(
String
vehicleId
)
{
SumoCommand
nextTLSCommand
=
Vehicle
.
getNextTLS
(
vehicleId
);
Object
nextTLSObject
=
requestObject
(
nextTLSCommand
);
SumoNextTLS
sumoNextTLS
=
(
SumoNextTLS
)
nextTLSObject
;
List
<
String
>
nextTLSList
=
new
LinkedList
<>();
for
(
SumoNextTLS
.
NextTLS
nextTLS
:
sumoNextTLS
.
ll
)
{
nextTLSList
.
add
(
nextTLS
.
tlsID
);
}
return
nextTLSList
;
}
/*
@Override
public long getWaitingTime(String vehicleID) {
...
...
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/xml/XMLSimulationController.java
View file @
669227fa
...
...
@@ -321,6 +321,11 @@ public class XMLSimulationController implements VehicleController, SimulationSet
return
null
;
}
@Override
public
List
<
String
>
getNextTLS
(
String
vehicleId
)
{
return
null
;
}
/*
@Override
public long getWaitingTime(String vehicleID) {
...
...
src/de/tud/kom/p2psim/impl/vehicular/DefaultVehicleInformationComponent.java
View file @
669227fa
...
...
@@ -150,6 +150,11 @@ public class DefaultVehicleInformationComponent implements VehicleInformationCom
controller
.
setVehicleMaxSpeed
(
vehicleID
,
vehicleSpeed
);
}
@Override
public
List
<
String
>
getNextTLS
(
String
vehicleId
)
{
return
controller
.
getNextTLS
(
vehicleId
);
}
/*
@Override
public long getWaitingTime() {
...
...
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