Package | Description |
---|---|
nl.tno.imb.mc |
Model control package.
|
org.opentrafficsim.imb |
Generic classes for the IMB message bus classes, linking to the nl.tno.imb classes.
|
org.opentrafficsim.imb.connector |
The connector classes to link OTS and IMB.
|
org.opentrafficsim.imb.transceiver |
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
Modifier and Type | Method and Description |
---|---|
void |
ModelStarter.doStartModel(ModelParameters parameters)
Start a model.
|
void |
ModelStarter.doStopModel()
Stop the model and go to idle state.
|
Parameter.ParameterType |
ModelParameters.getParameterType(String name)
Retrieve the type of a parameter.
|
Object |
ModelParameters.getParameterValue(String name)
Retrieve the value of a parameter.
|
(package private) void |
ModelStarter.handleControlEvents(TEventEntry event,
TByteBuffer payload)
Execute a control event.
|
void |
ModelStarter.signalModelProgress(int currentProgress)
Report a new progress value.
|
void |
ModelStarter.signalModelState(ModelState newState)
Inform our federation about a state change.
|
void |
ModelStarter.signalModelState(ModelState newState,
String federation)
Inform a federation about a state change.
|
Constructor and Description |
---|
ModelParameters(TByteBuffer payload)
Construct ModelParameters from a IMB ByteBuffer
|
ModelStarter(String[] args,
String providedModelName,
int providedModelId)
Create a new ModelStarter.
|
Parameter(TByteBuffer payload)
Construct a new Parameter from the next object in a TByteBuffer.
|
Modifier and Type | Method and Description |
---|---|
static TByteBuffer |
ObjectArrayToIMB.objectArrayToIMBPayload(Object[] data)
Convert an array of Object to an IMB payload.
|
Modifier and Type | Method and Description |
---|---|
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
|
IMBConnector(TConnection connection)
Construct an IMBConnector that re-uses an existing TConnection.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2014–2016 Delft University of Technology. All rights reserved.