ADTF
3.18.3
|
DataTrigger implements a concrete periodic trigger in the runtime. More...
Public Member Functions | |
DataTrigger (IMappingEnvironment &env, const std::string &trigger_name, const std::string &variable_name, const std::string &comp_operator, const double &value) | |
CTOR. More... | |
~DataTrigger () | |
DTOR. | |
a_util::result::Result | start () |
Method to start trigger. More... | |
a_util::result::Result | stop () |
Method to stop trigger. More... | |
a_util::result::Result | transmit () |
Method to transmit targets. More... | |
bool | compare (double value) |
Method to make the comparison. More... | |
const std::string & | getVariable () const |
Returns the period of the trigger in ms. | |
Public Member Functions inherited from TriggerBase | |
virtual | ~TriggerBase () |
Virtual DTOR. | |
TargetSet & | getTargetList () |
Getter for the list of registered targets. More... | |
a_util::result::Result | addTarget (Target *target) |
Method to register a new target. More... | |
a_util::result::Result | removeTarget (Target *target) |
Method to deregister a target. More... | |
Private Attributes | |
IMappingEnvironment & | _env |
std::string | _name |
std::string | _variable_name |
Operator | _operator |
double | _value |
bool | _is_running |
Additional Inherited Members | |
Protected Attributes inherited from TriggerBase | |
TargetSet | _targets |
nodoc | |
DataTrigger implements a concrete periodic trigger in the runtime.
Definition at line 42 of file data_trigger.h.
DataTrigger | ( | IMappingEnvironment & | env, |
const std::string & | trigger_name, | ||
const std::string & | variable_name, | ||
const std::string & | comp_operator, | ||
const double & | value | ||
) |
CTOR.
[in] | env | The mapping environment |
[in] | trigger_name | The name of the trigger |
[in] | variable_name | The value name for the operator |
[in] | comp_operator | operator |
[in] | value | value for the operator |
bool compare | ( | double | value | ) |
Method to make the comparison.
a_util::result::SUCCESS | Everything went fine |
|
virtual |
Method to start trigger.
a_util::result::SUCCESS | Everything went fine |
ERR_FAILED | Error during runtime |
Implements TriggerBase.
|
virtual |
Method to stop trigger.
a_util::result::SUCCESS | Everything went fine |
Implements TriggerBase.
a_util::result::Result transmit | ( | ) |
Method to transmit targets.
a_util::result::SUCCESS | Everything went fine |