Files
scandocs/uni/masterarbeit/source/moversight/BaseMoversight.cc
2014-06-30 13:58:10 +02:00

342 lines
11 KiB
C++

#include "BaseMoversight.h"
namespace ubeeme {
namespace moversight {
/**
* @brief Constructor
*/
BaseMoversight::BaseMoversight() : printDebugAC(true), printDebugUC(true), printDebugDIS(true), printDebugNFD(true), printDebugMT(true), printDebugMS(true), printDebugTC(true), printDebugAPP(true), printDebugMOB(true), printDebugST(true), printDebugCT(true), printDebugUT(true), printDebugVISU(true), printDebugES(true), enableNFD(true), enableRecordStats(true) {
}
/**
* @brief Destructor
*/
BaseMoversight::~BaseMoversight() {
}
/**
* @brief Determines, if the printing debug information within the dispatcher is enabled, or not.
* @return True, if the printing is enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugDIS() {
return printDebugDIS;
}
/**
* @brief Enables or disables the printing of the debug information within the dispatcher.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugDIS(bool value) {
printDebugDIS = value;
}
/**
* @brief Determines, if the printing debug information within the NFD enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugNFD() {
return printDebugNFD;
}
/**
* @brief Enables or disables the printing of the debug information within the NFD.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugNFD(bool value) {
printDebugNFD = value;
}
/**
* @brief Determines, if the printing debug information within the MT enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugMT() {
return printDebugMT;
}
/**
* @brief Enables or disables the printing of the debug information within the MT.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugMT(bool value) {
printDebugMT = value;
}
/**
* @brief Determines, if the printing debug information within the MS enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugMS() {
return printDebugMS;
}
/**
* @brief Enables or disables the printing of the debug information within the MS.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugMS(bool value) {
printDebugMS = value;
}
/**
* @brief Determines, if the printing debug information within the TC enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugTC() {
return printDebugTC;
}
/**
* @brief Enables or disables the printing of the debug information within the TC.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugTC(bool value) {
printDebugTC = value;
}
/**
* @brief Determines, if the printing debug information within the MOB enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugMOB() {
return printDebugMOB;
}
/**
* @brief Enables or disables the printing of the debug information within the MOB.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugMOB(bool value) {
printDebugMOB = value;
}
/**
* @brief Determines, if the printing debug information within the ST enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugST() {
return printDebugST;
}
/**
* @brief Enables or disables the printing of the debug information within the ST.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugST(bool value) {
printDebugST = value;
}
/**
* @brief Determines, if the printing debug information within the CT enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugCT() {
return printDebugCT;
}
/**
* @brief Enables or disables the printing of the debug information within the CT.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugCT(bool value) {
printDebugCT = value;
}
/**
* @brief Determines, if the printing debug information within the UT enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugUT() {
return printDebugUT;
}
/**
* @brief Enables or disables the printing of the debug information within the UT.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugUT(bool value) {
printDebugUT = value;
}
/**
* @brief Determines, if the printing debug information within the APP enabled, or not.
* @return True, if the printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugAPP() {
return printDebugAPP;
}
/**
* @brief Enables or disables the printing of the debug information within the APP.
* @param value True, to enable the printing, false to disable the printing.
*/
void
BaseMoversight::setPrintDebugAPP(bool value) {
printDebugAPP = value;
}
/**
* @brief Determines, if printing debug information within the visualization module is enabled, or not.
* @return True, if printing is enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugVISU() {
return printDebugVISU;
}
/**
* @brief Enables or disables printing of debug information within the visualization module.
* @param value True, to enable printing, false to disable printing.
*/
void
BaseMoversight::setPrintDebugVISU(bool value) {
printDebugVISU = value;
}
/**
* @brief Determines, if printing debug information within the event system is enabled, or not.
* @return True, if printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugES() {
return printDebugES;
}
/**
* @brief Enables or disables printing of debug information within the event system.
* @param value True, to enable printing, false to disable printing.
*/
void
BaseMoversight::setPrintDebugES(bool value) {
printDebugES = value;
}
/**
* @brief Determines, if printing debug information within the UbeemeConnector is enabled, or not.
* @return True, if printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugUC() {
return printDebugUC;
}
/**
* @brief Enables or disables printing of debug information within the UbeemeConnector.
* @param value True, to enable printing, false to disable printing.
*/
void
BaseMoversight::setPrintDebugUC( bool value) {
printDebugUC = value;
}
/**
* @brief Determines, if printing debug information within the ApplicationConnector is enabled, or not.
* @return True, if printing enabled, false otherwise.
*/
bool
BaseMoversight::isPrintDebugAC() {
return printDebugAC;
}
/**
* @brief Enables or disables printing of debug information within the ApplicationConnector.
* @param value True, to enable printing, false to disable printing.
*/
void
BaseMoversight::setPrintDebugAC( bool value) {
printDebugAC = value;
}
/**
* @brief Determines, if the NFD enabled, or not.
* @return True, if the NFD enabled, false otherwise.
*/
bool
BaseMoversight::isNFDEnabled() {
return enableNFD;
}
/**
* @brief Enables or disables the NFD.
* @param value True to enable, false to disable the service.
*/
void
BaseMoversight::setNFDEnabled(bool value) {
enableNFD = value;
}
/**
* @brief Determines, if the statistic recording is enabled.
* @return True, if the recording enabled, FALSE otherwise.
*/
bool
BaseMoversight::isRecordStats() const {
return enableRecordStats;
}
/**
* @brief Enables or disables the statistic recording.
* @param enableRecordStats True for enable, FALSE otherwise.
*/
void
BaseMoversight::setRecordStats(bool enableRecordStats) {
this->enableRecordStats = enableRecordStats;
}
/**
* @brief Assignment operator.
* @param other The instance to assign.
* @return A reference of the current object.
*/
BaseMoversight & BaseMoversight::operator =(BaseMoversight const & other) {
if (this == &other) {
return *this;
}
printDebugAC = other.printDebugAC;
printDebugUC = other.printDebugUC;
printDebugDIS = other.printDebugDIS;
printDebugNFD = other.printDebugNFD;
printDebugMT = other.printDebugMT;
printDebugMS = other.printDebugMS;
printDebugTC = other.printDebugTC;
printDebugAPP = other.printDebugAPP;
printDebugMOB = other.printDebugMOB;
printDebugST = other.printDebugST;
printDebugCT = other.printDebugCT;
printDebugUT = other.printDebugUT;
printDebugVISU = other.printDebugVISU;
printDebugES = other.printDebugES;
enableNFD = other.enableNFD;
enableRecordStats = other.enableRecordStats;
return *this;
}
}
}