execute
void execute(Bridge bridge,
String trafficLightGroupId,
long startTime,
long endTime)
throws CommandException,
InternalFederateException
This method executes the command with the given arguments in order to subscribe the traffic light group to the application.
- Parameters:
bridge
- Connection to SUMO.
trafficLightGroupId
- The id of the traffic light group.
startTime
- The time to subscribe the traffic light group.
endTime
- The end time of the subscription of the traffic light group in the application.
- Throws:
CommandException
- if the status code of the response is ERROR. The connection to SUMO is still available.
InternalFederateException
- if some serious error occurs during writing or reading. The connection to SUMO is shut down.