AGI STK Objects 11 Send comments on this topic.
IAgCvAssetListElement Interface





Description

Coverage asset.

Object Model


Public Methods

Public Method ContainsSubAssets Returns whether or not this element has sub assets.

Public Properties

Public Property AssetStatus The current status of the coverage asset (active or not).
Public Property Grouping Opt whether to consider the members of a constellation as a group or as separate entities.
Public Property ObjectName Name of the object assigned as a coverage asset.
Public Property Required Flag sets whether Asset is required for all valid access intervals
Public Property SubAssetList Returns the sub assets for this asset.
Public Property UseConstConstraints Flag determines whether constellation constraints are considered

Example

Define a coverage definition assets
[C#] Copy Code
IAgCvAssetListCollection assetCollection = coverageDefinition.AssetList; 
string assetName = "Satellite/sat1"
string subAssetName = "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, assetName) != -1

    // Add assets to coverageDefintion 
    if (assetCollection.CanAssignAsset(assetName)) 
    { 
        satAsset1 = assetCollection.Add(assetName); 
 
        // Configure asset element 
        satAsset1.Required = true
        satAsset1.Grouping = AgECvAssetGrouping.eGrouped; 
    } 
 
    // Add subassets to assets 
    if (satAsset1.ContainsSubAssets()) 
    { 
        IAgCvAssetListCollection subAssetCollection = satAsset1.SubAssetList; 
        if (subAssetCollection.CanAssignAsset(subAssetName)) 
        { 
            assetCollection.Add(subAssetName); 
        } 
    } 

 

Define a coverage definition assets
[Visual Basic .NET] Copy Code
Dim assetCollection As IAgCvAssetListCollection = coverageDefinition.AssetList
Dim assetName As String = "Satellite/sat1"
Dim subAssetName 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, assetName) <> -1 Then
    ' Add assets to coverageDefintion
    If assetCollection.CanAssignAsset(assetName) Then
        satAsset1 = assetCollection.Add(assetName)

        ' Configure asset element
        satAsset1.Required = True
        satAsset1.Grouping = AgECvAssetGrouping.eGrouped
    End If

    ' Add subassets to assets
    If satAsset1.ContainsSubAssets() Then
        Dim subAssetCollection As IAgCvAssetListCollection = satAsset1.SubAssetList
        If subAssetCollection.CanAssignAsset(subAssetName) Then
            assetCollection.Add(subAssetName)
        End If
    End If
End If

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1