TwiceAsNice
2019-02-18
|
This is the base class of the MPIA in-house electronic modules with the core commands. More...
#include <Module.h>
Public Member Functions | |
MPIACoreModule (std::string _name, Nice::JointPtr _config, Basda::MPIACoreProtocolPtr _protocol) | |
Constructor. More... | |
~MPIACoreModule () | |
Destructor. More... | |
void | open () |
void | close () |
bool | configParameterUploadRequired () |
MPIACoreModule (std::string _name, Nice::JointPtr _config, Basda::MPIACoreProtocolPtr _protocol) | |
Constructor. More... | |
~MPIACoreModule () | |
Destructor. More... | |
void | open () |
void | close () |
bool | configParameterUploadRequired () |
Additional Inherited Members | |
![]() | |
MPIACore (std::string _name, Nice::JointPtr _config, const MPIACoreProtocolPtr _protocol) | |
~MPIACore () | |
template<typename Type > | |
Type | checkAttribute (const std::string &_node, const std::string &_attributeName, const Type &_default) |
template<typename RT > | |
std::vector< RT > | getVector (const std::string &_str) |
This is a generic method to convert a data string to a vector. More... | |
std::string | name () |
MPIACore (std::string _name, Nice::JointPtr _config, const MPIACoreProtocolPtr _protocol) | |
~MPIACore () | |
template<typename Type > | |
Type | checkAttribute (const std::string &_node, const std::string &_attributeName, const Type &_default) |
template<typename RT > | |
std::vector< RT > | getVector (const std::string &_str) |
This is a generic method to convert a data string to a vector. More... | |
std::string | name () |
![]() | |
template<typename RT > | |
static RT | getValue (const std::string &_str) |
This is a generic method to convert a data string to a number. More... | |
template<typename RT > | |
static RT | getValue (const std::string &_str) |
This is a generic method to convert a data string to a number. More... | |
![]() | |
std::string | m_name |
std::string | m_address |
member of the connection address More... | |
unsigned int | m_cardNo |
member of the card number More... | |
unsigned int | m_moduleNo |
member of the module number More... | |
HandlerPtr | m_handler |
MPIACoreProtocolPtr | m_protocol |
member of the protocol to communicate with the MPIA in-house electronic. More... | |
Nice::JointPtr | m_config |
member of the root of the configuration tree More... | |
bool | m_warning |
This is the base class of the MPIA in-house electronic modules with the core commands.
A MPIA in-house electronic card is the backplate for the on-board modules. A module is the smallest unit of the MPIA in-house electronic. The module can be either an active element like a motor or a passive element like a temperature sensor. This class represents the generic MPIA in-house electronic module with the functionalities that are supported by all MPIA in-house electronic modules. It has to extend with the specific MPIA in-house electronic module functionalities.
This class reserve the module at the MPIA in-house electronic and ensure a serial command flow.
Basda::MPIACoreModule::MPIACoreModule | ( | std::string | _name, |
Nice::JointPtr | _config, | ||
Basda::MPIACoreProtocolPtr | _protocol | ||
) |
Constructor.
This constructor register itself at the protocol and reserve the MPIA in-house electronic module.
_config | the root of the configuration tree |
_eventHandlePtr | the smart pointer to the event handler object |
Basda::MPIACoreModule::~MPIACoreModule | ( | ) |
Destructor.
Basda::MPIACoreModule::MPIACoreModule | ( | std::string | _name, |
Nice::JointPtr | _config, | ||
Basda::MPIACoreProtocolPtr | _protocol | ||
) |
Constructor.
This constructor register itself at the protocol and reserve the MPIA in-house electronic module.
_config | the root of the configuration tree |
_eventHandlePtr | the smart pointer to the event handler object |
Basda::MPIACoreModule::~MPIACoreModule | ( | ) |
Destructor.
void Basda::MPIACoreModule::close | ( | ) |
void Basda::MPIACoreModule::close | ( | ) |
bool Basda::MPIACoreModule::configParameterUploadRequired | ( | ) |
bool Basda::MPIACoreModule::configParameterUploadRequired | ( | ) |
void Basda::MPIACoreModule::open | ( | ) |
void Basda::MPIACoreModule::open | ( | ) |