dlvhex  2.5.0
GuessAndCheckModelGeneratorFactory Class Reference

Factory for the GuessAndCheckModelGenerator. More...

#include <include/dlvhex2/GuessAndCheckModelGenerator.h>

Inheritance diagram for GuessAndCheckModelGeneratorFactory:
Collaboration diagram for GuessAndCheckModelGeneratorFactory:

Public Types

typedef
ComponentGraph::ComponentInfo 
ComponentInfo

Public Member Functions

 GuessAndCheckModelGeneratorFactory (ProgramCtx &ctx, const ComponentInfo &ci, ASPSolverManager::SoftwareConfigurationPtr externalEvalConfig)
 Constructor.
virtual ~GuessAndCheckModelGeneratorFactory ()
 Destructor.
virtual ModelGeneratorPtr createModelGenerator (InterpretationConstPtr input)
 Instantiates a model generator for the current component.
virtual std::ostream & print (std::ostream &o) const
 Prints information about the model generator for debugging purposes.
virtual std::ostream & print (std::ostream &o, bool verbose) const
 Prints information about the model generator for debugging purposes.

Protected Attributes

ASPSolverManager::SoftwareConfigurationPtr externalEvalConfig
 Defines the solver to be used for external evaluation.
ProgramCtxctx
 ProgramCtx.
ComponentInfo ci
 ComponentInfo of the component to be solved by the model generators instantiated by this factory.
std::vector< IDouterEatoms
 Outer external atoms of the component.

Friends

class GuessAndCheckModelGenerator

Detailed Description

Factory for the GuessAndCheckModelGenerator.

Definition at line 51 of file GuessAndCheckModelGenerator.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Destructor.

Definition at line 85 of file GuessAndCheckModelGenerator.h.


Member Function Documentation

Instantiates a model generator for the current component.

Parameters:
inputInput interpretation to this model generator.
Returns:
Model generator.

Implements ModelGeneratorFactoryBase< Interpretation >.

Definition at line 186 of file GuessAndCheckModelGenerator.cpp.

References GuessAndCheckModelGenerator.

std::ostream & GuessAndCheckModelGeneratorFactory::print ( std::ostream &  o) const [virtual]

Prints information about the model generator for debugging purposes.

Parameters:
oStream to print to.

Reimplemented from ModelGeneratorFactoryBase< Interpretation >.

Definition at line 192 of file GuessAndCheckModelGenerator.cpp.

std::ostream & GuessAndCheckModelGeneratorFactory::print ( std::ostream &  o,
bool  verbose 
) const [virtual]

Prints information about the model generator for debugging purposes.

Parameters:
oStream to print to.
verboseTrue will output more detailed information.

Definition at line 199 of file GuessAndCheckModelGenerator.cpp.

References ctx, FLPModelGeneratorFactoryBase::gidb, FLPModelGeneratorFactoryBase::idb, FLPModelGeneratorFactoryBase::innerEatoms, outerEatoms, Printer::printmany(), ProgramCtx::registry(), FLPModelGeneratorFactoryBase::xidb, FLPModelGeneratorFactoryBase::xidbflpbody, and FLPModelGeneratorFactoryBase::xidbflphead.


Friends And Related Function Documentation

friend class GuessAndCheckModelGenerator [friend]

Definition at line 57 of file GuessAndCheckModelGenerator.h.

Referenced by createModelGenerator().


Field Documentation

ComponentInfo of the component to be solved by the model generators instantiated by this factory.

Definition at line 67 of file GuessAndCheckModelGenerator.h.

Referenced by GuessAndCheckModelGenerator::GuessAndCheckModelGenerator().

Outer external atoms of the component.

Definition at line 71 of file GuessAndCheckModelGenerator.h.

Referenced by GuessAndCheckModelGenerator::GuessAndCheckModelGenerator(), and print().


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