class SensorTag extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2016-11-22 12:01:12 +0100 (Tue, 22 Nov 2016) $, @version $Revision: 2788 $, by $Author: gtamminga $,
initial version Jul 23, 2015
| Modifier and Type | Field and Description |
|---|---|
(package private) Boolean |
activeOnThisLink
is the sensor really located on this link?
|
(package private) String |
className
Class name of the Sensor.
|
(package private) String |
laneName
laneLocation.
|
(package private) String |
length
length.
|
(package private) String |
linkName
linkLocation.
|
(package private) String |
name
Name.
|
(package private) String |
no
No.
|
(package private) String |
portNo
PortNo.
|
(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) String |
sc
sc.
|
(package private) org.opentrafficsim.core.gtu.RelativePosition.TYPE |
triggerPosition
Trigger position of the GTU (FRONT, REAR, etc.).
|
(package private) String |
type
type.
|
| Constructor and Description |
|---|
SensorTag() |
SensorTag(SensorTag sensorTag) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
parseSensor(NodeList nodeList,
VissimNetworkLaneParser parser)
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 length
String laneName
String linkName
String no
String portNo
String sc
String type
String positionStr
String className
org.opentrafficsim.core.gtu.RelativePosition.TYPE triggerPosition
Boolean activeOnThisLink
public SensorTag(SensorTag sensorTag)
sensorTag - public SensorTag()
static void parseSensor(NodeList nodeList, VissimNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException
nodeList - the SENSOR node to parseparser - the parser with the lists of informationSAXException - 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.