dlvhex
2.5.0
|
Test evaluation starting from HEX program to final models. More...
#include "dlvhex2/EvalGraphBuilder.h"
#include "dlvhex2/EvalHeuristicOldDlvhex.h"
#include "dlvhex2/ProgramCtx.h"
#include "dlvhex2/Printer.h"
#include "dlvhex2/Registry.h"
#include "dlvhex2/PluginInterface.h"
#include "dlvhex2/DependencyGraph.h"
#include "dlvhex2/ComponentGraph.h"
#include "dlvhex2/ModelGenerator.h"
#include "dlvhex2/OnlineModelBuilder.h"
#include "dlvhex2/ASPSolver.h"
#include "dlvhex2/ASPSolverManager.h"
#include <boost/test/unit_test.hpp>
#include "fixturesExt1.h"
#include "graphviz.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
Go to the source code of this file.
Defines | |
#define | BOOST_TEST_MODULE __FILE__ |
#define | LOG_REGISTRY_PROGRAM(ctx) |
Typedefs | |
typedef OnlineModelBuilder < FinalEvalGraph > | FinalOnlineModelBuilder |
typedef FinalOnlineModelBuilder::Model | Model |
typedef FinalOnlineModelBuilder::OptionalModel | OptionalModel |
Functions | |
BOOST_FIXTURE_TEST_CASE (testEvalHeuristicExt1, ProgramExt1ProgramCtxDependencyGraphComponentGraphFixture) | |
Variables | |
DLVHEX_NAMESPACE_USE typedef FinalEvalGraph::EvalUnit | EvalUnit |
Test evaluation starting from HEX program to final models.
Functional external atoms are provided in fixture.
Definition in file TestEvalEndToEnd.cpp.
#define BOOST_TEST_MODULE __FILE__ |
Definition at line 51 of file TestEvalEndToEnd.cpp.
#define LOG_REGISTRY_PROGRAM | ( | ctx | ) |
LOG(INFO,*ctx.registry()); \ RawPrinter printer(std::cerr, ctx.registry()); \ std::cerr << "edb = " << *ctx.edb << std::endl; \ LOG(INFO,"idb"); \ printer.printmany(ctx.idb,"\n"); \ std::cerr << std::endl; \ LOG(INFO,"idb end");
Definition at line 61 of file TestEvalEndToEnd.cpp.
Referenced by BOOST_FIXTURE_TEST_CASE().
Definition at line 75 of file TestEvalEndToEnd.cpp.
typedef FinalOnlineModelBuilder::Model Model |
Definition at line 76 of file TestEvalEndToEnd.cpp.
Definition at line 77 of file TestEvalEndToEnd.cpp.
BOOST_FIXTURE_TEST_CASE | ( | testEvalHeuristicExt1 | , |
ProgramExt1ProgramCtxDependencyGraphComponentGraphFixture | |||
) |
Definition at line 79 of file TestEvalEndToEnd.cpp.
References EvalGraph< EvalUnitPropertyBaseT, EvalUnitDepPropertyBaseT >::addDependency(), EvalGraph< EvalUnitPropertyBaseT, EvalUnitDepPropertyBaseT >::addUnit(), EvalHeuristicOldDlvhex::build(), EvalGraph< EvalUnitPropertyBaseT, EvalUnitDepPropertyBaseT >::getEvalUnits(), ModelBuilder< EvalGraphT >::getModelGraph(), OnlineModelBuilder< EvalGraphT >::getNextIModel(), LOG, LOG_REGISTRY_PROGRAM, makeGraphVizPdf(), OnlineModelBuilder< EvalGraphT >::printEvalGraphModelGraph(), and ModelGraph< EvalGraphT, ModelPropertyBaseT, ModelDepPropertyBaseT >::propsOf().
Definition at line 74 of file TestEvalEndToEnd.cpp.