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
API
Commits
da70214a
Commit
da70214a
authored
Mar 14, 2019
by
Jose Ignacio Monreal Bailey
Browse files
Extending traffic lights with collaboration
parent
7d99f8b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/api/TrafficLightController.java
View file @
da70214a
...
...
@@ -34,6 +34,7 @@ public interface TrafficLightController extends SUMOController {
void
setPhase
(
String
trafficLightId
,
int
phase
);
long
getRemainingPhaseTime
(
String
trafficLightId
);
void
setPhaseDuration
(
String
trafficLightId
,
int
extraTime
);
void
setPhaseDuration
(
String
trafficLightId
,
double
extraTime
);
double
getPhaseDuration
(
String
trafficLightId
);
int
getProgramId
(
String
trafficLightId
);
String
getDefinition
(
String
trafficLightId
);
...
...
@@ -53,5 +54,7 @@ public interface TrafficLightController extends SUMOController {
boolean
isValidTrafficLightId
(
String
nextTL
);
double
getRoadLength
(
String
trafficLightId
,
String
roadId
);
double
getVehicleAcceleration
(
String
vehicleId
);
}
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/roadnetwork/trafficlights/TrafficLightInformationComponent.java
View file @
da70214a
...
...
@@ -41,6 +41,7 @@ public interface TrafficLightInformationComponent extends HostComponent {
List
<
String
>
getLastStepVehicleIDs
(
String
laneId
);
double
getVehicleSpeed
(
String
vehicleId
);
Location
getVehiclePosition
(
String
vehicleId
);
double
getVehicleMaxSpeed
(
String
vehicleId
);
int
getMinExpectedNumber
();
...
...
@@ -52,4 +53,8 @@ public interface TrafficLightInformationComponent extends HostComponent {
boolean
isValidTrafficLightId
(
String
nextTL
);
double
getRoadLength
(
String
roadId
);
void
setPhaseDuration
(
double
timeExtension
);
double
getVehicleAcceleration
(
String
vehicleId
);
}
\ No newline at end of file
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