WsfBMStatusMessage

WsfBMStatusMessage inherits WsfMessage

Construction: WsfBMStatusMessage newObj = WsfBMStatusMessage();
Clone: WsfBMStatusMessage newObj = WsfBMStatusMessage(other);

WsfBMStatusMessage is the script interface for the battle manager friendly asset perception.

Methods

void SetDataTime(double time)

Sets time the data in message corresponds to.

double GetDataTime()

Gets time the data in message corresponds to.

void SetSystemID(int platform_index)

Sets the platform index that this asset status corresponds to.

int GetSystemID()

Gets the platform index that this asset status corresponds to.

void SetMaxAssignments(int max_assignments)

Sets the maximum simultaneous assignments supported by this asset.

int GetMaxAssignments()

Gets the maximum simultaneous assignments supported by this asset.

void SetNumAssignments(int num_current_assignments)

Sets the current number of assignments this asset has.

int GetNumAssignments()

Gets the current number of assignments this asset has.

void SetWeaponStatus(int weapon_idx, int munitions_ready, int total_munitions, int total_fire_channels, int allocated_fire_channels)

If the asset has weapons, allows setting of weapon information for the asset.

Parameters

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

int munitions_ready: Number of prepped munitions for the weapon.

int total_munitions: Total number of munitions for the weapon.

int total_fire_channels: Total number of fire channels for the weapon(max simultaneous assignments for the weapon).

int allocated_fire_channels: Number of current fire channels allocate.

void SetSystemStatusWhite()

Sets the asset status to white(out of munitions).

void SetSystemStatusGreen()

Sets the asset status to green(normal).

void SetSystemStatusYellow()

Sets the asset status to yellow(pending stale).

void SetSystemStatusRed()

Sets the asset status to red(stale).

bool IsSystemStatusWhite()

Returns true if asset status is white, otherwise false.

bool IsSystemStatusGreen()

Returns true if asset status is green, otherwise false.

bool IsSystemStatusYellow()

Returns true if asset status is yellow, otherwise false.

bool IsSystemStatusRed()

Returns true if asset status is red, otherwise false.

void SetPosition(WsfGeoPoint position)

Sets the asset position.

bool HasPosition()

Returns true if the asset position has been set via a call to SetPosition.

WsfGeoPoint GetPosition()

Returns the assets position set from a call to SetPosition.

void SetVelocityECEF(Vec3 ecef_meters_per_second)

Sets the ECEF velocity of the asset in meters per second.

bool HasVelocity()

Returns true if the asset velocity has been set via a call to SetVelocityECEF.

Vec3 GetVelocityECEF()

Gets the ECEF velocity of the asset in meters per second.