herald  2.0.0
Public Attributes | List of all members
herald::engine::Activity Struct Reference

An activity that needs to be performed due to some state being achieved in a Sensor. More...

#include <activities.h>

Public Attributes

Priority priority
 The relative priority for this Activity compared to the scale. More...
 
std::string name
 A human readable name for this activity used for logging.
 
std::vector< Prerequisiteprerequisites
 A list of non-prioritised pre-requisities (priority is taken from the priority field in Activity).
 
ActivityFunction executor
 The Activity function to call when all prerequisites have been met. May not be called.
 

Detailed Description

An activity that needs to be performed due to some state being achieved in a Sensor.

Member Data Documentation

◆ priority

Priority herald::engine::Activity::priority

The relative priority for this Activity compared to the scale.

See also
Priorities

The documentation for this struct was generated from the following file: