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

 DataInteraction ()
 Creates an empty data interaction. More...
 
boolean equals (Object obj)
 
List< FixedData > getFixedData ()
 Gets the fixed data payload for this interaction. More...
 
GlobalObjectDesignator getReceiverId ()
 Gets the receiver object designator. More...
 
long getRequestId ()
 Gets the data request identifier. More...
 
GlobalObjectDesignator getSenderId ()
 Gets the sender object designator. More...
 
List< VariableData > getVariableData ()
 Gets the variable data payload for this interaction. More...
 
int hashCode ()
 
void setFixedData (List< FixedData > fixedData)
 Sets the fixed data payload for this interaction. More...
 
void setReceiverId (GlobalObjectDesignator receiverId)
 Sets the receiver object designator. More...
 
void setRequestId (long requestId)
 Sets the data request identifier. More...
 
void setSenderId (GlobalObjectDesignator senderId)
 Sets the sender object designator. More...
 
void setVariableData (List< VariableData > variableData)
 Sets the variable data payload for this interaction. More...
 
String toString ()
 
String getInteractionName ()
 Get the interaction class name. More...
 
- Public Member Functions inherited from com.mak.vrlj.interaction.BaseInteraction
double getTimeStamp ()
 Get the interaction timestamp. More...
 
void setTimeStamp (double ts)
 Set the interaction timestamp. More...
 

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. More...
 
static void removeListener (ExerciseConnection exConn, InteractionListener< DataInteraction > listener)
 Remove a subscription for interactions callbacks on an ExerciseConnection. More...
 

Static Public Attributes

static final String NAME = ":Data"
 Interaction class name. More...
 

Private Attributes

GlobalObjectDesignator mySenderId = new GlobalObjectDesignator("")
 
GlobalObjectDesignator myReceiverId = new GlobalObjectDesignator("")
 
long myRequestId
 

Additional Inherited Members

- Protected Member Functions inherited from com.mak.vrlj.interaction.BaseInteraction
 BaseInteraction ()
 Create a base interaction with an unset timestamp. More...
 

Detailed Description

A Data interaction simply sends FixedData and VariableData between simulations.

Constructor & Destructor Documentation

com.mak.vrlj.interaction.DataInteraction.DataInteraction ( )
inline

Creates an empty data interaction.

Referenced by com.mak.vrlj.interaction.DataInteraction.equals().

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.interaction.DataInteraction.NAME.

boolean com.mak.vrlj.interaction.DataInteraction.equals ( Object  obj)
inline
List<FixedData> com.mak.vrlj.interaction.DataInteraction.getFixedData ( )
inline

Gets the fixed data payload for this interaction.

Returns
the FixedData in this interaction.
String com.mak.vrlj.interaction.DataInteraction.getInteractionName ( )
inlinevirtual

Get the interaction class name.

Returns
interaction class name.

Implements com.mak.vrlj.interaction.Interaction.

References com.mak.vrlj.interaction.DataInteraction.NAME.

GlobalObjectDesignator com.mak.vrlj.interaction.DataInteraction.getReceiverId ( )
inline

Gets the receiver object designator.

Returns
GlobalObjectDesignator of the Receiver entity.

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

long com.mak.vrlj.interaction.DataInteraction.getRequestId ( )
inline

Gets the data request identifier.

Returns
ID of the data request.

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

GlobalObjectDesignator com.mak.vrlj.interaction.DataInteraction.getSenderId ( )
inline

Gets the sender object designator.

Returns
GlobalObjectDesignator of the Sending entity.

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

List<VariableData> com.mak.vrlj.interaction.DataInteraction.getVariableData ( )
inline

Gets the variable data payload for this interaction.

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.

void com.mak.vrlj.interaction.DataInteraction.setFixedData ( List< FixedData >  fixedData)
inline

Sets the fixed data payload for this interaction.

Parameters
fixedDatathe list of FixedData to send.
void com.mak.vrlj.interaction.DataInteraction.setReceiverId ( GlobalObjectDesignator  receiverId)
inline

Sets the receiver object designator.

Parameters
receiverIdGlobalObjectDesignator of the Receivered entity.

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

void com.mak.vrlj.interaction.DataInteraction.setRequestId ( long  requestId)
inline

Sets the data request identifier.

Parameters
requestIdid of the data request.

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

void com.mak.vrlj.interaction.DataInteraction.setSenderId ( GlobalObjectDesignator  senderId)
inline

Sets the sender object designator.

Parameters
senderIdGlobalObjectDesignator of the Sender entity.

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

void com.mak.vrlj.interaction.DataInteraction.setVariableData ( List< VariableData >  variableData)
inline

Sets the variable data payload for this interaction.

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 Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)