Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFAnalysisRuleState Class

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFAnalysisRuleState Class
A reference implementation of IAFAnalysisRuleState for passing target-specific state to an AFAnalysisRule.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.AnalysisAFAnalysisRuleState

Namespace:  OSIsoft.AF.Analysis
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public sealed class AFAnalysisRuleState : IAFAnalysisRuleState
Public NotInheritable Class AFAnalysisRuleState
	Implements IAFAnalysisRuleState

Dim instance As AFAnalysisRuleState
public ref class AFAnalysisRuleState sealed : IAFAnalysisRuleState
[<SealedAttribute>]
type AFAnalysisRuleState =  
    class
        interface IAFAnalysisRuleState
    end

The AFAnalysisRuleState type exposes the following members.

Constructors

  NameDescription
Public method
AFAnalysisRuleState(AFAnalysisRule)
Construct the state object from the AFAnalysisRule.
Public method
AFAnalysisRuleState(AFAnalysisRuleConfiguration)
Construct the state object from an AFAnalysisRuleConfiguration that has been initialized.

Properties

  NameDescription
Public property
ChildAnalysisRuleState
A list of the runtime state objects for the child analysis rules to use in configuring the specified analysis rule.
Public property
EvaluationError
An exception holding information about an error that occurred during evaluation.
Public property
ExecutionTime
The AFTime to execute the AFAnalysisRule at.
Public property
Inputs
A collection of input data for use in evaluating an AFAnalysisRule.
Public property
Outputs
A collection of output data where the result of an AFAnalysisRule evaluation should be written.
Public property
Status
The status of the AFAnalysisRule.

Methods

  NameDescription
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
Reset
Clear output values and error states. Call to put the state object in a clean state before evaluating.
Public method
SetExecutionTimeAndPopulateInputs
Populates input data with values obtained at the specified execution time.
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

TitleResults for “How to create a CRG?”Also Available in