STK ObjectsSend comments on this topic.
IAgFmDefScalarCalculation Interface

Description

Figure of Merit using an Analysis Workbench scalar calculation component as the metric.

Public Properties

Public Property CalcScalarReference Scalar Calculation component.
Public Property ShouldUpdateAccessesUpdate Accesses computed outside Coverage.
Public Property TimeStepGets or sets the value to be used during the sampling of the dynamic definition for use in the static definition.

Interfaces

Implemented Interface
IAgFmDefCompute
IAgFmDefinition

CoClasses that Implement IAgFmDefScalarCalculation

Example

Configure figure of merit Scalar Calculation definition
[C#]
// Set the Scalar Calculation definition.
IAgFmDefScalarCalculation scalarCalculation = fom.SetScalarCalculationDefinition("CentralBody/Earth ElapsedTimeFromStart");
Configure figure of merit Scalar Calculation definition using VGT
[C#]
// Get the qualified path of a Scalar Calculation (e.g.
IAgCrdnProvider provider = stkRoot.VgtRoot.GetProvider("CentralBody/Sun");
IAgCrdnCalcScalar calcScalar = provider.CalcScalars[0];
string calcScalarQualifiedPath = (calcScalar as IAgCrdn).QualifiedPath;

// Set the Scalar Calculation definition using the qualified path
IAgFmDefScalarCalculation scalarCalculation = fom.SetScalarCalculationDefinition(calcScalarQualifiedPath);
Configure figure of merit Scalar Calculation definition
[Visual Basic .NET]
' Set the Scalar Calculation definition.
Dim scalarCalculation As IAgFmDefScalarCalculation = fom.SetScalarCalculationDefinition("CentralBody/Earth ElapsedTimeFromStart")
Configure figure of merit Scalar Calculation definition using VGT
[Visual Basic .NET]
' Get the qualified path of a Scalar Calculation (e.g.
Dim provider As IAgCrdnProvider = stkRoot.VgtRoot.GetProvider("CentralBody/Sun")
Dim calcScalar As IAgCrdnCalcScalar = provider.CalcScalars(0)
Dim calcScalarQualifiedPath As String = TryCast(calcScalar, IAgCrdn).QualifiedPath

' Set the Scalar Calculation definition using the qualified path
Dim scalarCalculation As IAgFmDefScalarCalculation = fom.SetScalarCalculationDefinition(calcScalarQualifiedPath)
© 2024 Analytical Graphics, Inc. All Rights Reserved.