| Package | Description |
|---|---|
| org.opentrafficsim.imb.connector |
The connector classes to link OTS and IMB.
|
| org.opentrafficsim.imb.transceiver |
Interfaces and abstract classes for Transceivers and Transformers.
|
| org.opentrafficsim.imb.transceiver.urbanstrategy |
Implementation of the transceivers for OTS to TNO's Urban Strategy.
|
| Modifier and Type | Method and Description |
|---|---|
static OTSIMBConnector |
OTSIMBConnector.create(org.opentrafficsim.simulationengine.properties.CompoundProperty compoundProperty,
String modelName)
Construct a new OTSIMBConnector from a CompoundProperty (preferably constructed with the
standardIMBProperties method of this class.
|
static OTSIMBConnector |
OTSIMBConnector.create(String modelName)
Create a new OTSIMBConnector expecting the IMB hub on localhost port 4000.
|
boolean |
IMBConnector.postIMBMessage(String eventName,
Connector.IMBEventType imbEventType,
Object[] args)
Compose a message containing the specified objects and send it to recipients.
|
boolean |
Connector.postIMBMessage(String IMBEventName,
Connector.IMBEventType imbEventType,
Object[] args)
Compose a message containing the specified objects and send it to recipients.
|
void |
IMBConnector.register(String imbEventName,
Transceiver transceiver)
Register the transceiver as the interested party when an IMB message identified by the imbEventName is received.
|
void |
Connector.register(String fullIMBEventName,
Transceiver transceiver)
Register the transceiver as the interested party when an IMB message identified by the imbEventName is received.
|
| Constructor and Description |
|---|
IMBConnector(String host,
int port,
String modelName,
int modelId,
String federation)
Construct a new connection for sending events to IMB
|
OTSIMBConnector(String host,
int port,
String modelName,
int modelId,
String federation)
Create a new OTSIMBConnector by specifying all the details.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTransceiver.addIMBtoOTSChannel(String imbEventName,
EventType eventType,
IMBToOTSTransformer imbToOTSTransformer)
Register a new channel for sending an IMB message to an OTS EventListener.
|
void |
AbstractTransceiver.addIMBtoOTSChannel(String imbEventName,
IMBMessageHandler imbMessageHandler)
Register that we are interested in an IMB payload, but do not register a listener or transformer.
|
void |
AbstractTransceiver.addOTSToIMBChannel(EventProducerInterface producer,
EventType eventType,
String imbEventName,
Object[] imbNewPayload,
OTSToIMBTransformer transformer)
Make a connection from OTS to IMB, and and send a NEW message to IMB for the imbEventName with a corresponding payload.
|
void |
PubSubIMBMessageHandler.handle(TByteBuffer imbPayload)
Handle the event by notifying the EventListener that was identified by the imbPayload through the imbToOTSTransformer.
|
void |
IMBMessageHandler.handle(TByteBuffer imbPayload)
Handle an IMB payload for OTS.
|
void |
Transceiver.handleMessageFromIMB(String imbEventName,
TByteBuffer imbPayload)
Handle an IMB message sent to OTS.
|
void |
AbstractTransceiver.handleMessageFromIMB(String imbEventName,
TByteBuffer imbPayload)
Handle an IMB message sent to OTS.
|
void |
AbstractTransceiver.removeOTSToIMBChannel(EventProducerInterface producer,
EventType eventType,
Object[] imbDeletePayload)
Remove a connection from OTS to IMB, and and send a DELETE message to IMB for the imbEventName with a corresponding
payload.
|
| Constructor and Description |
|---|
PubSubIMBMessageHandler(String imbEventName,
EventType eventType,
IMBToOTSTransformer imbToOTSTransformer,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Construct a new PubSubIMBMessageHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GraphTransceiver.makePNG(org.opentrafficsim.graphs.AbstractOTSPlot plot) |
void |
StatisticsGTULaneTransceiver.sendStatisticsUpdate() |
| Constructor and Description |
|---|
GraphTransceiver(Connector connector,
org.opentrafficsim.simulationengine.SimpleSimulatorInterface simulator,
org.opentrafficsim.core.network.Network network,
int width,
int height,
org.opentrafficsim.graphs.AbstractOTSPlot plot,
org.djunits.value.vdouble.scalar.Duration transmissionInterval)
Construct a new GraphTransceiver.
|
GTUTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new GTUTransceiver.
|
LaneGTUTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new LaneGTUTransceiver.
|
LinkGTUTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new LinkGTUTransceiver.
|
NetworkTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new NetworkTransceiver.
|
NodeTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new NodeTransceiver.
|
SensorGTUTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new SensorGTUTransceiver.
|
SimulatorTransceiver(Connector connector,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Construct a new SimulatorTransceiver.
|
StatisticsGTULaneTransceiver(Connector connector,
org.opentrafficsim.simulationengine.SimpleSimulatorInterface simulator,
org.opentrafficsim.core.network.Network network,
org.opentrafficsim.road.network.sampling.Query query,
org.djunits.value.vdouble.scalar.Duration transmissionInterval)
Construct a new StatisticsGTULaneTransceiver.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.