ThresholdInputLanguage Class Reference
[Input Languages]

Class ThresholdInputLanguage. More...

#include <ThresholdInputLanguage.h>

Inherits Language.

Inheritance diagram for ThresholdInputLanguage:

Inheritance graph
[legend]
Collaboration diagram for ThresholdInputLanguage:

Collaboration graph
[legend]
List of all members.

Public Slots

void update (int pMessage, QTime pTime)
 Slot.
void updateFromGUI (bool pMessage)
 Slot.

Signals

void updated (bool pMessage, QTime pTime)
 emitted when outcoming value processed by the language changed.
void updated (QVariant pMessage, QTime pTime)
 emitted when outcoming value processed by the language changed.

Public Member Functions

 ThresholdInputLanguage ()
 Constructor.
 ThresholdInputLanguage (char *pName, int pThreshold, bool pIsTrueAbove)
 Constructor.
 ~ThresholdInputLanguage ()
 Destructor.
int GetThreshold () const
 Returns the value of the threshold.
void SetThreshold (int)
 Sets the value of the threshold.
bool GetIsTrueAbove () const
 Returns true if the language turn the values over, false otherwise.
void SetIsTrueAbove (bool)
 Sets the value of isTrueAbove.
bool GetMessage ()
 Getter.

Properties

int threshold
 Threshold value : limit below which a stimulus causes no reaction.

Detailed Description

Class ThresholdInputLanguage.

This class is used to translate data from any input device (numerical 1 dimension, like sensors) and transfer a boolean value depending if the data was above or under a threshold specified with constructor.


Constructor & Destructor Documentation

ThresholdInputLanguage::ThresholdInputLanguage ( char *  pName,
int  pThreshold,
bool  pIsTrueAbove 
)

Constructor.

Parameters:
ThresholdInputDevice Name
Threshold value


Member Function Documentation

void ThresholdInputLanguage::updated ( bool  pMessage,
QTime  pTime 
) [signal]

emitted when outcoming value processed by the language changed.

Parameters:
pMessage new value
pTime time stamp

void ThresholdInputLanguage::updated ( QVariant  pMessage,
QTime  pTime 
) [signal]

emitted when outcoming value processed by the language changed.

Parameters:
pMessage new value
pTime time stamp

void ThresholdInputLanguage::update ( int  pMessage,
QTime  pTime 
) [slot]

Slot.

Parameters:
pMessage coming from an InputDevice
pTime time stamp

void ThresholdInputLanguage::updateFromGUI ( bool  pMessage  )  [slot]

Slot.

Parameters:
pMessage coming from the CheckBox of the GUI


The documentation for this class was generated from the following files:
Generated on Tue Mar 10 11:18:19 2009 for Mixed Objects by  doxygen 1.5.2