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.
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
Modifier and Type Method Description static voidparseControl(OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator, List<CONTROL> controls)Creates control objects.
-
Method Details
-
parseControl
public static void parseControl(OTSRoadNetwork otsNetwork, OTSSimulatorInterface simulator, List<CONTROL> controls) throws NetworkExceptionCreates control objects.- Parameters:
otsNetwork- OTSRoadNetwork; networksimulator- OTSSimulatorInterface; simulatorcontrols- List<CONTROL>; control objects- Throws:
NetworkException- when sensors could not be added to the network
-