AGI STK Objects 11 Send comments on this topic.
SetAccessConstraintDefinitionName Method (IAgObjectCoverageFOM)
See Also  Example
ConstraintName





Description

Set the access constraint definition by name.

Syntax

[Visual Basic .NET]
Public Function SetAccessConstraintDefinitionName( _
   ByVal ConstraintName As String _
) As IAgFmDefAccessConstraint

[C#]
public IAgFmDefAccessConstraint SetAccessConstraintDefinitionName(
string ConstraintName
);

[Managed C++]
public: IAgFmDefAccessConstraint^ SetAccessConstraintDefinitionName(
String __gc ^ ConstraintName
);

[Java]
public IAgFmDefAccessConstraint setAccessConstraintDefinitionName(
String ConstraintName
);

[Unmanaged C++]
public: HRESULT SetAccessConstraintDefinitionName(
BSTR ConstraintName,
IAgFmDefAccessConstraint ** ReturnValue
);

Parameters

ConstraintName

Example

Set the figure of merit definition to access constraint by name
[C#] Copy Code
IAgFmDefAccessConstraint defAccessCnstr = fom.SetAccessConstraintDefinitionName("AzimuthRate"); 
 
// Confiure access constraint properties 
defAccessCnstr.SetComputeType(AgEFmCompute.eMaximum); 
defAccessCnstr.AcrossAssets = AgEFmAcrossAssets.eFmMinimum; 
defAccessCnstr.TimeStep = 60.0
 

Set the figure of merit definition to access constraint by name
[Visual Basic .NET] Copy Code
Dim defAccessCnstr As IAgFmDefAccessConstraint = fom.SetAccessConstraintDefinitionName("AzimuthRate")

' Confiure access constraint properties
defAccessCnstr.SetComputeType(AgEFmCompute.eMaximum)
defAccessCnstr.AcrossAssets = AgEFmAcrossAssets.eFmMinimum
defAccessCnstr.TimeStep = 60

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1