Class RPGBuilder::ConditionalEffect

Nested Relationships

This class is a nested type of Class RPGBuilder.

Class Documentation

class ConditionalEffect

Class to represent a conditional effect. The class is capable of storing more fields than can currently be used by the planner - currently, only conditional effects upon metric tracking variables are supported, conditional on either propositions controlled exclusively by timed initial literals, or on numeric values.

Public Functions

inline ConditionalEffect()
inline void addCondition(Literal *const l, const VAL::time_spec &t)
inline void addCondition(const int &p, const VAL::time_spec &t)
inline void addNumericEffect(const int &p, const VAL::time_spec &t)
inline void addAddEffect(Literal *const l, const VAL::time_spec &t)
inline void addDeleteEffect(Literal *const l, const VAL::time_spec &t)
inline const list<pair<Literal*, VAL::time_spec>> &getPropositionalConditions() const
inline const list<pair<int, VAL::time_spec>> &getNumericPreconditions() const
inline const list<pair<int, VAL::time_spec>> &getNumericEffects() const
inline const list<pair<Literal*, VAL::time_spec>> &getPropositionalAddEffects() const
inline const list<pair<Literal*, VAL::time_spec>> &getPropositionalDeleteEffects() const