ChimeraTK-ControlSystemAdapter-OPCUAAdapter  04.00.01
ChimeraTK::csa_opcua_adapter Class Reference

This class provide the two parts of the OPCUA Adapter. First of all the OPCUA server starts with a port number defined in config-file (recommended 16664), following the mapping process start. For this, the ProcessVariable from ControlSystemPVManager will be mapped to the OPCUA Model. During the mapping process also all <additionalNodes> will be mapped in OPC UA Model. More...

#include <csa_opcua_adapter.h>

Public Member Functions

 csa_opcua_adapter (boost::shared_ptr< ControlSystemPVManager > csManager, string configFile)
 Constructor for ControlSystemAdapter-OPC-UA-Adapter. More...
 
 ~csa_opcua_adapter ()
 Destructor to stop the running thread, hence it stops the OPC UA server. More...
 
boost::shared_ptr< ControlSystemPVManager > const & getControlSystemManager () const
 Return the ControlsystemPVManager of the class. More...
 
std::shared_ptr< ua_uaadaptergetUAAdapter ()
 Return the uaadapter, hence the OPC UA server. More...
 
const set< string > & getUnusedVariables () const
 
void start ()
 Start all objects in single threads for this case only the opc ua server. More...
 
void stop ()
 Stop all objects in single threads for this case only the opc ua server. More...
 
bool isRunning ()
 Checks if the opcua server is still running and return the suitable bool value. More...
 
const UA_Logger * getLogger ()
 Get the adapter logger. More...
 

Detailed Description

This class provide the two parts of the OPCUA Adapter. First of all the OPCUA server starts with a port number defined in config-file (recommended 16664), following the mapping process start. For this, the ProcessVariable from ControlSystemPVManager will be mapped to the OPCUA Model. During the mapping process also all <additionalNodes> will be mapped in OPC UA Model.

Author
Chris Iatrou
Julian Rahm
Date
22.11.2016

Definition at line 44 of file csa_opcua_adapter.h.

Constructor & Destructor Documentation

◆ csa_opcua_adapter()

ChimeraTK::csa_opcua_adapter::csa_opcua_adapter ( boost::shared_ptr< ControlSystemPVManager >  csManager,
string  configFile 
)

Constructor for ControlSystemAdapter-OPC-UA-Adapter.

Parameters
csManagerProvide the hole PVManager from control-system-adapter to map all processvariable to the OPC UA-Model
configFileDefine the path to the mapping-file with config and mapping information

Definition at line 35 of file csa_opcua_adapter.cpp.

+ Here is the call graph for this function:

◆ ~csa_opcua_adapter()

ChimeraTK::csa_opcua_adapter::~csa_opcua_adapter ( )

Destructor to stop the running thread, hence it stops the OPC UA server.

Definition at line 168 of file csa_opcua_adapter.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getControlSystemManager()

boost::shared_ptr< ControlSystemPVManager > const & ChimeraTK::csa_opcua_adapter::getControlSystemManager ( ) const

Return the ControlsystemPVManager of the class.

Returns
Returns a ControlSystemPVManager

Definition at line 172 of file csa_opcua_adapter.cpp.

+ Here is the caller graph for this function:

◆ getLogger()

const UA_Logger * ChimeraTK::csa_opcua_adapter::getLogger ( )

Get the adapter logger.

Returns
The pointer of the logger used in the adapter.

Definition at line 233 of file csa_opcua_adapter.cpp.

+ Here is the caller graph for this function:

◆ getUAAdapter()

std::shared_ptr< ua_uaadapter > ChimeraTK::csa_opcua_adapter::getUAAdapter ( )

Return the uaadapter, hence the OPC UA server.

Returns
Return the ua_uaadapter

Definition at line 176 of file csa_opcua_adapter.cpp.

+ Here is the caller graph for this function:

◆ getUnusedVariables()

const set< string > & ChimeraTK::csa_opcua_adapter::getUnusedVariables ( ) const

Definition at line 229 of file csa_opcua_adapter.cpp.

◆ isRunning()

bool ChimeraTK::csa_opcua_adapter::isRunning ( )

Checks if the opcua server is still running and return the suitable bool value.

Returns
The current running state in form of true/false

Definition at line 226 of file csa_opcua_adapter.cpp.

+ Here is the caller graph for this function:

◆ start()

void ChimeraTK::csa_opcua_adapter::start ( )

Start all objects in single threads for this case only the opc ua server.

Definition at line 180 of file csa_opcua_adapter.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stop()

void ChimeraTK::csa_opcua_adapter::stop ( )

Stop all objects in single threads for this case only the opc ua server.

Definition at line 216 of file csa_opcua_adapter.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: