STK ObjectsSend comments on this topic.
IAgCvAssetListElement Interface

Description

Coverage asset.

Public Methods

Public Method ContainsSubAssetsReturns whether or not this element has sub assets.

Public Properties

Public Property AssetStatusGets or sets the current status of the coverage asset (active or not).
Public Property GroupingOpt whether to consider the members of a constellation as a group or as separate entities.
Public Property ObjectNameName of the object assigned as a coverage asset.
Public Property RequiredFlag sets whether Asset is required for all valid access intervals.
Public Property SubAssetListReturns the sub assets for this asset.
Public Property UseConstConstraintsFlag determines whether constellation constraints are considered.

Example

Define a coverage definition assets
[C#]
IAgCvAssetListCollection assetCollection = coverageDefinition.AssetList;
string satAssetName = "Satellite/sat1";
string facAssetName = "Facility/North";

// Remove asset collection if necessary
assetCollection.RemoveAll();

IAgCvAssetListElement satAsset1 = null;

// AvailableAssets returns a one dimensional array of assets
if (Array.IndexOf(assetCollection.AvailableAssets, satAssetName) != -1)
{
    // Add assets to coverageDefinition
    if (assetCollection.CanAssignAsset(satAssetName))
    {
        satAsset1 = assetCollection.Add(satAssetName);

        // Configure asset element
        satAsset1.Required = true;
    }
}

// AvailableAssets returns a one dimensional array of assets
if (Array.IndexOf(assetCollection.AvailableAssets, facAssetName) != -1)
{
    // Add assets to coverageDefinition
    if (assetCollection.CanAssignAsset(facAssetName))
    {
        assetCollection.Add(facAssetName);
    }
}
Define a coverage definition assets
[Visual Basic .NET]
Dim assetCollection As IAgCvAssetListCollection = coverageDefinition.AssetList
Dim satAssetName As String = "Satellite/sat1"
Dim facAssetName As String = "Facility/North"

' Remove asset collection if necessary
assetCollection.RemoveAll()

Dim satAsset1 As IAgCvAssetListElement = Nothing

' AvailableAssets returns a one dimensional array of assets
If Array.IndexOf(assetCollection.AvailableAssets, satAssetName) <> -1 Then
	' Add assets to coverageDefinition
	If assetCollection.CanAssignAsset(satAssetName) Then
		satAsset1 = assetCollection.Add(satAssetName)

		' Configure asset element
		satAsset1.Required = True
	End If
End If

' AvailableAssets returns a one dimensional array of assets
If Array.IndexOf(assetCollection.AvailableAssets, facAssetName) <> -1 Then
	' Add assets to coverageDefinition
	If assetCollection.CanAssignAsset(facAssetName) Then
		assetCollection.Add(facAssetName)
	End If
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.