public class LinkGTUTransceiver 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 |
startNodeId | String | id of the start node, provided in a Node NEW message |
endNodeId | String | id of the end node, provided in a Node NEW message |
designLine.numberOfPoints | int | number of points for the design line of the Link. The number of doubles that follow is 3 times this number |
designLine.x1 | double | x-coordinate of the first point of the design line |
designLine.y1 | double | y-coordinate of the first point of the design line |
designLine.z1 | double | z-coordinate of the first point of the design line |
... | ||
designLine.xn | double | x-coordinate of the last point of the design line |
designLine.yn | double | y-coordinate of the last point of the design line |
designLine.zn | double | z-coordinate of the last point of the design line |
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 |
isVehicleAdded | boolean | true if vehicle added, false if vehicle removed |
gtuId | String | id of the gtu that was added or removed from the Link |
countAfterEvent | int | the number of vehicles on the link 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 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 |
---|
LinkGTUTransceiver(org.opentrafficsim.imb.connector.Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new LinkGTUTransceiver.
|
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 link to the network to a corresponding IMB message.
|
Object[] |
transformNew(nl.tudelft.simulation.event.EventInterface event)
Transform the addition of a link 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 LinkGTUTransceiver(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 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.