C# Class Softing.OPCToolbox.Server.AeCategory

The AeCategory class implements an event category in the OPC AE Server. A category contains events or conditions of the same kind. They are also characterized by the fact that they can supply the same attributes to the OPC Client.
Afficher le fichier Open project: SoftingIndustrial/OPC-Classic-SDK

Protected Properties

Свойство Type Description
m_attributes Hashtable
m_conditions Hashtable
m_eventType EnumEventType
m_id uint
m_name string

Private Properties

Свойство Type Description
AeCategory System

Méthodes publiques

Méthode Description
AddAttribute ( uint anId, string aName, Type aDataType ) : int

Creates and adds a new attribute to the category hashtable.

AddConditionDefinition ( string aConditionName ) : int

adds a new condition definition object with the name provided as aConditionDefinition

AddSubConditionDefinition ( string aConditionName, string aSubconditionName ) : int

Adds a subcondition to a condition in the AeCategory.

AeCategory ( EnumEventType anEventType, uint anId, string aName ) : System

Category constructor

GetConditionDefinition ( string aConditionName ) : Softing.OPCToolbox.Server.AeConditionDefinition

retrieves the AeConditionDefinition associated to the aConditionName

GetSubConditionDefinition ( string aConditionName, string aSubconditionName ) : Softing.OPCToolbox.Server.AeSubConditionDefinition

returns the sub condition definition object for a specified condition and subcondition identifier

Méthodes protégées

Méthode Description
AddAttribute ( AeAttribute anAttribute ) : int

Adds an existing attribute object to the category internal hashtable

Private Methods

Méthode Description
AeCategory ( EnumEventType anEventType, uint anId, string aName, uint aHandle ) : System

Internal constructor. may be only called from witin the TBN asembly

Method Details

AddAttribute() protected méthode

Adds an existing attribute object to the category internal hashtable
protected AddAttribute ( AeAttribute anAttribute ) : int
anAttribute AeAttribute an already created instance of the attribute
Résultat int

AddAttribute() public méthode

Creates and adds a new attribute to the category hashtable.
public AddAttribute ( uint anId, string aName, Type aDataType ) : int
anId uint new attribute ID
aName string new attribute
aDataType Type
Résultat int

AddConditionDefinition() public méthode

adds a new condition definition object with the name provided as aConditionDefinition
public AddConditionDefinition ( string aConditionName ) : int
aConditionName string the condition name
Résultat int

AddSubConditionDefinition() public méthode

Adds a subcondition to a condition in the AeCategory.
public AddSubConditionDefinition ( string aConditionName, string aSubconditionName ) : int
aConditionName string The existing condition.
aSubconditionName string New subcondition name.
Résultat int

AeCategory() public méthode

Category constructor
public AeCategory ( EnumEventType anEventType, uint anId, string aName ) : System
anEventType EnumEventType the type of event
anId uint unique integer identifier of a category
aName string the category name
Résultat System

GetConditionDefinition() public méthode

retrieves the AeConditionDefinition associated to the aConditionName
public GetConditionDefinition ( string aConditionName ) : Softing.OPCToolbox.Server.AeConditionDefinition
aConditionName string /// the name of the condition definition to be found ///
Résultat Softing.OPCToolbox.Server.AeConditionDefinition

GetSubConditionDefinition() public méthode

returns the sub condition definition object for a specified condition and subcondition identifier
public GetSubConditionDefinition ( string aConditionName, string aSubconditionName ) : Softing.OPCToolbox.Server.AeSubConditionDefinition
aConditionName string /// The condition identifier where the needed subcondition lays ///
aSubconditionName string /// the id of the subcondition needed ///
Résultat Softing.OPCToolbox.Server.AeSubConditionDefinition

Property Details

m_attributes protected_oe property

List of attributes types
protected Hashtable m_attributes
Résultat Hashtable

m_conditions protected_oe property

list of conditions associated to this category
protected Hashtable m_conditions
Résultat Hashtable

m_eventType protected_oe property

The type of the events that will be generated by this AeCategory
protected EnumEventType m_eventType
Résultat EnumEventType

m_id protected_oe property

Unique identifier for the instantiated Category. The Category Id must be specified when object created.
protected uint m_id
Résultat uint

m_name protected_oe property

The condition's name
protected string m_name
Résultat string