dlvhex
2.5.0
|
Performs UFS checks periodically. More...
#include <include/dlvhex2/UnfoundedSetCheckHeuristics.h>
Public Member Functions | |
UnfoundedSetCheckHeuristicsPeriodic (const AnnotatedGroundProgram &groundProgram, RegistryPtr reg) | |
virtual bool | doUFSCheck (InterpretationConstPtr verifiedAuxes, InterpretationConstPtr partialAssignment, InterpretationConstPtr assigned, InterpretationConstPtr changed) |
Decides if the reasoner shall do an unfounded set check at this point. | |
Private Attributes | |
int | counter |
Counts the number of calls in order to periodically perform the UFS check. |
Performs UFS checks periodically.
Definition at line 102 of file UnfoundedSetCheckHeuristics.h.
UnfoundedSetCheckHeuristicsPeriodic::UnfoundedSetCheckHeuristicsPeriodic | ( | const AnnotatedGroundProgram & | groundProgram, |
RegistryPtr | reg | ||
) |
Definition at line 83 of file UnfoundedSetCheckHeuristics.cpp.
bool UnfoundedSetCheckHeuristicsPeriodic::doUFSCheck | ( | InterpretationConstPtr | verifiedAuxes, |
InterpretationConstPtr | partialAssignment, | ||
InterpretationConstPtr | assigned, | ||
InterpretationConstPtr | changed | ||
) | [virtual] |
Decides if the reasoner shall do an unfounded set check at this point.
verifiedAuxes | The set of verified external atom auxiliaries wrt. the current partial interpretation |
partialAssignment | The current (partial) interpretation |
assigned | The current set of assigned atoms; if NULL, then the interpretation is complete |
changed | The set of atoms with a (possibly) modified truth value since the last call of this method; if NULL, then all atoms have changed |
Reimplemented from UnfoundedSetCheckHeuristicsMax.
Definition at line 88 of file UnfoundedSetCheckHeuristics.cpp.
References counter.
int UnfoundedSetCheckHeuristicsPeriodic::counter [private] |
Counts the number of calls in order to periodically perform the UFS check.
Definition at line 106 of file UnfoundedSetCheckHeuristics.h.
Referenced by doUFSCheck().