OpcUaCanOpen
CANopen OPC-UA server
|
Generic class type to create UaObject based on type information and create connection to hardware objects. More...
#include <UaControlDeviceGeneric.h>
Inherits BaseObjectTypeGeneric.
Inherited by AddressSpace::UaProgramItem, CanOpen::UaCanBusObject, and CanOpen::UaCanNodeObject.
Public Member Functions | |
UaControlDeviceGeneric (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, OpcUa_Int32 baTypeId, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf) | |
Constructor. More... | |
UaControlDeviceGeneric (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaObjectType *instance, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf) | |
Constructor. More... | |
UaControlDeviceGeneric (const UaString &name, const UaNodeId &newNodeId, NmBuildingAutomation *pNodeManager, UaObject *instance, ::xml_schema::type *conf, UserDevice::pUserDeviceStruct *interf) | |
Constructor. More... | |
virtual | ~UaControlDeviceGeneric (void) |
OpcUa_Byte | eventNotifier () const |
this function creates recursively the object tree based on type object More... | |
OpcUa_UInt32 | getDeviceTypeNumber () const |
Override UaObject method implementation. More... | |
virtual UaStatus | beginCall (MethodManagerCallback *pCallback, const ServiceContext &serviceContext, OpcUa_UInt32 callbackHandle, MethodHandle *pMethodHandle, const UaVariantArray &inputArguments) |
Implement MethodManager interface this function calls by ua toolkit object when client ask to execute method. More... | |
virtual UaStatus | call (UaMethod *, const UaVariantArray &, UaVariantArray &, UaStatusCodeArray &, UaDiagnosticInfos &) |
Own synchronous call implementation the can be overridden in subclasses (not use) More... | |
virtual void | addMethod (OpcUa::BaseMethod *meth) |
get common mutex More... | |
Protected Attributes | |
std::vector< OpcUa::BaseMethod * > | m_pMethod |
Private Member Functions | |
UA_DISABLE_COPY (UaControlDeviceGeneric) | |
Generic class type to create UaObject based on type information and create connection to hardware objects.
The type information of system object can be represented as a UaNode graph.
Each node connects to another node via reference. In OPC Ua several reference type is defined.
The type information are created by node manager method afterStartUp. Actually when creates the object based on type information the tree of objects is created.
Definition at line 27 of file UaControlDeviceGeneric.h.
AddressSpace::UaControlDeviceGeneric::UaControlDeviceGeneric | ( | const UaString & | name, |
const UaNodeId & | newNodeId, | ||
NmBuildingAutomation * | pNodeManager, | ||
OpcUa_Int32 | baTypeId, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf | ||
) |
Constructor.
Basic class represents the common features of can bus and can node.
name | name of ua object |
newNodeId | ua node id of created object |
pNodeManager | pointer to node manager |
baTypeId | this is function code which is used to make a link to hardware object |
conf | XML description of object created |
interf | pointer of parent hardware object. This pointer passed to interface object to create internal structure |
Definition at line 14 of file UaControlDeviceGeneric.cpp.
AddressSpace::UaControlDeviceGeneric::UaControlDeviceGeneric | ( | const UaString & | name, |
const UaNodeId & | newNodeId, | ||
NmBuildingAutomation * | pNodeManager, | ||
UaObjectType * | instance, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf | ||
) |
Constructor.
Basic class represents the common features of can bus and can node.
name | name of ua object |
newNodeId | ua node id of created object |
pNodeManager | pointer to node manager |
instance | pointer to object type |
conf | XML description of object created |
interf | pointer of parent hardware object. This pointer passed to interface object to create internal structure |
Definition at line 45 of file UaControlDeviceGeneric.cpp.
AddressSpace::UaControlDeviceGeneric::UaControlDeviceGeneric | ( | const UaString & | name, |
const UaNodeId & | newNodeId, | ||
NmBuildingAutomation * | pNodeManager, | ||
UaObject * | instance, | ||
::xml_schema::type * | conf, | ||
UserDevice::pUserDeviceStruct * | interf | ||
) |
Constructor.
Basic class represents the common features of can bus and can node.
name | name of ua object |
newNodeId | ua node id of created object |
pNodeManager | pointer to node manager |
instance | pointer to object |
conf | XML description of object created |
interf | pointer of parent hardware object. This pointer passed to interface object to create internal structure |
Definition at line 79 of file UaControlDeviceGeneric.cpp.
|
virtual |
Definition at line 107 of file UaControlDeviceGeneric.cpp.
|
inlinevirtual |
get common mutex
Definition at line 137 of file UaControlDeviceGeneric.h.
|
virtual |
Implement MethodManager interface this function calls by ua toolkit object when client ask to execute method.
pCallback | callback to return an result |
serviceContext | internal structure |
callbackHandle | handle of callback function |
pMethodHandle | method handler |
inputArguments | parameters for method |
Definition at line 129 of file UaControlDeviceGeneric.cpp.
|
inlinevirtual |
Own synchronous call implementation the can be overridden in subclasses (not use)
Definition at line 126 of file UaControlDeviceGeneric.h.
OpcUa_Byte AddressSpace::UaControlDeviceGeneric::eventNotifier | ( | ) | const |
this function creates recursively the object tree based on type object
cur | parent ua node |
instance | pointer to type object |
pNodeManager | node manager object |
conf | XML description of object created |
interf | pointer to parent hardware object |
Definition at line 119 of file UaControlDeviceGeneric.cpp.
OpcUa_UInt32 AddressSpace::UaControlDeviceGeneric::getDeviceTypeNumber | ( | ) | const |
Override UaObject method implementation.
pMethod | Ua methodGet Type Number from type nodeID |
Definition at line 124 of file UaControlDeviceGeneric.cpp.
|
private |
|
protected |
Definition at line 141 of file UaControlDeviceGeneric.h.