dlvhex  2.5.0
UnfoundedSetCheckHeuristicsPeriodic Class Reference

Performs UFS checks periodically. More...

#include <include/dlvhex2/UnfoundedSetCheckHeuristics.h>

Inheritance diagram for UnfoundedSetCheckHeuristicsPeriodic:
Collaboration diagram for UnfoundedSetCheckHeuristicsPeriodic:

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.

Detailed Description

Performs UFS checks periodically.

Definition at line 102 of file UnfoundedSetCheckHeuristics.h.


Constructor & Destructor Documentation


Member Function Documentation

Decides if the reasoner shall do an unfounded set check at this point.

Parameters:
verifiedAuxesThe set of verified external atom auxiliaries wrt. the current partial interpretation
partialAssignmentThe current (partial) interpretation
assignedThe current set of assigned atoms; if NULL, then the interpretation is complete
changedThe set of atoms with a (possibly) modified truth value since the last call of this method; if NULL, then all atoms have changed
Returns:
True if the heuristics decides to do an unfounded set check now, and false otherwise.

Reimplemented from UnfoundedSetCheckHeuristicsMax.

Definition at line 88 of file UnfoundedSetCheckHeuristics.cpp.

References counter.


Field Documentation

Counts the number of calls in order to periodically perform the UFS check.

Definition at line 106 of file UnfoundedSetCheckHeuristics.h.

Referenced by doUFSCheck().


The documentation for this class was generated from the following files: