STK ObjectsSend comments on this topic.
IAgFmDefCompute Interface

Description

Compute options for navigation accuracy.

Public Methods

Public Method IsComputeTypeSupportedIs the type of compute option supported?
Public Method SetComputeTypeMethod to set the type of compute option.

Public Properties

Public Property ComputeCompute.
Public Property ComputeSupportedTypesCompute supported types.
Public Property ComputeTypeType of compute option to be used for navigation accuracy.

Interfaces

Implemented Interface
IAgFmDefinition

CoClasses that Implement IAgFmDefCompute

Example

Configure access duration figure of merit
[C#]
// Set figure of merit definition 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#]
// Set figure of merit definition 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]
' Set figure of merit definition 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]
' Set figure of merit definition 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
© 2024 Analytical Graphics, Inc. All Rights Reserved.