VR-Link JAVA API Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes
com.mak.vrlj.interaction.DataInteraction Class Reference

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< FixedDatagetFixedData ()
GlobalObjectDesignator getReceiverId ()
long getRequestId ()
GlobalObjectDesignator getSenderId ()
List< VariableDatagetVariableData ()
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 ()

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

Detailed Description

A Data interaction simply sends FixedData and VariableData between simulations.

Member Function Documentation

static InteractionListener<DataInteraction> com.mak.vrlj.interaction.DataInteraction.addListener ( ExerciseConnection  exConn,
InteractionListener< DataInteraction listener 
)
inlinestatic

Subscribe for callbacks when new interactions are received over the specified ExerciseConnection.

Parameters
exConnExerciseConnection to listen to.
listenercallback receiver.
Returns
the listener argument, for call chaining.

References com.mak.vrlj.vl.ExerciseConnection.addInteractionListener(), and com.mak.vrlj.interaction.DataInteraction.NAME.

boolean com.mak.vrlj.interaction.DataInteraction.equals ( Object  obj)
inline
List<FixedData> com.mak.vrlj.interaction.DataInteraction.getFixedData ( )
inline
Returns
the FixedData in this interaction.
String com.mak.vrlj.interaction.DataInteraction.getInteractionName ( )
inlinevirtual
GlobalObjectDesignator com.mak.vrlj.interaction.DataInteraction.getReceiverId ( )
inline
long com.mak.vrlj.interaction.DataInteraction.getRequestId ( )
inline
Returns
ID of the data request.

References com.mak.vrlj.interaction.DataInteraction.myRequestId.

GlobalObjectDesignator com.mak.vrlj.interaction.DataInteraction.getSenderId ( )
inline
List<VariableData> com.mak.vrlj.interaction.DataInteraction.getVariableData ( )
inline
Returns
the VariableData in this interaction.
int com.mak.vrlj.interaction.DataInteraction.hashCode ( )
inline
static void com.mak.vrlj.interaction.DataInteraction.removeListener ( ExerciseConnection  exConn,
InteractionListener< DataInteraction listener 
)
inlinestatic

Remove a subscription for interactions callbacks on an ExerciseConnection.

Parameters
exConnExerciseConnection listened to.
listenerthe callback to remove.

References com.mak.vrlj.interaction.DataInteraction.NAME, and com.mak.vrlj.vl.ExerciseConnection.removeInteractionListener().

void com.mak.vrlj.interaction.DataInteraction.setFixedData ( List< FixedData fixedData)
inline
Parameters
fixedDatathe list of FixedData to send.
void com.mak.vrlj.interaction.DataInteraction.setReceiverId ( GlobalObjectDesignator  receiverId)
inline
Parameters
ReceiverIdGlobalObjectDesignator of the Receivered entity.

References com.mak.vrlj.interaction.DataInteraction.myReceiverId.

void com.mak.vrlj.interaction.DataInteraction.setRequestId ( long  requestId)
inline
Parameters
requestIdid of the data request.

References com.mak.vrlj.interaction.DataInteraction.myRequestId.

void com.mak.vrlj.interaction.DataInteraction.setSenderId ( GlobalObjectDesignator  senderId)
inline
Parameters
SenderIdGlobalObjectDesignator of the Sender entity.

References com.mak.vrlj.interaction.DataInteraction.mySenderId.

void com.mak.vrlj.interaction.DataInteraction.setVariableData ( List< VariableData variableData)
inline
Parameters
variableDatathe list of VariableData to send.
String com.mak.vrlj.interaction.DataInteraction.toString ( )
inline

Member Data Documentation

GlobalObjectDesignator com.mak.vrlj.interaction.DataInteraction.myReceiverId = new GlobalObjectDesignator("")
private
long com.mak.vrlj.interaction.DataInteraction.myRequestId
private
GlobalObjectDesignator com.mak.vrlj.interaction.DataInteraction.mySenderId = new GlobalObjectDesignator("")
private
final String com.mak.vrlj.interaction.DataInteraction.NAME = ":Data"
static

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)