OpcUa::AlarmConditionTypeBase Class Reference

#include <opcua_alarmconditiontypebase.h>

Inheritance diagram for OpcUa::AlarmConditionTypeBase:
Collaboration diagram for OpcUa::AlarmConditionTypeBase:

List of all members.

Public Member Functions

 AlarmConditionTypeBase (const UaNodeId &nodeId, UaObject *pInstanceDeclarationObject, NodeManagerConfig *pNodeConfig, const UaNodeId &sourceNode, const UaString &sourceName, UaMutexRefCounted *pSharedMutex=NULL)
 AlarmConditionTypeBase (const UaNodeId &nodeId, const UaString &name, OpcUa_UInt16 browseNameNameSpaceIndex, NodeManagerConfig *pNodeConfig, const UaNodeId &sourceNode, const UaString &sourceName, UaMutexRefCounted *pSharedMutex=NULL)
virtual UaNodeId typeDefinitionId () const
virtual void getFieldData (OpcUa_UInt32 index, Session *pSession, OpcUa_Variant &data)
void clearFieldData ()
UaNodeId createBranch ()
virtual UaStatus beginCall (MethodManagerCallback *pCallback, const ServiceContext &serviceContext, OpcUa_UInt32 callbackHandle, MethodHandle *pMethodHandle, const UaVariantArray &inputArguments)
virtual UaStatus triggerEvent (const UaDateTime &time, const UaDateTime &receiveTime, const UaByteString &eventId)
virtual void getAlarmConditionTypeOptionalFieldData (OpcUa_UInt32 index, Session *pSession, OpcUa_Variant &data)

Static Public Member Functions

static void createTypes ()
static void clearStaticMembers ()
static void registerEventFields ()
static OpcUa_UInt32 registerOptionalEventFields (const UaString &fieldName)

Protected Member Functions

virtual ~AlarmConditionTypeBase ()

Detailed Description

Generated base class for a AlarmConditionType.

This class contains the auto generated code for the object type AlarmConditionType representing an OPC UA condition type. This class is used to create the condition type and to create and represent the condition object in the server address space. It provides also the UaEventData interface for the access to event data containing the current state of the condition for events sent to the client.


Constructor & Destructor Documentation

OpcUa::AlarmConditionTypeBase::~AlarmConditionTypeBase (  ) [protected, virtual]

Destroys the AlarmConditionType object

OpcUa::AlarmConditionTypeBase::AlarmConditionTypeBase ( const UaNodeId nodeId,
UaObject pInstanceDeclarationObject,
NodeManagerConfig pNodeConfig,
const UaNodeId sourceNode,
const UaString sourceName,
UaMutexRefCounted pSharedMutex = NULL 
)

Constructs an instance of the AlarmConditionType condition type using an instance declaration node as base

OpcUa::AlarmConditionTypeBase::AlarmConditionTypeBase ( const UaNodeId nodeId,
const UaString name,
OpcUa_UInt16  browseNameNameSpaceIndex,
NodeManagerConfig pNodeConfig,
const UaNodeId sourceNode,
const UaString sourceName,
UaMutexRefCounted pSharedMutex = NULL 
)

Constructs an instance of the AlarmConditionType condition type


Member Function Documentation

void OpcUa::AlarmConditionTypeBase::getAlarmConditionTypeOptionalFieldData ( OpcUa_UInt32  index,
Session pSession,
OpcUa_Variant &  data 
) [virtual]

Get the field value for the passed index for optional fields of the AlarmConditionType. This function must be overwritten by derived classes to provide the optional fields registred with AlarmConditionTypeData::registerOptionalEventFields

Parameters:
indexThe index of the selected field.
pSessionThe session context for the method call.
dataThe data for the selected field.

Reimplemented in OpcUa::AlarmConditionType, OpcUa::ExclusiveLimitAlarmType, and OpcUa::NonExclusiveLimitAlarmType.

void OpcUa::AlarmConditionTypeBase::getFieldData ( OpcUa_UInt32  index,
Session pSession,
OpcUa_Variant &  data 
) [virtual]
UaStatus OpcUa::AlarmConditionTypeBase::triggerEvent ( const UaDateTime time,
const UaDateTime receiveTime,
const UaByteString userEventId 
) [virtual]

Send event with current event field data to the subscribed clients After setting the changed states of the event this method is used to trigger the event notification that contains the snapshot of the new state of the condition

Parameters:
[in]timeTime provides the time the Event occurred. This value is set as close to the event generator as possible. It often comes from the underlying system or device.
[in]receiveTimeReceiveTime provides the time the OPC UA Server received the Event from the underlying device or another Server.
[in]userEventIdThe server is responsible for generating a unique EventId for every event sent to the client. The SDK uses this parameter userEventId as part of the EventId but adds a unique part. The EventId is provided by the client in calls back to the server like in an alarm acknowledgement. The user specific part can be extracted from the EventId provided by the client by using EventManagerBase::getUserEventId()

Reimplemented from OpcUa::AcknowledgeableConditionTypeBase.

Reimplemented in OpcUa::DiscreteAlarmTypeBase, OpcUa::ExclusiveDeviationAlarmTypeBase, OpcUa::ExclusiveLevelAlarmTypeBase, OpcUa::ExclusiveLimitAlarmTypeBase, OpcUa::ExclusiveRateOfChangeAlarmTypeBase, OpcUa::LimitAlarmTypeBase, OpcUa::NonExclusiveDeviationAlarmTypeBase, OpcUa::NonExclusiveLevelAlarmTypeBase, OpcUa::NonExclusiveLimitAlarmTypeBase, OpcUa::NonExclusiveRateOfChangeAlarmTypeBase, OpcUa::OffNormalAlarmTypeBase, and OpcUa::TripAlarmTypeBase.


The documentation for this class was generated from the following files:
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/opcua_alarmconditiontypebase.h
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/opcua_alarmconditiontypebase.cpp