Public Member Functions | Protected Attributes

wosh::security::AlarmEngine Class Reference

The class provides basic functionalities for processing messages and evaluate triggers and events. More...

#include <H:/WOSH/win32_vc2010/src/framework/security/AlarmEngine.h>

List of all members.

Public Member Functions

 AlarmEngine ()
 Default constructor. Init vars.
virtual ~AlarmEngine ()
 Deconstructor. If thread is still running, it will be stopped.
Setters
void setAlarmListener (IAlarmEngineListener *listenerPtr)
Getters
AlarmStategetAlarmState ()
AlarmBraingetAlarmBrain ()
const tAlarmTriggerListgetAlarmTriggers () const
tAlarmTriggerListgetAlarmTriggers ()
IAlarmEngineListener * getAlarmListener ()
IAlarmBrainListener Interface
virtual void raised_AlarmBrain_Error (int error, const std::string &description, AlarmBrain *source)
IAlarmStateListener Interface
virtual void changed_AlarmState (int state, AlarmState *source)
virtual void raised_AlarmEvent (const AlarmEvent *alarm_event, AlarmState *source)

Protected Member Functions

Internal methods
virtual void runThread ()

Protected Attributes

MessageQueue msgQueue
 messages' queue
wosh::LogContext Log
 my log
AlarmStatealarmState
 current state of alarm system
AlarmBrainalarmBrain
 the "brain" which evaluates previous and current triggers
tAlarmTriggerList alarmTriggers
 triggers which may update current state
IAlarmEngineListener * listener
 callbacks

Detailed Description

The class provides basic functionalities for processing messages and evaluate triggers and events.

Version:
Id:
AlarmEngine.h 3775 2011-01-01 16:38:17Z alex
Author:
Alessandro Polo

Definition at line 55 of file AlarmEngine.h.


Constructor & Destructor Documentation

wosh::security::AlarmEngine::AlarmEngine (  )
wosh::security::AlarmEngine::~AlarmEngine (  ) [virtual]

Deconstructor. If thread is still running, it will be stopped.

Definition at line 66 of file AlarmEngine.cpp.

References alarmBrain, alarmState, Log, and wosh::LOG_VERBOSE.


Member Function Documentation

void wosh::security::AlarmEngine::runThread (  ) [protected, virtual]

Member Data Documentation

the "brain" which evaluates previous and current triggers

Definition at line 140 of file AlarmEngine.h.

Referenced by AlarmEngine(), runThread(), and ~AlarmEngine().

current state of alarm system

Definition at line 138 of file AlarmEngine.h.

Referenced by AlarmEngine(), runThread(), and ~AlarmEngine().

triggers which may update current state

Definition at line 142 of file AlarmEngine.h.

Referenced by runThread().

IAlarmEngineListener* wosh::security::AlarmEngine::listener [protected]

callbacks

Definition at line 145 of file AlarmEngine.h.

Referenced by AlarmEngine(), and runThread().

my log

Definition at line 136 of file AlarmEngine.h.

Referenced by AlarmEngine(), runThread(), and ~AlarmEngine().

messages' queue

Definition at line 135 of file AlarmEngine.h.

Referenced by runThread().


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

Generated on Tue Feb 8 2011 09:33:40 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework