public class SensorGTUTransceiver extends AbstractTransceiver
| Variable | Type | Comments |
|---|---|---|
| timestamp | double | time of the event, in simulation time seconds |
| networkId | String | Id of the Network where the Link resides |
| linkId | String | id of the Link; unique within the Network |
| laneId | String | id of the Lane, unique within the Link |
| sensorId | String | id of the Sensor, unique within the Lane |
| longitudinalPosition | double | position on the center line of the lane, in meters |
| length | double | length of the sensor, in meters |
| sensorPosition.x | double | x-coordinate of the sensor position in (gis) coordinates |
| sensorPosition.y | double | y-coordinate of the sensor position in (gis) coordinates |
| sensorPosition.z | double | z-coordinate of the sensor position in (gis) coordinates |
| triggerPosition | String | Relative position of the vehicle that triggers this sensor. One of {FRONT, REAR, REFERENCE, CONTOUR, CENTER, DRIVER} |
| Variable | Type | Comments |
|---|---|---|
| timestamp | double | time of the event, in simulation time seconds |
| networkId | String | Id of the Network where the Lane resides |
| linkId | String | id of the Link to which the lane belongs |
| laneId | String | id of the Lane, unique within the Link |
| sensorId | String | id of the Sensor, unique within the Lane |
| gtuId | String | id of the vehicle that triggers the sensor |
| speed | double | speed of the vehicle that triggers the sensor, in m/s |
| triggerPosition | String | Relative position of the vehicle that triggers this sensor. One of {FRONT, REAR, REFERENCE, CONTOUR, CENTER, DRIVER} |
| Variable | Type | Comments |
|---|---|---|
| timestamp | double | time of the event, in simulation time seconds |
| networkId | String | Id of the Network where the Link resides |
| linkId | String | id of the Link in the Network |
| laneId | String | id of the Lane in the Link |
| sensorId | String | id of the Sensor that is removed from the Lane |
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.
| Constructor and Description |
|---|
SensorGTUTransceiver(org.opentrafficsim.imb.connector.Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new SensorGTUTransceiver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
notify(nl.tudelft.simulation.event.EventInterface event) |
addIMBtoOTSChannel, addIMBtoOTSChannel, addOTSToIMBChannel, getConnector, getId, getSimulator, handleMessageFromIMB, removeOTSToIMBChannel, toStringaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerpublic SensorGTUTransceiver(org.opentrafficsim.imb.connector.Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
throws org.opentrafficsim.imb.IMBException
connector - Connector; the IMB connector through which this transceiver communicatessimulator - OTSDEVSSimulatorInterface; the simulator to schedule the incoming notifications onnetwork - OTSNetwork; the OTS network on which Links for Lanes are registeredorg.opentrafficsim.imb.IMBException - when the registration of one of the channels failsNullPointerException - in case one of the arguments is null.public void notify(nl.tudelft.simulation.event.EventInterface event)
throws RemoteException
notify in interface nl.tudelft.simulation.event.EventListenerInterfacenotify in class AbstractTransceiverRemoteExceptionCopyright © 2014–2016 Delft University of Technology. All rights reserved.