public class LaneGTUTransceiver 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 |
| laneNumber | int | identification of the lane number within the Link. |
| centerLine.numberOfPoints | int | number of points for the center line of the Lane. The number of doubles that follow is 3 times this number |
| centerLine.x1 | double | x-coordinate of the first point of the center line |
| centerLine.y1 | double | y-coordinate of the first point of the center line |
| centerLine.z1 | double | z-coordinate of the first point of the center line |
| ... | ||
| centerLine.xn | double | x-coordinate of the last point of the center line |
| centerLine.yn | double | y-coordinate of the last point of the center line |
| centerLine.zn | double | z-coordinate of the last point of the center line |
| 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 |
| isVehicleAdded | boolean | true if vehicle added, false if vehicle removed |
| gtuId | String | id of the gtu that was added or removed from the Lane |
| countAfterEvent | int | the number of vehicles on the Lane after the event |
| 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 |
| laneId | String | id of the Lane that is removed from the Network |
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.
listenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
LaneGTUTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new LaneGTUTransceiver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
notify(EventInterface event) |
Object[] |
transformChange(EventInterface event)
Transform the GTU added or removed event content to a corresponding IMB message.
|
Object[] |
transformDelete(EventInterface event)
Transform the removal of a Lane from the network to a corresponding IMB message.
|
Object[] |
transformNew(EventInterface event)
Transform the addition of a Lane to the network to a corresponding IMB message.
|
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, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, addListener, addListener, addListener, removeListenerpublic LaneGTUTransceiver(Connector connector, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.network.OTSNetwork network) throws 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 registeredIMBException - when the registration of one of the channels failsNullPointerException - in case one of the arguments is null.public void notify(EventInterface event) throws RemoteException
notify in interface EventListenerInterfacenotify in class AbstractTransceiverRemoteExceptionpublic Object[] transformNew(EventInterface event)
event - the event to transform to a NEW message.public Object[] transformChange(EventInterface event)
event - the event to transform to a CHANGE message.public Object[] transformDelete(EventInterface event)
event - the event to transform to a DELETE message.Copyright © 2014–2016 Delft University of Technology. All rights reserved.