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.SignalInteraction Class Reference

Signal message between entities. More...

+ Inheritance diagram for com.mak.vrlj.interaction.SignalInteraction:
+ Collaboration diagram for com.mak.vrlj.interaction.SignalInteraction:

Public Member Functions

 SignalInteraction ()
 Create an empty signal interaction. More...
 
boolean equals (Object obj)
 
byte[] getData ()
 Get the raw signal payload bytes. More...
 
EncodingClass getEncodingClass ()
 Get the encoding class used for the signal payload. More...
 
EncodingType getEncodingType ()
 Get the encoding type used for the signal payload. More...
 
GlobalObjectDesignator getEntityId ()
 Get the sender entity identifier for this signal. More...
 
int getNumSamples ()
 Get the number of samples represented in the payload. More...
 
short getRadioId ()
 Get the radio identifier for the transmitting radio. More...
 
int getSampleRate ()
 Get the sample rate for the signal payload. More...
 
TDLType getTDLType ()
 Get the tactical data link type carried by this signal. More...
 
int hashCode ()
 
void setData (byte[] data)
 Set the raw signal payload bytes. More...
 
void setEncodingClass (EncodingClass ec)
 Set the encoding class used for the payload. More...
 
void setEncodingType (EncodingType et)
 Set the encoding type used for the payload. More...
 
void setEntityId (GlobalObjectDesignator entityId)
 Set the sender entity identifier for this signal. More...
 
void setNumSamples (int theNumSamples)
 Set the number of samples represented by the payload. More...
 
void setRadioId (short ri)
 Set the radio identifier for the transmitting radio. More...
 
void setSampleRate (int sr)
 Set the sample rate for the signal payload. More...
 
void setTDLType (TDLType tdl)
 Set the tactical data link type carried by this signal. More...
 
String toString ()
 Render this interaction as a readable string. More...
 
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
< SignalInteraction > 
addListener (ExerciseConnection exConn, InteractionListener< SignalInteraction > listener)
 Subscribe for callbacks when new interactions are received over the specified ExerciseConnection. More...
 
static void removeListener (ExerciseConnection exConn, InteractionListener< SignalInteraction > listener)
 Remove a subscription for interactions callbacks on an ExerciseConnection. More...
 

Static Public Attributes

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

Private Attributes

GlobalObjectDesignator myEntityId = new GlobalObjectDesignator("")
 
short myRadioId
 
EncodingClass myEncodingClass = EncodingClass.ENCODED_AUDIO
 
EncodingType myEncodingType = EncodingType.EIGHTBIT_MU_LAW
 
TDLType myTDLType = TDLType.OTHER
 
int mySampleRate
 
int myNumSamples
 
byte[] myData = new byte[0]
 

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

Signal message between entities.

Constructor & Destructor Documentation

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

Create an empty signal interaction.

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

Member Function Documentation

static InteractionListener<SignalInteraction> com.mak.vrlj.interaction.SignalInteraction.addListener ( ExerciseConnection  exConn,
InteractionListener< SignalInteraction >  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.SignalInteraction.NAME.

boolean com.mak.vrlj.interaction.SignalInteraction.equals ( Object  obj)
inline
byte [] com.mak.vrlj.interaction.SignalInteraction.getData ( )
inline

Get the raw signal payload bytes.

Returns
the value for the data payload

References com.mak.vrlj.interaction.SignalInteraction.myData.

EncodingClass com.mak.vrlj.interaction.SignalInteraction.getEncodingClass ( )
inline

Get the encoding class used for the signal payload.

Returns
EncodingClass

References com.mak.vrlj.interaction.SignalInteraction.myEncodingClass.

EncodingType com.mak.vrlj.interaction.SignalInteraction.getEncodingType ( )
inline

Get the encoding type used for the signal payload.

Returns
EncodingType

References com.mak.vrlj.interaction.SignalInteraction.myEncodingType.

GlobalObjectDesignator com.mak.vrlj.interaction.SignalInteraction.getEntityId ( )
inline

Get the sender entity identifier for this signal.

Returns
GlobalObjectDesignator of the entity.

References com.mak.vrlj.interaction.SignalInteraction.myEntityId.

String com.mak.vrlj.interaction.SignalInteraction.getInteractionName ( )
inlinevirtual

Get the interaction class name.

Implements com.mak.vrlj.interaction.Interaction.

References com.mak.vrlj.interaction.SignalInteraction.NAME.

int com.mak.vrlj.interaction.SignalInteraction.getNumSamples ( )
inline

Get the number of samples represented in the payload.

Returns
the myNumSamples

References com.mak.vrlj.interaction.SignalInteraction.myNumSamples.

short com.mak.vrlj.interaction.SignalInteraction.getRadioId ( )
inline

Get the radio identifier for the transmitting radio.

Returns
the Radio Identifier.

References com.mak.vrlj.interaction.SignalInteraction.myRadioId.

int com.mak.vrlj.interaction.SignalInteraction.getSampleRate ( )
inline

Get the sample rate for the signal payload.

Returns
the Sample Rate.

References com.mak.vrlj.interaction.SignalInteraction.mySampleRate.

TDLType com.mak.vrlj.interaction.SignalInteraction.getTDLType ( )
inline

Get the tactical data link type carried by this signal.

Returns
TDLType

References com.mak.vrlj.interaction.SignalInteraction.myTDLType.

int com.mak.vrlj.interaction.SignalInteraction.hashCode ( )
inline
static void com.mak.vrlj.interaction.SignalInteraction.removeListener ( ExerciseConnection  exConn,
InteractionListener< SignalInteraction >  listener 
)
inlinestatic

Remove a subscription for interactions callbacks on an ExerciseConnection.

Parameters
exConnExerciseConnection listened to.
listenerthe callback to remove.

References com.mak.vrlj.interaction.SignalInteraction.NAME.

void com.mak.vrlj.interaction.SignalInteraction.setData ( byte[]  data)
inline

Set the raw signal payload bytes.

Parameters
datapayload bytes.

References com.mak.vrlj.interaction.SignalInteraction.myData.

void com.mak.vrlj.interaction.SignalInteraction.setEncodingClass ( EncodingClass  ec)
inline

Set the encoding class used for the payload.

Parameters
ecEncodingClass

References com.mak.vrlj.interaction.SignalInteraction.myEncodingClass.

void com.mak.vrlj.interaction.SignalInteraction.setEncodingType ( EncodingType  et)
inline

Set the encoding type used for the payload.

Parameters
etEncodingType

References com.mak.vrlj.interaction.SignalInteraction.myEncodingType.

void com.mak.vrlj.interaction.SignalInteraction.setEntityId ( GlobalObjectDesignator  entityId)
inline

Set the sender entity identifier for this signal.

Parameters
entityIdGlobalObjectDesignator of the entity.

References com.mak.vrlj.interaction.SignalInteraction.myEntityId.

void com.mak.vrlj.interaction.SignalInteraction.setNumSamples ( int  theNumSamples)
inline

Set the number of samples represented by the payload.

Parameters
theNumSamplesthe myNumSamples to set

References com.mak.vrlj.interaction.SignalInteraction.myNumSamples.

void com.mak.vrlj.interaction.SignalInteraction.setRadioId ( short  ri)
inline

Set the radio identifier for the transmitting radio.

Parameters
riradio identifier value.

References com.mak.vrlj.interaction.SignalInteraction.myRadioId.

void com.mak.vrlj.interaction.SignalInteraction.setSampleRate ( int  sr)
inline

Set the sample rate for the signal payload.

Parameters
srsample rate value.

References com.mak.vrlj.interaction.SignalInteraction.mySampleRate.

void com.mak.vrlj.interaction.SignalInteraction.setTDLType ( TDLType  tdl)
inline

Set the tactical data link type carried by this signal.

Parameters
tdlTDLType

References com.mak.vrlj.interaction.SignalInteraction.myTDLType.

String com.mak.vrlj.interaction.SignalInteraction.toString ( )
inline

Member Data Documentation

byte [] com.mak.vrlj.interaction.SignalInteraction.myData = new byte[0]
private
EncodingClass com.mak.vrlj.interaction.SignalInteraction.myEncodingClass = EncodingClass.ENCODED_AUDIO
private
EncodingType com.mak.vrlj.interaction.SignalInteraction.myEncodingType = EncodingType.EIGHTBIT_MU_LAW
private
GlobalObjectDesignator com.mak.vrlj.interaction.SignalInteraction.myEntityId = new GlobalObjectDesignator("")
private
int com.mak.vrlj.interaction.SignalInteraction.myNumSamples
private
short com.mak.vrlj.interaction.SignalInteraction.myRadioId
private
int com.mak.vrlj.interaction.SignalInteraction.mySampleRate
private
TDLType com.mak.vrlj.interaction.SignalInteraction.myTDLType = TDLType.OTHER
private
final String com.mak.vrlj.interaction.SignalInteraction.NAME = ":Signal"
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)