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

Acknowledge message between entities. More...

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

Public Member Functions

 AcknowledgeInteraction ()
 Creates an empty acknowledge interaction. More...
 
boolean equals (Object obj)
 
AcknowledgeFlag getAcknowledgeFlag ()
 Gets the acknowledge flag. More...
 
GlobalObjectDesignator getReceiverId ()
 Gets the receiver object designator. More...
 
int getRequestId ()
 Gets the request identifier. More...
 
ResponseFlag getResponseFlag ()
 Gets the response flag. More...
 
GlobalObjectDesignator getSenderId ()
 Gets the sender object designator. More...
 
int hashCode ()
 
void setAcknowledgeFlag (AcknowledgeFlag acknowledgeFlag)
 Sets the acknowledge flag. More...
 
void setReceiverId (GlobalObjectDesignator receiverId)
 Sets the receiver object designator. More...
 
void setRequestId (int reqId)
 Sets the request identifier. More...
 
void setResponseFlag (ResponseFlag respFlag)
 Sets the response flag. More...
 
void setSenderId (GlobalObjectDesignator senderId)
 Sets the sender object designator. 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
< AcknowledgeInteraction > 
addListener (ExerciseConnection exConn, InteractionListener< AcknowledgeInteraction > listener)
 Subscribe for callbacks when new interactions are received over the specified ExerciseConnection. More...
 
static void removeListener (ExerciseConnection exConn, InteractionListener< AcknowledgeInteraction > listener)
 Remove a subscription for interactions callbacks on an ExerciseConnection. More...
 

Static Public Attributes

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

Private Attributes

GlobalObjectDesignator mySenderId = new GlobalObjectDesignator("")
 
GlobalObjectDesignator myReceiverId = new GlobalObjectDesignator("")
 
int myRequestId
 
AcknowledgeFlag myAcknowledgeFlag = AcknowledgeFlag.EMPTY
 
ResponseFlag myResponseFlag = ResponseFlag.NOWAY
 

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

Acknowledge message between entities.

Constructor & Destructor Documentation

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

Creates an empty acknowledge interaction.

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

Member Function Documentation

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

boolean com.mak.vrlj.interaction.AcknowledgeInteraction.equals ( Object  obj)
inline
AcknowledgeFlag com.mak.vrlj.interaction.AcknowledgeInteraction.getAcknowledgeFlag ( )
inline

Gets the acknowledge flag.

Returns
the type of munition fired.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myAcknowledgeFlag.

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

Get the interaction class name.

Returns
interaction class name.

Implements com.mak.vrlj.interaction.Interaction.

References com.mak.vrlj.interaction.AcknowledgeInteraction.NAME.

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

Gets the receiver object designator.

Returns
GlobalObjectDesignator of the Receiver entity.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myReceiverId.

int com.mak.vrlj.interaction.AcknowledgeInteraction.getRequestId ( )
inline

Gets the request identifier.

Returns
the value for the request.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myRequestId.

ResponseFlag com.mak.vrlj.interaction.AcknowledgeInteraction.getResponseFlag ( )
inline

Gets the response flag.

Returns
the ResponseFlag used by the munition fired.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myResponseFlag.

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

Gets the sender object designator.

Returns
GlobalObjectDesignator of the Sender entity.

References com.mak.vrlj.interaction.AcknowledgeInteraction.mySenderId.

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

Remove a subscription for interactions callbacks on an ExerciseConnection.

Parameters
exConnExerciseConnection listened to.
listenerthe callback to remove.

References com.mak.vrlj.interaction.AcknowledgeInteraction.NAME.

void com.mak.vrlj.interaction.AcknowledgeInteraction.setAcknowledgeFlag ( AcknowledgeFlag  acknowledgeFlag)
inline

Sets the acknowledge flag.

Parameters
acknowledgeFlagthe type of munition fired.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myAcknowledgeFlag.

void com.mak.vrlj.interaction.AcknowledgeInteraction.setReceiverId ( GlobalObjectDesignator  receiverId)
inline

Sets the receiver object designator.

Parameters
receiverIdGlobalObjectDesignator of the Receiver entity.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myReceiverId.

void com.mak.vrlj.interaction.AcknowledgeInteraction.setRequestId ( int  reqId)
inline

Sets the request identifier.

Parameters
reqIdid of the request event.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myRequestId.

void com.mak.vrlj.interaction.AcknowledgeInteraction.setResponseFlag ( ResponseFlag  respFlag)
inline

Sets the response flag.

Parameters
respFlagthe ResponseFlag used by the munition fired.

References com.mak.vrlj.interaction.AcknowledgeInteraction.myResponseFlag.

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

Sets the sender object designator.

Parameters
senderIdGlobalObjectDesignator of the Sender entity.

References com.mak.vrlj.interaction.AcknowledgeInteraction.mySenderId.

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

Member Data Documentation

AcknowledgeFlag com.mak.vrlj.interaction.AcknowledgeInteraction.myAcknowledgeFlag = AcknowledgeFlag.EMPTY
private
GlobalObjectDesignator com.mak.vrlj.interaction.AcknowledgeInteraction.myReceiverId = new GlobalObjectDesignator("")
private
int com.mak.vrlj.interaction.AcknowledgeInteraction.myRequestId
private
ResponseFlag com.mak.vrlj.interaction.AcknowledgeInteraction.myResponseFlag = ResponseFlag.NOWAY
private
GlobalObjectDesignator com.mak.vrlj.interaction.AcknowledgeInteraction.mySenderId = new GlobalObjectDesignator("")
private
final String com.mak.vrlj.interaction.AcknowledgeInteraction.NAME = ":Acknowledge"
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)