C# Class Quickstarts.TestData

Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
AddDataSet ( ProcessedDataSetType dataset ) : void

Adds a new dataset.

FindBestMatch ( string rawDataSetName, ProcessedDataSetType target ) : ProcessedDataSetType

Finds the best match for the target.

FindProcessedDataSet ( string dataSetName ) : ProcessedDataSetType

Finds the processed dataset with the specified name.

FindRawDataSet ( string dataSetName ) : RawDataSetType

Finds the raw dataset with the specified name.

FormatQuality ( Opc.Ua.StatusCode statusCode ) : string

Formats a StatusCide as string for serilization or display.

FormatTimestamp ( System.DateTime timestamp ) : string

Formats a timestamp as string for serilization or display.

FormatValue ( Variant value ) : string

Formats a value as string for serilization or display.

GetName ( ProcessedDataSetType dataset ) : string

Constructs a name for the processed dataset.

GetProcessedDataSets ( string rawDataSetName ) : Quickstarts.ProcessedDataSetType[]

Finds the processed dataset for the specified raw data set.

GetProcessedValues ( ProcessedDataSetType dataset ) : DataValue>.SortedDictionary

Returns the values in the specified processed dataset.

GetRawValues ( string dataSetName ) : DataValue>.SortedDictionary

Returns the values in the specified raw dataset.

RemoveDataSet ( ProcessedDataSetType dataset ) : void

Removes a dataset.

SetProcessedValues ( ProcessedDataSetType dataset, IList newValues ) : void

Sets the values for the specified processed dataset.

UpdateProcessedValues ( ProcessedDataSetType dataset ) : void

Adds or updates a values in the specified processed dataset.

ValidateQuality ( object formattedValue ) : Opc.Ua.StatusCode

Validates the formatted HA quality code and returns a StatusCode.

ValidateTimestamp ( object formattedValue ) : System.DateTime

Validates the formatted HA value and returns a Variant.

ValidateValue ( object formattedValue ) : Variant

Validates the formatted HA value and returns a Variant.

Private Methods

Méthode Description
ToDataValues ( ValueType values ) : DataValue>.SortedDictionary

Converts a list of test values to a list of DataValues.

ToValueTypes ( DataValue>.SortedDictionary values ) : ValueType[]

Converts a list of DataValues to a list of test values.

Method Details

AddDataSet() public méthode

Adds a new dataset.
public AddDataSet ( ProcessedDataSetType dataset ) : void
dataset ProcessedDataSetType
Résultat void

FindBestMatch() public méthode

Finds the best match for the target.
public FindBestMatch ( string rawDataSetName, ProcessedDataSetType target ) : ProcessedDataSetType
rawDataSetName string
target ProcessedDataSetType
Résultat ProcessedDataSetType

FindProcessedDataSet() public méthode

Finds the processed dataset with the specified name.
public FindProcessedDataSet ( string dataSetName ) : ProcessedDataSetType
dataSetName string
Résultat ProcessedDataSetType

FindRawDataSet() public méthode

Finds the raw dataset with the specified name.
public FindRawDataSet ( string dataSetName ) : RawDataSetType
dataSetName string
Résultat RawDataSetType

FormatQuality() public static méthode

Formats a StatusCide as string for serilization or display.
public static FormatQuality ( Opc.Ua.StatusCode statusCode ) : string
statusCode Opc.Ua.StatusCode
Résultat string

FormatTimestamp() public static méthode

Formats a timestamp as string for serilization or display.
public static FormatTimestamp ( System.DateTime timestamp ) : string
timestamp System.DateTime
Résultat string

FormatValue() public static méthode

Formats a value as string for serilization or display.
public static FormatValue ( Variant value ) : string
value Variant
Résultat string

GetName() public static méthode

Constructs a name for the processed dataset.
public static GetName ( ProcessedDataSetType dataset ) : string
dataset ProcessedDataSetType
Résultat string

GetProcessedDataSets() public méthode

Finds the processed dataset for the specified raw data set.
public GetProcessedDataSets ( string rawDataSetName ) : Quickstarts.ProcessedDataSetType[]
rawDataSetName string
Résultat Quickstarts.ProcessedDataSetType[]

GetProcessedValues() public méthode

Returns the values in the specified processed dataset.
public GetProcessedValues ( ProcessedDataSetType dataset ) : DataValue>.SortedDictionary
dataset ProcessedDataSetType
Résultat DataValue>.SortedDictionary

GetRawValues() public méthode

Returns the values in the specified raw dataset.
public GetRawValues ( string dataSetName ) : DataValue>.SortedDictionary
dataSetName string
Résultat DataValue>.SortedDictionary

RemoveDataSet() public méthode

Removes a dataset.
public RemoveDataSet ( ProcessedDataSetType dataset ) : void
dataset ProcessedDataSetType
Résultat void

SetProcessedValues() public méthode

Sets the values for the specified processed dataset.
public SetProcessedValues ( ProcessedDataSetType dataset, IList newValues ) : void
dataset ProcessedDataSetType
newValues IList
Résultat void

UpdateProcessedValues() public méthode

Adds or updates a values in the specified processed dataset.
public UpdateProcessedValues ( ProcessedDataSetType dataset ) : void
dataset ProcessedDataSetType
Résultat void

ValidateQuality() public static méthode

Validates the formatted HA quality code and returns a StatusCode.
public static ValidateQuality ( object formattedValue ) : Opc.Ua.StatusCode
formattedValue object
Résultat Opc.Ua.StatusCode

ValidateTimestamp() public static méthode

Validates the formatted HA value and returns a Variant.
public static ValidateTimestamp ( object formattedValue ) : System.DateTime
formattedValue object
Résultat System.DateTime

ValidateValue() public static méthode

Validates the formatted HA value and returns a Variant.
public static ValidateValue ( object formattedValue ) : Variant
formattedValue object
Résultat Variant