#include <ThresholdInputLanguage.h>
Inherits Language.
Inheritance diagram for ThresholdInputLanguage:


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. | |
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.
| ThresholdInputLanguage::ThresholdInputLanguage | ( | char * | pName, | |
| int | pThreshold, | |||
| bool | pIsTrueAbove | |||
| ) |
Constructor.
| ThresholdInputDevice | Name | |
| Threshold | value |
| void ThresholdInputLanguage::updated | ( | bool | pMessage, | |
| QTime | pTime | |||
| ) | [signal] |
emitted when outcoming value processed by the language changed.
| pMessage | new value | |
| pTime | time stamp |
| void ThresholdInputLanguage::updated | ( | QVariant | pMessage, | |
| QTime | pTime | |||
| ) | [signal] |
emitted when outcoming value processed by the language changed.
| pMessage | new value | |
| pTime | time stamp |
| void ThresholdInputLanguage::update | ( | int | pMessage, | |
| QTime | pTime | |||
| ) | [slot] |
Slot.
| pMessage | coming from an InputDevice | |
| pTime | time stamp |
| void ThresholdInputLanguage::updateFromGUI | ( | bool | pMessage | ) | [slot] |
Slot.
| pMessage | coming from the CheckBox of the GUI |
1.5.2