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

Simulated munition detonation. More...

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

Public Member Functions

 DetonateInteraction ()
 Creates an empty detonate interaction. More...
 
boolean equals (Object obj)
 
List< ArticulatedPart > getArticulatedParts ()
 Gets articulated part details associated with the detonation. More...
 
ConstVector3f getEntityLocation ()
 Gets detonation location in the target entity coordinate system. More...
 
int getEventId ()
 Gets the detonation event identifier. More...
 
GlobalObjectDesignator getFiringId ()
 Gets the firing entity identifier. More...
 
FuzeType getFuzeType ()
 Gets the fuze type used by the munition. More...
 
GlobalObjectDesignator getMunitionId ()
 Gets the munition entity identifier. More...
 
EntityType getMunitionType ()
 Gets the munition entity type. More...
 
int getQuantity ()
 Gets the quantity of munitions fired. More...
 
double getRange ()
 Gets weapon range at detonation time. More...
 
int getRate ()
 Gets the weapon firing rate. More...
 
ResultType getResult ()
 Gets the detonation result. More...
 
GlobalObjectDesignator getTargetId ()
 Gets the targeted entity identifier. More...
 
ConstVector3f getVelocity ()
 Gets the munition velocity. More...
 
WarheadType getWarheadType ()
 Gets the warhead type. More...
 
ConstVector3d getWorldPosition ()
 Gets the world position of detonation. More...
 
int hashCode ()
 
void setArticulatedParts (List< ArticulatedPart > theArticulatedParts)
 Sets articulated part details associated with the detonation. More...
 
void setEntityLocation (ConstVector3f entityLocation)
 Sets detonation location in the target entity coordinate system. More...
 
void setEventId (int eventId)
 Sets the detonation event identifier. More...
 
void setFiringId (GlobalObjectDesignator firingId)
 Sets the firing entity identifier. More...
 
void setFuzeType (FuzeType fuzeType)
 Sets the fuze type used by the munition. More...
 
void setMunitionId (GlobalObjectDesignator munitionId)
 Sets the munition entity identifier. More...
 
void setMunitionType (EntityType munitionType)
 Sets the munition entity type. More...
 
void setQuantity (int quantity)
 Sets quantity of munitions fired. More...
 
void setRange (double range)
 Sets weapon range at detonation time. More...
 
void setRate (int rate)
 Sets the weapon firing rate. More...
 
void setResult (ResultType result)
 Sets the detonation result. More...
 
void setTargetId (GlobalObjectDesignator targetId)
 Sets the targeted entity identifier. More...
 
void setVelocity (ConstVector3f velocity)
 Sets the munition velocity. More...
 
void setWarheadType (WarheadType warheadType)
 Sets the warhead type. More...
 
void setWorldPosition (ConstVector3d worldPosition)
 Sets world position of detonation. 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
< DetonateInteraction > 
addListener (ExerciseConnection exConn, InteractionListener< DetonateInteraction > listener)
 Subscribe for callbacks when new interactions are received over the specified ExerciseConnection. More...
 
static void removeListener (ExerciseConnection exConn, InteractionListener< DetonateInteraction > listener)
 Remove a subscription for interactions callbacks on an ExerciseConnection. More...
 

Static Public Attributes

static final String NAME = ":Detonate"
 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
 
EntityType myMunitionType = new EntityType(-1, -1, -1, -1, -1, -1, -1)
 
FuzeType myFuzeType = FuzeType.OTHER
 
WarheadType myWarheadType = WarheadType.OTHER
 
int myQuantity
 
int myRate
 
ConstVector3f myEntityLocation
 
ResultType myResult = ResultType.OTHER
 
List< ArticulatedPart > myArticulatedParts = new ArrayList<ArticulatedPart>()
 

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 munition detonation.

Constructor & Destructor Documentation

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

Creates an empty detonate interaction.

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

Member Function Documentation

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

boolean com.mak.vrlj.interaction.DetonateInteraction.equals ( Object  obj)
inline
List<ArticulatedPart> com.mak.vrlj.interaction.DetonateInteraction.getArticulatedParts ( )
inline

Gets articulated part details associated with the detonation.

Returns
the myArticulatedParts

References com.mak.vrlj.interaction.DetonateInteraction.myArticulatedParts.

ConstVector3f com.mak.vrlj.interaction.DetonateInteraction.getEntityLocation ( )
inline

Gets detonation location in the target entity coordinate system.

Returns
location of detonation in coordinate system of target entity.

References com.mak.vrlj.interaction.DetonateInteraction.myEntityLocation.

int com.mak.vrlj.interaction.DetonateInteraction.getEventId ( )
inline

Gets the detonation event identifier.

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

References com.mak.vrlj.interaction.DetonateInteraction.myEventId.

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

Gets the firing entity identifier.

Returns
GlobalObjectDesignator of the firing entity.

References com.mak.vrlj.interaction.DetonateInteraction.myFiringId.

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

Gets the fuze type used by the munition.

Returns
the FuzeType used by the munition fired.

References com.mak.vrlj.interaction.DetonateInteraction.myFuzeType.

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

Get the interaction class name.

Returns
interaction class name.

Implements com.mak.vrlj.interaction.Interaction.

References com.mak.vrlj.interaction.DetonateInteraction.NAME.

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

Gets the munition entity identifier.

Returns
GlobalObjectDesignator of the munition entity.

References com.mak.vrlj.interaction.DetonateInteraction.myMunitionId.

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

Gets the munition entity type.

Returns
the type of munition fired.

References com.mak.vrlj.interaction.DetonateInteraction.myMunitionType.

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

Gets the quantity of munitions fired.

Returns
the number of munitions fired.

References com.mak.vrlj.interaction.DetonateInteraction.myQuantity.

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

Gets weapon range at detonation time.

Returns
the range of the weapon fired in meters.

References com.mak.vrlj.interaction.DetonateInteraction.myRange.

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

Gets the weapon firing rate.

Returns
rate of fire per second.

References com.mak.vrlj.interaction.DetonateInteraction.myRate.

ResultType com.mak.vrlj.interaction.DetonateInteraction.getResult ( )
inline

Gets the detonation result.

Returns
the ResultType of the detonation.

References com.mak.vrlj.interaction.DetonateInteraction.myResult.

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

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

Gets the targeted entity identifier.

Returns
GlobalObjectDesignator of the target entity.

References com.mak.vrlj.interaction.DetonateInteraction.myTargetId.

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

Gets the munition velocity.

Returns
the velocity of the fired munition.

References com.mak.vrlj.interaction.DetonateInteraction.myVelocity.

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

Gets the warhead type.

Returns
the WarheadType of the fired munition.

References com.mak.vrlj.interaction.DetonateInteraction.myWarheadType.

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

Gets the world position of detonation.

Returns
the position of where the munition detonated.

References com.mak.vrlj.interaction.DetonateInteraction.myWorldPosition.

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

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

Remove a subscription for interactions callbacks on an ExerciseConnection.

Parameters
exConnExerciseConnection listened to.
listenerthe callback to remove.

References com.mak.vrlj.interaction.DetonateInteraction.NAME.

void com.mak.vrlj.interaction.DetonateInteraction.setArticulatedParts ( List< ArticulatedPart >  theArticulatedParts)
inline

Sets articulated part details associated with the detonation.

Parameters
theArticulatedPartsthe myArticulatedParts to set

References com.mak.vrlj.interaction.DetonateInteraction.myArticulatedParts.

void com.mak.vrlj.interaction.DetonateInteraction.setEntityLocation ( ConstVector3f  entityLocation)
inline

Sets detonation location in the target entity coordinate system.

Parameters
entityLocationlocation of detonation in coordinate system of target entity.

References com.mak.vrlj.interaction.DetonateInteraction.myEntityLocation.

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

Sets the detonation event identifier.

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

References com.mak.vrlj.interaction.DetonateInteraction.myEventId.

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

Sets the firing entity identifier.

Parameters
firingIdGlobalObjectDesignator of the firing entity.

References com.mak.vrlj.interaction.DetonateInteraction.myFiringId.

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

Sets the fuze type used by the munition.

Parameters
fuzeTypethe FuzeType used by the munition fired.

References com.mak.vrlj.interaction.DetonateInteraction.myFuzeType.

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

Sets the munition entity identifier.

Parameters
munitionIdGlobalObjectDesignator of the firing entity.

References com.mak.vrlj.interaction.DetonateInteraction.myMunitionId.

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

Sets the munition entity type.

Parameters
munitionTypethe type of munition fired.

References com.mak.vrlj.interaction.DetonateInteraction.myMunitionType.

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

Sets quantity of munitions fired.

Parameters
quantitythe number of munitioned fired.

References com.mak.vrlj.interaction.DetonateInteraction.myQuantity.

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

Sets weapon range at detonation time.

Parameters
rangethe range of the weapon fired in meters.

References com.mak.vrlj.interaction.DetonateInteraction.myRange.

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

Sets the weapon firing rate.

Parameters
raterate of fire per second.

References com.mak.vrlj.interaction.DetonateInteraction.myRate.

void com.mak.vrlj.interaction.DetonateInteraction.setResult ( ResultType  result)
inline

Sets the detonation result.

Parameters
resultthe ResultType of the detonation.

References com.mak.vrlj.interaction.DetonateInteraction.myResult.

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

Sets the targeted entity identifier.

Parameters
targetIdGlobalObjectDesignator of the targeted entity.

References com.mak.vrlj.interaction.DetonateInteraction.myTargetId.

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

Sets the munition velocity.

Parameters
velocitythe velocity of the fired munition.

References com.mak.vrlj.interaction.DetonateInteraction.myVelocity.

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

Sets the warhead type.

Parameters
warheadTypethe WarheadType of the fired munition.

References com.mak.vrlj.interaction.DetonateInteraction.myWarheadType.

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

Sets world position of detonation.

Parameters
worldPositionthe position of where the munition detonated.

References com.mak.vrlj.interaction.DetonateInteraction.myWorldPosition.

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

Member Data Documentation

List<ArticulatedPart> com.mak.vrlj.interaction.DetonateInteraction.myArticulatedParts = new ArrayList<ArticulatedPart>()
private
ConstVector3f com.mak.vrlj.interaction.DetonateInteraction.myEntityLocation
private
int com.mak.vrlj.interaction.DetonateInteraction.myEventId
private
GlobalObjectDesignator com.mak.vrlj.interaction.DetonateInteraction.myFiringId = new GlobalObjectDesignator("")
private
FuzeType com.mak.vrlj.interaction.DetonateInteraction.myFuzeType = FuzeType.OTHER
private
GlobalObjectDesignator com.mak.vrlj.interaction.DetonateInteraction.myMunitionId = new GlobalObjectDesignator("")
private
EntityType com.mak.vrlj.interaction.DetonateInteraction.myMunitionType = new EntityType(-1, -1, -1, -1, -1, -1, -1)
private
int com.mak.vrlj.interaction.DetonateInteraction.myQuantity
private
double com.mak.vrlj.interaction.DetonateInteraction.myRange
private
int com.mak.vrlj.interaction.DetonateInteraction.myRate
private
ResultType com.mak.vrlj.interaction.DetonateInteraction.myResult = ResultType.OTHER
private
GlobalObjectDesignator com.mak.vrlj.interaction.DetonateInteraction.myTargetId = new GlobalObjectDesignator("")
private
ConstVector3f com.mak.vrlj.interaction.DetonateInteraction.myVelocity
private
WarheadType com.mak.vrlj.interaction.DetonateInteraction.myWarheadType = WarheadType.OTHER
private
ConstVector3d com.mak.vrlj.interaction.DetonateInteraction.myWorldPosition
private
final String com.mak.vrlj.interaction.DetonateInteraction.NAME = ":Detonate"
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)