SampleOperation Constructor (Guid, Double, Double, Int32, Int32, String, String)

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS.Logic.LogicOperations Namespace > SampleOperation Class > SampleOperation Constructor  >

SampleOperation Constructor (Guid, Double, Double, Int32, Int32, String, String)

Initializes a new instance of the SampleOperation class.

Namespace: BNCS.Logic.LogicOperations
Assembly:  BNCS.Logic (in BNCS.Logic.dll)

 

Syntax


public SampleOperation(
 Guid id,
 double lowerThreshold,
 double upperThreshold,
 int sampleInterval,
 int sampleDuration,
 string name,
 string description
)

Parameters

id

Type: Guid
The unique identifier for the operation.

lowerThreshold

Type: Double
The lower threshold value for the operation.

upperThreshold

Type: Double
The upper threshold value for the operation.

sampleInterval

Type: Int32
The interval, in milliseconds, at which samples are taken.

sampleDuration

Type: Int32
The total duration, in milliseconds, for which samples are taken.

name

Type: String
The name of the operation.

description

Type: String
A description of the operation.

 

Exceptions


Exception

Condition

ArgumentException

Thrown when lowerThreshold is greater than upperThreshold. Thrown when sampleInterval is less than or equal to 100. Thrown when sampleDuration is less than or equal to 0. Thrown when sampleDuration is less than ten times the sampleInterval.

 

See Also


SampleOperation Class

SampleOperation Overload

BNCS.Logic.LogicOperations Namespace