Class ControlParser
- java.lang.Object
-
- org.opentrafficsim.road.network.factory.xml.parser.ControlParser
-
public final class ControlParser extends Object
NodeParser takes care of parsing the CONTROL tags for the Traffic Lights in the XML network.
Copyright (c) 2003-2018 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.- Author:
- Alexander Verbraeck
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidparseControl(OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator, List<CONTROL> controls)Creates control objects.
-
-
-
Method Detail
-
parseControl
public static void parseControl(OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator, List<CONTROL> controls) throws NetworkException, MalformedURLException, IOException, SimRuntimeException, TrafficControlException
Creates control objects.- Parameters:
otsNetwork- OTSRoadNetwork; networksimulator- OTSSimulatorInterface; simulatorcontrols- List<CONTROL>; control objects- Throws:
NetworkException- when sensors could not be added to the networkIOException- when a TrafCOD engine cannot be loadedMalformedURLException- when a TrafCOD engine cannot be loadedTrafficControlException- when a TrafCOD engine cannot be constructed for some other reasonSimRuntimeException- when a TrafCOD engine fails to initialize
-
-