Commit da70214a authored by Jose Ignacio Monreal Bailey's avatar Jose Ignacio Monreal Bailey
Browse files

Extending traffic lights with collaboration

parent 7d99f8b8
......@@ -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);
}
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment