Description
Figure of Merit properties.
Object Model
Public Methods
Public Properties
Example
Create a figure of
merit on a coverage definition
[C#] |
Copy Code
|
IAgStkObject covdefObject = covdef as IAgStkObject;
IAgFigureOfMerit fom = covdefObject.Children.New(AgESTKObjectType.eFigureOfMerit, "MyFigureOfMerit") as IAgFigureOfMerit;
|
|
Configure access
duration figure of merit
[C#] |
Copy Code
|
fom.SetDefinitionType(AgEFmDefinitionType.eFmAccessDuration);
IAgFmDefCompute defComp = fom.Definition as IAgFmDefCompute;
if (defComp.IsComputeTypeSupported(AgEFmCompute.ePercentAbove))
{
defComp.SetComputeType(AgEFmCompute.ePercentAbove);
IAgFmDefDataPercentLevel fomData = defComp.Compute as IAgFmDefDataPercentLevel;
fomData.PercentLevel = .25;
}
|
|
Configure coverage
time figure of merit
[C#] |
Copy Code
|
fom.SetDefinitionType(AgEFmDefinitionType.eFmCoverageTime);
IAgFmDefCompute defComp = fom.Definition as IAgFmDefCompute;
if (defComp.IsComputeTypeSupported(AgEFmCompute.eTotalTimeAbove))
{
defComp.SetComputeType(AgEFmCompute.eTotalTimeAbove);
IAgFmDefDataMinAssets fomData = defComp.Compute as IAgFmDefDataMinAssets;
fomData.MinAssets = 15;
}
|
|
Set the figure of
merit definition to access constraint by name
[C#] |
Copy Code
|
IAgFmDefAccessConstraint defAccessCnstr = fom.SetAccessConstraintDefinitionName("AzimuthRate");
defAccessCnstr.SetComputeType(AgEFmCompute.eMaximum);
defAccessCnstr.AcrossAssets = AgEFmAcrossAssets.eFmMinimum;
defAccessCnstr.TimeStep = 60.0;
|
|
Configure figure of
merit definition altitude access constraint
[C#] |
Copy Code
|
fom.SetAccessConstraintDefinition(AgEFmConstraintName.eFmAltitude);
IAgFmDefAccessConstraint defAccessCnstr = fom.Definition as IAgFmDefAccessConstraint;
defAccessCnstr.SetComputeType(AgEFmCompute.eMaximum);
defAccessCnstr.AcrossAssets = AgEFmAcrossAssets.eFmMinimum;
defAccessCnstr.TimeStep = 60.0;
|
|
Create a figure of
merit on a coverage definition
[Visual Basic .NET] |
Copy Code
|
Dim covdefObject As IAgStkObject = TryCast(covdef,
IAgStkObject)
Dim fom As IAgFigureOfMerit =
TryCast(covdefObject.Children.[New](AgESTKObjectType.eFigureOfMerit,
"MyFigureOfMerit"),
IAgFigureOfMerit)
|
|
Configure access
duration figure of merit
[Visual Basic .NET] |
Copy Code
|
fom.SetDefinitionType(AgEFmDefinitionType.eFmAccessDuration)
Dim defComp As IAgFmDefCompute = TryCast(fom.Definition,
IAgFmDefCompute)
If
defComp.IsComputeTypeSupported(AgEFmCompute.ePercentAbove)
Then
defComp.SetComputeType(AgEFmCompute.ePercentAbove)
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
|
fom.SetDefinitionType(AgEFmDefinitionType.eFmCoverageTime)
Dim defComp As IAgFmDefCompute = TryCast(fom.Definition,
IAgFmDefCompute)
If
defComp.IsComputeTypeSupported(AgEFmCompute.eTotalTimeAbove)
Then
defComp.SetComputeType(AgEFmCompute.eTotalTimeAbove)
Dim fomData
As IAgFmDefDataMinAssets =
TryCast(defComp.Compute, IAgFmDefDataMinAssets)
fomData.MinAssets = 15
End If
|
|
Set the figure of
merit definition to access constraint by name
[Visual Basic .NET] |
Copy Code
|
Dim defAccessCnstr As
IAgFmDefAccessConstraint =
fom.SetAccessConstraintDefinitionName("AzimuthRate")
defAccessCnstr.SetComputeType(AgEFmCompute.eMaximum)
defAccessCnstr.AcrossAssets = AgEFmAcrossAssets.eFmMinimum
defAccessCnstr.TimeStep = 60
|
|
Configure figure of
merit definition altitude access constraint
[Visual Basic .NET] |
Copy Code
|
fom.SetAccessConstraintDefinition(AgEFmConstraintName.eFmAltitude)
Dim defAccessCnstr As IAgFmDefAccessConstraint =
TryCast(fom.Definition, IAgFmDefAccessConstraint)
defAccessCnstr.SetComputeType(AgEFmCompute.eMaximum)
defAccessCnstr.AcrossAssets = AgEFmAcrossAssets.eFmMinimum
defAccessCnstr.TimeStep = 60
|
|
Create a new
Figure of Merit of type Access Duration
[MATLAB] |
Copy Code
|
% IAgCoverageDefinition coverage: Coverage object
fom = coverage.Children.New('eFigureOfMerit', 'AccessDuration');
fom.SetDefinitionType('eFmAccessDuration');
fom.Definition.SetComputeType('eMaximum');
|
|
Configure the
Contours of the FOM and define a color ramp
[MATLAB] |
Copy Code
|
% IAgCoverageDefinition coverage: Coverage object
% IAgFigureOfMerit fom: Figure Of Merit object
satisfaction = coverage.Graphics.Static;
satisfaction.IsRegionVisible = false;
Animation = fom.VO.Animation;
Animation.IsVisible = false;
VOcontours = fom.VO.Static;
VOcontours.IsVisible = true;
contours = fom.Graphics.Static.Contours;
contours.IsVisible = true;
contours.ContourType = 'eSmoothFill';
contours.ColorMethod = 'eColorRamp';
contours.LevelAttributes.RemoveAll;
contours.LevelAttributes.AddLevelRange(590, 660, 10); %Start, Start, Step
contours.RampColor.StartColor = 255; %Red
contours.RampColor.EndColor = 16711680; %Blue
|
|
CoClasses that Implement
IAgFigureOfMerit