class SensorTag extends Object implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
className
Class name of the Sensor.
|
(package private) String |
name
Name.
|
(package private) String |
positionStr
Position of the sink on the link, relative to the design line, stored as a string to parse when the length is known.
|
(package private) org.opentrafficsim.core.gtu.RelativePosition.TYPE |
triggerPosition
Trigger position of the GTU (FRONT, REAR, etc.).
|
| Constructor and Description |
|---|
SensorTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
parseSensor(Node node,
XmlNetworkLaneParser parser,
LinkTag linkTag)
Parse the SENSOR tag.
|
(package private) static org.opentrafficsim.core.gtu.RelativePosition.TYPE |
parseTriggerPosition(String trigger,
SensorTag sensorTag,
String laneName) |
String |
toString() |
String name
String positionStr
String className
org.opentrafficsim.core.gtu.RelativePosition.TYPE triggerPosition
static void parseSensor(Node node, XmlNetworkLaneParser parser, LinkTag linkTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the SENSOR node to parseparser - the parser with the lists of informationlinkTag - the parent LINK tagSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic org.opentrafficsim.core.gtu.RelativePosition.TYPE parseTriggerPosition(String trigger, SensorTag sensorTag, String laneName) throws SAXException
trigger - String of the trigger position such as FRONTsensorTag - the sensor tag for error messageslaneName - the lane name for error messagesSAXException - when the trigger position did not existCopyright © 2014–2017 Delft University of Technology. All rights reserved.