WsfBMAssignmentMessage

WsfBMAssignmentMessage

WsfBMAssignmentMessage is the script interface for the battle manager assignment messages.

Methods

void SetAssignmentTime(double time_seconds)

Sets the time of the assignment in seconds since the simulation start.

double GetAssignmentTime()

Returns the time of the assignment in seconds since the simulation start.

void SetAssignedID(int assigned_platform_id, int assigned_weapon_index)

Sets the assigned weapon within the assignment message.

Parameters

int assigned_platform_id: Platform id of the assigned asset.

int weapon_idx: Weapon index(0-based) of the WsfWeapon on the reported platform for this assignment.

int GetAssignedUnitID()

Returns the Platform id of the assigned asset from the call to SetAssignedID.

int GetAssignedWeaponID()

Returns the Weapon index(0-based) of the WsfWeapon on the reported platform for this assignment.

void SetTrackID(int reporting_platform_idx, int tan)

Sets the track for the assignment.

Parameters

int reporting_platform_idx: Reporting Platform Index.

int tan: Track number.

int GetTrackingSystemID()

Gets the reporting_platform_idx set within the [SetTrackID]{#SetTrackID} call.

int GetTrackID()

Gets the tan set within the [SetTrackID]{#SetTrackID} call.

WsfTrackId GetTrackID()

Gets the WsfTrackId of the assignment track.

void SetInitiatingID(int assignment_initiator_platform_id)

Sets the platform id of the assignment initiator. In the case of a delegate assignment, this will be the original assigning platform id.

int GetInitiatingUnitID()

Returns the platform id of the assignment initiator. In the case of a delegate assignment, this will be the original assigning platform id.

void SetAssigningID(int assigning_platform_id)

Sets the platform id of the assigning platform id. For commit (non-delegate) assignments, this will be the same as the initiating platform id.

int GetAssigningUnitID()

Returns the platform id of the assigning platform id. For commit (non-delegate) assignments, this will be the same as the initiating platform id.

void SetSelfDefenseFlag(bool is_self_defense_assignment)

Sets whether the assignment is a self-defense assignment if true, otherwise, a commanded assignment if false. This is for use between a weapons manager and a weapon, but if a self defense assignment is made at a lower level, this will need to be recorded in the assignment status report as well.

bool GetSelfDefenseFlag()

Returns whether the assignment is a self-defense assignment if true, otherwise, a commanded assignment if false. This is for use between a weapons manager and a weapon, but if a self defense assignment is made at a lower level, this will need to be recorded in the assignment status report as well.

void SetMaxFiringTime(double max_time_seconds)

Sets the max time allowed for the assignment prosecution.

double GetMaxFiringTime()

Returns the max time allowed for the assignment prosecution.

void SetAssignmentReasonNewAssignment()

Sets the reason for the assignment message because it is a new assignment.

void SetAssignmentReasonRetransmit()

Sets the reason for the assignment message because it is a retransmit.

void SetAssignmentReasonUpdate()

Sets the reason for the assignment message because it is an update to an existing assignment.

void SetAssignmentReasonReassignment()

Sets the reason for the assignment message because it is a reassignment.

void SetAssignmentReasonCancel()

Sets the reason for the assignment message because it is a cancellation to an existing assignment.

void IsAssignmentReasonNewAssignment()

Returns true if the assignment reason was set with SetAssignmentReasonNewAssignment , otherwise false.

void IsAssignmentReasonRetransmit()

Returns true if the assignment reason was set with IsAssignmentReasonRetransmit, otherwise false.

void IsAssignmentReasonUpdate()

Returns true if the assignment reason was set with IsAssignmentReasonUpdate, otherwise false.

void IsAssignmentReasonReassignment()

Returns true if the assignment reason was set with IsAssignmentReasonReassignment, otherwise false.

void IsAssignmentReasonCancel()

Returns true if the assignment reason was set with IsAssignmentReasonCancel, otherwise false.

string GetAssignmentReasonString()

Convenience function for returning a string version of the assignment reason for debugging or logging purposes.

void SetShotDoctrineS1()

Sets the shot doctrine for the assignment to Shoot-1.

void SetShotDoctrineS2()

Sets the shot doctrine for the assignment to Shoot-2.

void SetShotDoctrineSLS()

Sets the shot doctrine for the assignment to Shoot-Look-Shoot.

bool IsShotDoctrineS1()

Returns true if the shot doctrine for the assignment is Shoot-1.

bool IsShotDoctrineS2()

Returns true if the shot doctrine for the assignment is Shoot-2.

bool IsShotDoctrineSLS()

Returns true if the shot doctrine for the assignment is Shoot-Look-Shoot.

string GetShotDoctrineString()

Convenience function for returning a string version of the shot doctrine for debugging or logging purposes.

void SetTransmittedFlag()

Sets the assignment as having been transmitted.

Primarily a Disseminate C^2 Interface

bool GetTransmittedFlag()

Returns true if the assignment has been marked as transmitted, otherwise false.

void Print()

Logs the assignment message to the log output stream.