A Data interaction simply sends FixedData and VariableData between simulations. More...
Inheritance diagram for com.mak.vrlj.interaction.DataInteraction:
Collaboration diagram for com.mak.vrlj.interaction.DataInteraction:Public Member Functions | |
| boolean | equals (Object obj) |
| List< FixedData > | getFixedData () |
| GlobalObjectDesignator | getReceiverId () |
| long | getRequestId () |
| GlobalObjectDesignator | getSenderId () |
| List< VariableData > | getVariableData () |
| int | hashCode () |
| void | setFixedData (List< FixedData > fixedData) |
| void | setReceiverId (GlobalObjectDesignator receiverId) |
| void | setRequestId (long requestId) |
| void | setSenderId (GlobalObjectDesignator senderId) |
| void | setVariableData (List< VariableData > variableData) |
| String | toString () |
| String | getInteractionName () |
Public Member Functions inherited from com.mak.vrlj.interaction.BaseInteraction | |
| double | getTimeStamp () |
| void | setTimeStamp (double ts) |
Static Public Member Functions | |
| static InteractionListener < DataInteraction > | addListener (ExerciseConnection exConn, InteractionListener< DataInteraction > listener) |
| Subscribe for callbacks when new interactions are received over the specified ExerciseConnection. | |
| static void | removeListener (ExerciseConnection exConn, InteractionListener< DataInteraction > listener) |
| Remove a subscription for interactions callbacks on an ExerciseConnection. | |
Static Public Attributes | |
| static final String | NAME = ":Data" |
| Interaction class name. | |
Private Attributes | |
| GlobalObjectDesignator | mySenderId = new GlobalObjectDesignator("") |
| GlobalObjectDesignator | myReceiverId = new GlobalObjectDesignator("") |
| long | myRequestId |
A Data interaction simply sends FixedData and VariableData between simulations.
|
inlinestatic |
Subscribe for callbacks when new interactions are received over the specified ExerciseConnection.
| exConn | ExerciseConnection to listen to. |
| listener | callback receiver. |
References com.mak.vrlj.vl.ExerciseConnection.addInteractionListener(), and com.mak.vrlj.interaction.DataInteraction.NAME.
|
inline |
|
inline |
|
inlinevirtual |
Implements com.mak.vrlj.interaction.Interaction.
References com.mak.vrlj.interaction.DataInteraction.NAME.
|
inline |
References com.mak.vrlj.interaction.DataInteraction.myReceiverId.
|
inline |
References com.mak.vrlj.interaction.DataInteraction.myRequestId.
|
inline |
References com.mak.vrlj.interaction.DataInteraction.mySenderId.
|
inline |
|
inline |
|
inlinestatic |
Remove a subscription for interactions callbacks on an ExerciseConnection.
| exConn | ExerciseConnection listened to. |
| listener | the callback to remove. |
References com.mak.vrlj.interaction.DataInteraction.NAME, and com.mak.vrlj.vl.ExerciseConnection.removeInteractionListener().
|
inline |
| fixedData | the list of FixedData to send. |
|
inline |
| ReceiverId | GlobalObjectDesignator of the Receivered entity. |
References com.mak.vrlj.interaction.DataInteraction.myReceiverId.
|
inline |
| requestId | id of the data request. |
References com.mak.vrlj.interaction.DataInteraction.myRequestId.
|
inline |
| SenderId | GlobalObjectDesignator of the Sender entity. |
References com.mak.vrlj.interaction.DataInteraction.mySenderId.
|
inline |
| variableData | the list of VariableData to send. |
|
inline |
|
private |
|
private |
|
private |
|
static |