4#ifndef SRC_SUPLA_CONDITION_H_
5#define SRC_SUPLA_CONDITION_H_
7#include "action_handler.h"
8#include "condition_getter.h"
12class ElementWithChannelActions;
16 Condition(
double threshold,
bool useAlternativeValue);
25 void activateAction(
int action)
override;
26 void handleAction(
int event,
int action)
override;
27 bool deleteClient()
override;
30 virtual bool checkConditionFor(
double val,
bool isValid =
true);
32 void setThreshold(
double val);
35 virtual bool condition(
double val,
bool isValid =
true) = 0;
38 bool useAlternativeValue =
false;
39 bool alreadyFired =
false;
48 bool useAlternativeValue =
false);
50 bool useAlternativeValue =
false);
52 bool useAlternativeValue =
false);
54 bool useAlternativeValue =
false);
57 bool useAlternativeValue =
false);
60 bool useAlternativeValue =
false);
62 bool useAlternativeValue =
false);
Definition action_handler.h:8
Definition condition_getter.h:14
Definition condition.h:14
Definition element_with_channel_actions.h:66