dlvhex  2.5.0
WellfoundedModelGeneratorFactory Class Reference

Factory for the WellfoundedModelGenerator. More...

#include <include/dlvhex2/WellfoundedModelGenerator.h>

Inheritance diagram for WellfoundedModelGeneratorFactory:
Collaboration diagram for WellfoundedModelGeneratorFactory:

Public Types

typedef
ComponentGraph::ComponentInfo 
ComponentInfo

Public Member Functions

 WellfoundedModelGeneratorFactory (ProgramCtx &ctx, const ComponentInfo &ci, ASPSolverManager::SoftwareConfigurationPtr externalEvalConfig)
 Constructor.
virtual ~WellfoundedModelGeneratorFactory ()
 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.

Protected Attributes

ASPSolverManager::SoftwareConfigurationPtr externalEvalConfig
 Defines the solver to be used for external evaluation.
ProgramCtxctx
 ProgramCtx.
std::vector< IDouterEatoms
 Outer eatoms of the component.
std::vector< IDinnerEatoms
 Inner eatoms of the component.
std::vector< IDidb
 Original IDB containing eatoms where all inputs are known.
std::vector< IDxidb
 Rewritten IDB (containing replacements for eatoms).

Friends

class WellfoundedModelGenerator

Detailed Description

Factory for the WellfoundedModelGenerator.

Definition at line 86 of file WellfoundedModelGenerator.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Destructor.

Definition at line 127 of file WellfoundedModelGenerator.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 134 of file WellfoundedModelGenerator.h.

References WellfoundedModelGenerator.

std::ostream & WellfoundedModelGeneratorFactory::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 95 of file WellfoundedModelGenerator.cpp.

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


Friends And Related Function Documentation

friend class WellfoundedModelGenerator [friend]

Definition at line 92 of file WellfoundedModelGenerator.h.

Referenced by createModelGenerator().


Field Documentation

Defines the solver to be used for external evaluation.

Definition at line 98 of file WellfoundedModelGenerator.h.

Referenced by WellfoundedModelGenerator::generateNextModel().

std::vector<ID> WellfoundedModelGeneratorFactory::idb [protected]

Original IDB containing eatoms where all inputs are known.

Auxiliary input rules of these eatoms must be in predecessor unit!

Definition at line 109 of file WellfoundedModelGenerator.h.

Referenced by print(), and WellfoundedModelGeneratorFactory().

Inner eatoms of the component.

Definition at line 104 of file WellfoundedModelGenerator.h.

Referenced by WellfoundedModelGenerator::generateNextModel(), and print().

Outer eatoms of the component.

Definition at line 102 of file WellfoundedModelGenerator.h.

Referenced by WellfoundedModelGenerator::generateNextModel(), and print().

std::vector<ID> WellfoundedModelGeneratorFactory::xidb [protected]

Rewritten IDB (containing replacements for eatoms).

x stands for transformed.

Definition at line 113 of file WellfoundedModelGenerator.h.

Referenced by WellfoundedModelGenerator::generateNextModel(), print(), and WellfoundedModelGeneratorFactory().


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