Class NodeTransceiver

All Implemented Interfaces:
Serializable, EventListener, EventListenerInterface, EventProducerInterface, Identifiable, org.opentrafficsim.imb.transceiver.EventTransceiver, org.opentrafficsim.imb.transceiver.Transceiver

public class NodeTransceiver
extends AbstractTransceiver
OTS publishes events about the Nodes to IMB to be able to identify the nodes in the network.
At the start of the OTS simulation, or when a Node is added later, a NEW message is sent to IMB for each node to identify the node id. No CHANGE messages are posted. When a Node is removed from the network, a DELETE event is posted. The Node NEW messages are posted after the Network NEW message is posted.

NEW

 
Variable Type Comments
timestamp double time of the event, in simulation time seconds
networkId String Id of the Network where the Node resides
nodeId String id of the Node; unique within the Network
coordinate.x double x-coordinate of the Node
coordinate.y double y-coordinate of the Node
coordinate.z double z-coordinate of the Node

CHANGE

Not sent

DELETE

 
Variable Type Comments
timestamp double time of the event, in simulation time seconds
networkId String Id of the Network where the Node resides
nodeId String id of the Node that is removed from the Network

Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version Sep 13, 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form