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... | |
Signal message between entities.
|
inline |
Create an empty signal interaction.
Referenced by com.mak.vrlj.interaction.SignalInteraction.equals().
|
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.interaction.SignalInteraction.NAME.
|
inline |
References com.mak.vrlj.object.GlobalObjectDesignator.equals(), com.mak.vrlj.interaction.SignalInteraction.myData, com.mak.vrlj.interaction.SignalInteraction.myEncodingClass, com.mak.vrlj.interaction.SignalInteraction.myEncodingType, com.mak.vrlj.interaction.SignalInteraction.myEntityId, com.mak.vrlj.interaction.SignalInteraction.myRadioId, com.mak.vrlj.interaction.SignalInteraction.mySampleRate, com.mak.vrlj.interaction.SignalInteraction.myTDLType, and com.mak.vrlj.interaction.SignalInteraction.SignalInteraction().
|
inline |
Get the raw signal payload bytes.
References com.mak.vrlj.interaction.SignalInteraction.myData.
|
inline |
Get the encoding class used for the signal payload.
References com.mak.vrlj.interaction.SignalInteraction.myEncodingClass.
|
inline |
Get the encoding type used for the signal payload.
References com.mak.vrlj.interaction.SignalInteraction.myEncodingType.
|
inline |
Get the sender entity identifier for this signal.
References com.mak.vrlj.interaction.SignalInteraction.myEntityId.
|
inlinevirtual |
Get the interaction class name.
Implements com.mak.vrlj.interaction.Interaction.
References com.mak.vrlj.interaction.SignalInteraction.NAME.
|
inline |
Get the number of samples represented in the payload.
References com.mak.vrlj.interaction.SignalInteraction.myNumSamples.
|
inline |
Get the radio identifier for the transmitting radio.
References com.mak.vrlj.interaction.SignalInteraction.myRadioId.
|
inline |
Get the sample rate for the signal payload.
References com.mak.vrlj.interaction.SignalInteraction.mySampleRate.
|
inline |
Get the tactical data link type carried by this signal.
References com.mak.vrlj.interaction.SignalInteraction.myTDLType.
|
inline |
References com.mak.vrlj.interaction.SignalInteraction.myData, com.mak.vrlj.interaction.SignalInteraction.myEncodingClass, com.mak.vrlj.interaction.SignalInteraction.myEncodingType, com.mak.vrlj.interaction.SignalInteraction.myEntityId, com.mak.vrlj.interaction.SignalInteraction.myRadioId, com.mak.vrlj.interaction.SignalInteraction.mySampleRate, and com.mak.vrlj.interaction.SignalInteraction.myTDLType.
|
inlinestatic |
Remove a subscription for interactions callbacks on an ExerciseConnection.
| exConn | ExerciseConnection listened to. |
| listener | the callback to remove. |
References com.mak.vrlj.interaction.SignalInteraction.NAME.
|
inline |
Set the raw signal payload bytes.
| data | payload bytes. |
References com.mak.vrlj.interaction.SignalInteraction.myData.
|
inline |
Set the encoding class used for the payload.
| ec | EncodingClass |
References com.mak.vrlj.interaction.SignalInteraction.myEncodingClass.
|
inline |
Set the encoding type used for the payload.
| et | EncodingType |
References com.mak.vrlj.interaction.SignalInteraction.myEncodingType.
|
inline |
Set the sender entity identifier for this signal.
| entityId | GlobalObjectDesignator of the entity. |
References com.mak.vrlj.interaction.SignalInteraction.myEntityId.
|
inline |
Set the number of samples represented by the payload.
| theNumSamples | the myNumSamples to set |
References com.mak.vrlj.interaction.SignalInteraction.myNumSamples.
|
inline |
Set the radio identifier for the transmitting radio.
| ri | radio identifier value. |
References com.mak.vrlj.interaction.SignalInteraction.myRadioId.
|
inline |
Set the sample rate for the signal payload.
| sr | sample rate value. |
References com.mak.vrlj.interaction.SignalInteraction.mySampleRate.
|
inline |
Set the tactical data link type carried by this signal.
| tdl | TDLType |
References com.mak.vrlj.interaction.SignalInteraction.myTDLType.
|
inline |
Render this interaction as a readable string.
References com.mak.vrlj.interaction.SignalInteraction.myData, com.mak.vrlj.interaction.SignalInteraction.myEncodingClass, com.mak.vrlj.interaction.SignalInteraction.myEncodingType, com.mak.vrlj.interaction.SignalInteraction.myEntityId, com.mak.vrlj.interaction.SignalInteraction.myRadioId, com.mak.vrlj.interaction.SignalInteraction.mySampleRate, and com.mak.vrlj.interaction.SignalInteraction.myTDLType.
|
private |
|
private |
Referenced by com.mak.vrlj.interaction.SignalInteraction.equals(), com.mak.vrlj.interaction.SignalInteraction.getEncodingClass(), com.mak.vrlj.interaction.SignalInteraction.hashCode(), com.mak.vrlj.interaction.SignalInteraction.setEncodingClass(), and com.mak.vrlj.interaction.SignalInteraction.toString().
|
private |
Referenced by com.mak.vrlj.interaction.SignalInteraction.equals(), com.mak.vrlj.interaction.SignalInteraction.getEncodingType(), com.mak.vrlj.interaction.SignalInteraction.hashCode(), com.mak.vrlj.interaction.SignalInteraction.setEncodingType(), and com.mak.vrlj.interaction.SignalInteraction.toString().
|
private |
|
private |
|
private |
|
private |
Referenced by com.mak.vrlj.interaction.SignalInteraction.equals(), com.mak.vrlj.interaction.SignalInteraction.getSampleRate(), com.mak.vrlj.interaction.SignalInteraction.hashCode(), com.mak.vrlj.interaction.SignalInteraction.setSampleRate(), and com.mak.vrlj.interaction.SignalInteraction.toString().
|
private |
|
static |