3#include "state_representation/parameters/Predicate.hpp" 
   16  bool previous_predicate_value_;
 
   22  explicit Event(
const std::string& name);
 
   34  void set_value(
const bool& value) 
override;
 
 
   59  bool result = value && (current_value || !this->previous_predicate_value_);
 
   60  this->previous_predicate_value_ = value;
 
 
   65  return this->previous_predicate_value_;
 
 
An event is a predicate with memory. Its purpose is to be true only once and change value only when t...
 
void set_value(const bool &value) override
Setter of the value attribute.
 
friend std::ostream & operator<<(std::ostream &os, const Event &event)
Overload the ostream operator for printing.
 
bool read_value()
Read the value of the event, modifying its value as it has been accessed once.
 
bool get_previous_value() const
Getter of the previous value. Does not affect the behavior of the event (as opposed to read_value).
 
U get_value() const
Getter of the value attribute.
 
virtual void set_value(const bool &value)
Setter of the value attribute.
 
A predicate is a boolean parameter as in the logic formalism.
 
Core state variables and objects.