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





Description

Compute options for navigation accuracy.

Object Model


Public Methods

Public Method IsComputeTypeSupported Is the type of compute option supported?
Public Method SetComputeType Method to set the type of compute option.

Public Properties

Public Property Compute Compute.
Public Property ComputeSupportedTypes Compute supported types.
Public Property ComputeType Type of compute option to be used for navigation accuracy.

Interfaces

Implemented Interface
IAgFmDefinition

Example

Configure access duration figure of merit
[C#] Copy Code
// Set figure of merit defintion to eFmAccessDuration 
fom.SetDefinitionType(AgEFmDefinitionType.eFmAccessDuration); 
 
// Get IAgFmDefCompute interface 
IAgFmDefCompute defComp = fom.Definition as IAgFmDefCompute; 
 
if (defComp.IsComputeTypeSupported(AgEFmCompute.ePercentAbove)) 

    // Set Compute type to supported compute option 
    defComp.SetComputeType(AgEFmCompute.ePercentAbove); 
 
    // Get compute option compute interface 
    IAgFmDefDataPercentLevel fomData = defComp.Compute as IAgFmDefDataPercentLevel; 
    fomData.PercentLevel = .25

 

Configure coverage time figure of merit
[C#] Copy Code
// Set figure of merit defintion to eFmCoverageTime 
fom.SetDefinitionType(AgEFmDefinitionType.eFmCoverageTime); 
 
// Get IAgFmDefCompute interface 
IAgFmDefCompute defComp = fom.Definition as IAgFmDefCompute; 
 
if (defComp.IsComputeTypeSupported(AgEFmCompute.eTotalTimeAbove)) 

    // Set Compute type to supported compute option 
    defComp.SetComputeType(AgEFmCompute.eTotalTimeAbove); 
 
    // Get compute option compute interface 
    IAgFmDefDataMinAssets fomData = defComp.Compute as IAgFmDefDataMinAssets; 
    fomData.MinAssets = 15

 

Configure access duration figure of merit
[Visual Basic .NET] Copy Code
' Set figure of merit defintion to eFmAccessDuration
fom.SetDefinitionType(AgEFmDefinitionType.eFmAccessDuration)

' Get IAgFmDefCompute interface
Dim defComp As IAgFmDefCompute = TryCast(fom.Definition, IAgFmDefCompute)

If defComp.IsComputeTypeSupported(AgEFmCompute.ePercentAbove) Then
    ' Set Compute type to supported compute option
    defComp.SetComputeType(AgEFmCompute.ePercentAbove)

    ' Get compute option compute interface
    Dim fomData As IAgFmDefDataPercentLevel = TryCast(defComp.Compute, IAgFmDefDataPercentLevel)
    fomData.PercentLevel = 0.25
End If

Configure coverage time figure of merit
[Visual Basic .NET] Copy Code
' Set figure of merit defintion to eFmCoverageTime
fom.SetDefinitionType(AgEFmDefinitionType.eFmCoverageTime)

' Get IAgFmDefCompute interface
Dim defComp As IAgFmDefCompute = TryCast(fom.Definition, IAgFmDefCompute)

If defComp.IsComputeTypeSupported(AgEFmCompute.eTotalTimeAbove) Then
    ' Set Compute type to supported compute option
    defComp.SetComputeType(AgEFmCompute.eTotalTimeAbove)

    ' Get compute option compute interface
    Dim fomData As IAgFmDefDataMinAssets = TryCast(defComp.Compute, IAgFmDefDataMinAssets)
    fomData.MinAssets = 15
End If

CoClasses that Implement IAgFmDefCompute

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1