return (List<TrafficLightPhase>) reader.getValue();
}
public int getExternalID(TrafficLightModel trafficLight) throws IOException, TraciException {
ScenarioCommandCodec commandGenerator = ScenarioCommandCodec.buildReadCommandCodec(
ScenarioCommandCodec.DOMAIN_TRAFFIC_LIGHT,
-1,
ScenarioCommandCodec.VARIABLE_EXTERNAL_ID,
TraciConstants.DATATYPE_STRING,
trafficLight.getInternalID().getBytes());
ScenarioCommandCodec reader = createReader(commandGenerator);
return ((Integer) reader.getValue()).intValue();
}