TxtSmartFactoryLib  0.8.0
Smart Factory Library
ft::TxtSimulationModel Class Referenceabstract

#include <TxtSimulationModel.h>

Inheritance diagram for ft::TxtSimulationModel:
Collaboration diagram for ft::TxtSimulationModel:

Public Member Functions

 TxtSimulationModel (TxtTransfer *pT, ft::TxtMqttFactoryClient *mqttclient)
 
virtual ~TxtSimulationModel ()
 
TxtSimulationModel_status_t getStatus ()
 
bool isActive ()
 
bool startThread ()
 
bool stopThread ()
 
bool isThreadRunning ()
 
- Public Member Functions inherited from ft::SubjectObserver
 SubjectObserver ()
 
virtual ~SubjectObserver ()
 
virtual void Attach (Observer *)
 
virtual void Detach (Observer *)
 
virtual void Notify ()
 

Public Attributes

TxtSound sound
 

Protected Member Functions

void setStatus (TxtSimulationModel_status_t s)
 
void setActStatus (bool a, TxtSimulationModel_status_t s)
 
virtual void run ()=0
 

Static Protected Member Functions

static void * start_thread (void *obj)
 

Protected Attributes

ft::TxtMqttFactoryClientmqttclient
 
TxtSimulationModel_status_t status
 
bool active
 
TxtTransferpT
 
volatile bool m_stoprequested
 
volatile bool m_running
 
pthread_mutex_t m_mutex
 
pthread_t m_thread
 

Constructor & Destructor Documentation

ft::TxtSimulationModel::TxtSimulationModel ( TxtTransfer pT,
ft::TxtMqttFactoryClient mqttclient 
)
virtual ft::TxtSimulationModel::~TxtSimulationModel ( )
virtual

Member Function Documentation

TxtSimulationModel_status_t ft::TxtSimulationModel::getStatus ( )
inline
bool ft::TxtSimulationModel::isActive ( )
inline
bool ft::TxtSimulationModel::isThreadRunning ( )
inline
virtual void ft::TxtSimulationModel::run ( )
protectedpure virtual
void ft::TxtSimulationModel::setActStatus ( bool  a,
TxtSimulationModel_status_t  s 
)
inlineprotected
void ft::TxtSimulationModel::setStatus ( TxtSimulationModel_status_t  s)
inlineprotected
static void* ft::TxtSimulationModel::start_thread ( void *  obj)
inlinestaticprotected
bool ft::TxtSimulationModel::startThread ( )
bool ft::TxtSimulationModel::stopThread ( )

Member Data Documentation

bool ft::TxtSimulationModel::active
protected
pthread_mutex_t ft::TxtSimulationModel::m_mutex
protected
volatile bool ft::TxtSimulationModel::m_running
protected
volatile bool ft::TxtSimulationModel::m_stoprequested
protected
pthread_t ft::TxtSimulationModel::m_thread
protected
ft::TxtMqttFactoryClient* ft::TxtSimulationModel::mqttclient
protected
TxtTransfer* ft::TxtSimulationModel::pT
protected
TxtSound ft::TxtSimulationModel::sound
TxtSimulationModel_status_t ft::TxtSimulationModel::status
protected

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