Class MinimalState
Defined in File minimalstate.h
Class Documentation
-
class MinimalState
Public Functions
-
MinimalState &operator=(const MinimalState &s)
-
MinimalState(const set<int> &f, const vector<double> &sMin, const vector<double> &sMax, const map<int, set<int>> &sa, const int nt = 0, const unsigned int pl = 0, const unsigned int ae = 0)
-
MinimalState(const map<int, PropositionAnnotation> &f, const vector<double> &sMin, const vector<double> &sMax, const map<int, set<int>> &sa, const int nt = 0, const unsigned int pl = 0, const unsigned int ae = 0)
-
template<typename _InputIterator>
inline void insertFacts(_InputIterator begin, const _InputIterator &end, const StepAndBeforeOrAfter &from)
-
template<typename _InputIterator>
inline void insertIntFacts(_InputIterator begin, const _InputIterator &end, const StepAndBeforeOrAfter &from)
-
MinimalState(const MinimalState &other, const int extra = 0)
-
MinimalState()
-
virtual ~MinimalState()
-
inline MinimalState &applyAction(const ActionSegment &a, double minDur = 0.0, double maxDur = 0.0) const
-
inline void applyActionLocally(const ActionSegment &a, double minDur = 0.0, double maxDur = 0.0)
-
void printState(ostream &o) const
-
void setFacts(const set<int> &s)
-
void setFacts(const LiteralSet &s)
-
void setFacts(const vector<double> &f)
Public Members
-
map<int, PropositionAnnotation> first
-
map<int, PropositionAnnotation> retired
-
vector<double> secondMin
-
vector<double> secondMax
-
map<int, set<int>> startedActions
-
unsigned int planLength
-
unsigned int actionsExecuting
-
int nextTIL
-
TemporalConstraints *temporalConstraints
Public Static Functions
-
static inline void setTransformer(StateTransformer *const s)
Specify a
StateTransformer
object to use to handle applying actions to states, and updating the recorded temporal constraints.- Parameters:
s – The
StateTransformer
to use.
-
static inline StateTransformer *getTransformer()
Return a pointer to the
StateTransformer
object to use to handle applying actions to states, and updating the recorded temporal constraints.@Return The
StateTransformer
object currently in use.
Protected Functions
-
inline bool operator==(MinimalState&)
Protected Static Attributes
-
static StateTransformer *globalTransformer
Pointer to the StateTransformer object used to apply objects to states. This is set in the main function of POPF, prior to search.
See also
-
MinimalState &operator=(const MinimalState &s)