Class TrafficLightGetPrograms
java.lang.Object
org.eclipse.mosaic.fed.sumo.bridge.libsumo.TrafficLightGetPrograms
- All Implemented Interfaces:
TrafficLightGetPrograms
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method executes the command with the given arguments in order to get the complete definitions of all traffic light programs.
-
Constructor Details
-
TrafficLightGetPrograms
public TrafficLightGetPrograms()
-
-
Method Details
-
execute
public List<SumoTrafficLightLogic> execute(Bridge bridge, String tlId) throws CommandException, InternalFederateException Description copied from interface:TrafficLightGetPrograms
This method executes the command with the given arguments in order to get the complete definitions of all traffic light programs.- Specified by:
execute
in interfaceTrafficLightGetPrograms
- Parameters:
bridge
- Connection to SUMO.tlId
- Id of the traffic light.- Returns:
- The traffic light programs.
- 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.
-