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.
Constructor and Description |
---|
LaneGTUTransceiver(org.opentrafficsim.imb.connector.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(nl.tudelft.simulation.event.EventInterface event) |
Object[] |
transformChange(nl.tudelft.simulation.event.EventInterface event)
Transform the GTU added or removed event content to a corresponding IMB message.
|
Object[] |
transformDelete(nl.tudelft.simulation.event.EventInterface event)
Transform the removal of a Lane from the network to a corresponding IMB message.
|
Object[] |
transformNew(nl.tudelft.simulation.event.EventInterface event)
Transform the addition of a Lane to the network to a corresponding IMB message.
|
addIMBtoOTSChannel, addIMBtoOTSChannel, addOTSToIMBChannel, getConnector, getId, getSimulator, handleMessageFromIMB, removeOTSToIMBChannel, toString
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
public LaneGTUTransceiver(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.EventListenerInterface
notify
in class AbstractTransceiver
RemoteException
public Object[] transformNew(nl.tudelft.simulation.event.EventInterface event)
event
- the event to transform to a NEW message.public Object[] transformChange(nl.tudelft.simulation.event.EventInterface event)
event
- the event to transform to a CHANGE message.public Object[] transformDelete(nl.tudelft.simulation.event.EventInterface event)
event
- the event to transform to a DELETE message.Copyright © 2014–2016 Delft University of Technology. All rights reserved.