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

Simulated weapon firing interaction, describes the firing of a single weapon. More...

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

Public Member Functions

 FireInteraction ()
 Creates an empty fire interaction. More...
 
boolean equals (Object obj)
 
int getEventId ()
 Gets this property value. More...
 
int getFireMissionIndex ()
 Gets this property value. More...
 
GlobalObjectDesignator getFiringId ()
 Gets this property value. More...
 
FuzeType getFuzeType ()
 Gets this property value. More...
 
GlobalObjectDesignator getMunitionId ()
 Gets this property value. More...
 
EntityType getMunitionType ()
 Gets this property value. More...
 
int getQuantity ()
 Gets this property value. More...
 
double getRange ()
 Gets this property value. More...
 
int getRate ()
 Gets this property value. More...
 
GlobalObjectDesignator getTargetId ()
 Gets this property value. More...
 
ConstVector3f getVelocity ()
 Gets this property value. More...
 
WarheadType getWarheadType ()
 Gets this property value. More...
 
ConstVector3d getWorldPosition ()
 Gets this property value. More...
 
int hashCode ()
 
void setEventId (int eventId)
 Sets this property value. More...
 
void setFireMissionIndex (int theFireMissionIndex)
 Sets this property value. More...
 
void setFiringId (GlobalObjectDesignator firingId)
 Sets this property value. More...
 
void setFuzeType (FuzeType fuzeType)
 Sets this property value. More...
 
void setMunitionId (GlobalObjectDesignator munitionId)
 Sets this property value. More...
 
void setMunitionType (EntityType munitionType)
 Sets this property value. More...
 
void setQuantity (int quantity)
 Sets this property value. More...
 
void setRange (double range)
 Sets this property value. More...
 
void setRate (int rate)
 Sets this property value. More...
 
void setTargetId (GlobalObjectDesignator targetId)
 Sets this property value. More...
 
void setVelocity (ConstVector3f velocity)
 Sets this property value. More...
 
void setWarheadType (WarheadType warheadType)
 Sets this property value. More...
 
void setWorldPosition (ConstVector3d worldPosition)
 Sets this property value. 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
< FireInteraction > 
addListener (ExerciseConnection exConn, InteractionListener< FireInteraction > listener)
 Subscribe for callbacks when new interactions are received over the specified ExerciseConnection. More...
 
static void removeListener (ExerciseConnection exConn, InteractionListener< FireInteraction > listener)
 Remove a subscription for interactions callbacks on an ExerciseConnection. More...
 

Static Public Attributes

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

Private Attributes

GlobalObjectDesignator myFiringId = new GlobalObjectDesignator("")
 
GlobalObjectDesignator myTargetId = new GlobalObjectDesignator("")
 
GlobalObjectDesignator myMunitionId = new GlobalObjectDesignator("")
 
ConstVector3d myWorldPosition
 
ConstVector3f myVelocity
 
double myRange
 
int myEventId
 
int myFireMissionIndex
 
EntityType myMunitionType = new EntityType(-1, -1, -1, -1, -1, -1, -1)
 
FuzeType myFuzeType = FuzeType.OTHER
 
WarheadType myWarheadType = WarheadType.OTHER
 
int myQuantity
 
int myRate
 

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

Simulated weapon firing interaction, describes the firing of a single weapon.

Constructor & Destructor Documentation

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

Creates an empty fire interaction.

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

Member Function Documentation

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

boolean com.mak.vrlj.interaction.FireInteraction.equals ( Object  obj)
inline
int com.mak.vrlj.interaction.FireInteraction.getEventId ( )
inline

Gets this property value.

Returns
event ID (sequence number) of this firing event.

References com.mak.vrlj.interaction.FireInteraction.myEventId.

int com.mak.vrlj.interaction.FireInteraction.getFireMissionIndex ( )
inline

Gets this property value.

Returns
the myFireMissionIndex

References com.mak.vrlj.interaction.FireInteraction.myFireMissionIndex.

GlobalObjectDesignator com.mak.vrlj.interaction.FireInteraction.getFiringId ( )
inline

Gets this property value.

Returns
GlobalObjectDesignator of the firing entity.

References com.mak.vrlj.interaction.FireInteraction.myFiringId.

Referenced by com.mak.vrlj.example.f18.VehicleSim.fireMunition().

FuzeType com.mak.vrlj.interaction.FireInteraction.getFuzeType ( )
inline

Gets this property value.

Returns
the FuzeType used by the munition fired.

References com.mak.vrlj.interaction.FireInteraction.myFuzeType.

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

Get the interaction class name.

Returns
interaction class name.

Implements com.mak.vrlj.interaction.Interaction.

References com.mak.vrlj.interaction.FireInteraction.NAME.

GlobalObjectDesignator com.mak.vrlj.interaction.FireInteraction.getMunitionId ( )
inline

Gets this property value.

Returns
GlobalObjectDesignator of the munition entity.

References com.mak.vrlj.interaction.FireInteraction.myMunitionId.

EntityType com.mak.vrlj.interaction.FireInteraction.getMunitionType ( )
inline

Gets this property value.

Returns
the type of munition fired.

References com.mak.vrlj.interaction.FireInteraction.myMunitionType.

int com.mak.vrlj.interaction.FireInteraction.getQuantity ( )
inline

Gets this property value.

Returns
the number of munitions fired.

References com.mak.vrlj.interaction.FireInteraction.myQuantity.

double com.mak.vrlj.interaction.FireInteraction.getRange ( )
inline

Gets this property value.

Returns
the range of the weapon fired in meters.

References com.mak.vrlj.interaction.FireInteraction.myRange.

int com.mak.vrlj.interaction.FireInteraction.getRate ( )
inline

Gets this property value.

Returns
rate of fire per second.

References com.mak.vrlj.interaction.FireInteraction.myRate.

GlobalObjectDesignator com.mak.vrlj.interaction.FireInteraction.getTargetId ( )
inline

Gets this property value.

Returns
GlobalObjectDesignator of the target entity.

References com.mak.vrlj.interaction.FireInteraction.myTargetId.

ConstVector3f com.mak.vrlj.interaction.FireInteraction.getVelocity ( )
inline

Gets this property value.

Returns
the velocity of the fired munition.

References com.mak.vrlj.interaction.FireInteraction.myVelocity.

WarheadType com.mak.vrlj.interaction.FireInteraction.getWarheadType ( )
inline

Gets this property value.

Returns
the WarheadType of the fired munition.

References com.mak.vrlj.interaction.FireInteraction.myWarheadType.

ConstVector3d com.mak.vrlj.interaction.FireInteraction.getWorldPosition ( )
inline

Gets this property value.

Returns
the position of where the fired munition was fired from.

References com.mak.vrlj.interaction.FireInteraction.myWorldPosition.

Referenced by com.mak.vrlj.example.f18.VehicleSim.detonateMunition().

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

Remove a subscription for interactions callbacks on an ExerciseConnection.

Parameters
exConnExerciseConnection listened to.
listenerthe callback to remove.

References com.mak.vrlj.interaction.FireInteraction.NAME.

void com.mak.vrlj.interaction.FireInteraction.setEventId ( int  eventId)
inline

Sets this property value.

Parameters
eventIdevent ID (sequence number) of this firing event.

References com.mak.vrlj.interaction.FireInteraction.myEventId.

void com.mak.vrlj.interaction.FireInteraction.setFireMissionIndex ( int  theFireMissionIndex)
inline

Sets this property value.

Parameters
theFireMissionIndexthe myFireMissionIndex to set

References com.mak.vrlj.interaction.FireInteraction.myFireMissionIndex.

void com.mak.vrlj.interaction.FireInteraction.setFiringId ( GlobalObjectDesignator  firingId)
inline

Sets this property value.

Parameters
firingIdGlobalObjectDesignator of the firing entity.

References com.mak.vrlj.interaction.FireInteraction.myFiringId.

void com.mak.vrlj.interaction.FireInteraction.setFuzeType ( FuzeType  fuzeType)
inline

Sets this property value.

Parameters
fuzeTypethe FuzeType used by the munition fired.

References com.mak.vrlj.interaction.FireInteraction.myFuzeType.

void com.mak.vrlj.interaction.FireInteraction.setMunitionId ( GlobalObjectDesignator  munitionId)
inline

Sets this property value.

Parameters
munitionIdGlobalObjectDesignator of the munition entity.

References com.mak.vrlj.interaction.FireInteraction.myMunitionId.

void com.mak.vrlj.interaction.FireInteraction.setMunitionType ( EntityType  munitionType)
inline

Sets this property value.

Parameters
munitionTypethe type of munition fired.

References com.mak.vrlj.interaction.FireInteraction.myMunitionType.

void com.mak.vrlj.interaction.FireInteraction.setQuantity ( int  quantity)
inline

Sets this property value.

Parameters
quantitythe number of munitioned fired.

References com.mak.vrlj.interaction.FireInteraction.myQuantity.

void com.mak.vrlj.interaction.FireInteraction.setRange ( double  range)
inline

Sets this property value.

Parameters
rangethe range of the weapon fired in meters.

References com.mak.vrlj.interaction.FireInteraction.myRange.

void com.mak.vrlj.interaction.FireInteraction.setRate ( int  rate)
inline

Sets this property value.

Parameters
raterate of fire per second.

References com.mak.vrlj.interaction.FireInteraction.myRate.

void com.mak.vrlj.interaction.FireInteraction.setTargetId ( GlobalObjectDesignator  targetId)
inline

Sets this property value.

Parameters
targetIdGlobalObjectDesignator of the targeted entity.

References com.mak.vrlj.interaction.FireInteraction.myTargetId.

void com.mak.vrlj.interaction.FireInteraction.setVelocity ( ConstVector3f  velocity)
inline

Sets this property value.

Parameters
velocitythe velocity of the fired munition.

References com.mak.vrlj.interaction.FireInteraction.myVelocity.

void com.mak.vrlj.interaction.FireInteraction.setWarheadType ( WarheadType  warheadType)
inline

Sets this property value.

Parameters
warheadTypethe WarheadType of the fired munition.

References com.mak.vrlj.interaction.FireInteraction.myWarheadType.

void com.mak.vrlj.interaction.FireInteraction.setWorldPosition ( ConstVector3d  worldPosition)
inline

Sets this property value.

Parameters
worldPositionthe position of where the fired munition was fired from.

References com.mak.vrlj.interaction.FireInteraction.myWorldPosition.

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

Member Data Documentation

int com.mak.vrlj.interaction.FireInteraction.myEventId
private
int com.mak.vrlj.interaction.FireInteraction.myFireMissionIndex
private
GlobalObjectDesignator com.mak.vrlj.interaction.FireInteraction.myFiringId = new GlobalObjectDesignator("")
private
FuzeType com.mak.vrlj.interaction.FireInteraction.myFuzeType = FuzeType.OTHER
private
GlobalObjectDesignator com.mak.vrlj.interaction.FireInteraction.myMunitionId = new GlobalObjectDesignator("")
private
EntityType com.mak.vrlj.interaction.FireInteraction.myMunitionType = new EntityType(-1, -1, -1, -1, -1, -1, -1)
private
int com.mak.vrlj.interaction.FireInteraction.myQuantity
private
double com.mak.vrlj.interaction.FireInteraction.myRange
private
int com.mak.vrlj.interaction.FireInteraction.myRate
private
GlobalObjectDesignator com.mak.vrlj.interaction.FireInteraction.myTargetId = new GlobalObjectDesignator("")
private
ConstVector3f com.mak.vrlj.interaction.FireInteraction.myVelocity
private
WarheadType com.mak.vrlj.interaction.FireInteraction.myWarheadType = WarheadType.OTHER
private
ConstVector3d com.mak.vrlj.interaction.FireInteraction.myWorldPosition
private
final String com.mak.vrlj.interaction.FireInteraction.NAME = ":Fire"
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)