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





Description

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

Public Properties

Public Property CalcScalar Reference Scalar Calculation component.
Public Property ShouldUpdateAccesses Update Accesses computed outside Coverage.
Public Property TimeStep The value to be used during the sampling of the dynamic definition for use in the static definition.

Interfaces

Implemented Interface
IAgFmDefCompute

Example

Configure figure of merit Scalar Calculation definition
[C#] Copy Code
// Set the Scalar Calculation definition. 
IAgFmDefScalarCalculation scalarCalculation = fom.SetScalarCalculationDefinition("CentralBody/Earth ElapsedTimeFromStart"); 
 

Configure figure of merit Scalar Calculation definition using VGT
[C#] Copy Code
// 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] Copy Code
' 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] Copy Code
' 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)

CoClasses that Implement IAgFmDefScalarCalculation

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1