Class TrafficLightGetPrograms
- java.lang.Object
-
- org.eclipse.mosaic.fed.sumo.bridge.libsumo.TrafficLightGetPrograms
-
- All Implemented Interfaces:
TrafficLightGetPrograms
public class TrafficLightGetPrograms extends Object implements TrafficLightGetPrograms
-
-
Constructor Summary
Constructors Constructor Description TrafficLightGetPrograms()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SumoTrafficLightLogic>
execute(Bridge bridge, String tlId)
This method executes the command with the given arguments in order to get the complete definitions of all traffic light programs.
-
-
-
Method Detail
-
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.
-
-