- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Generators/BFIG/CDBFIG/unit-tests/CDBFIGGeneratorTester.cpp

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00010
    00011 #include <Mers/Generators/BFIG/unit-tests/BFIGGeneratorTester.h>
    00012
    00013 #include <Mers/Generators/BFIG/CDBFIG/CDBFIGFactory.h>
    00014
    00015 using Mers::Generators::BFIG::CDBFIG::CDBFIGFactory;
    00016
    00017 using tut::ensure;
    00018
    00019 // Note that we just define one of the functions here - which lets us
    00020 // re-use the code in multiple places while not being forced to
    00021 // implement some other complex test-initialization code.
    00022
    00024
    00025 void tut::BFIGGeneratorTester::initBFIGGenTest(unsigned int numDomains,
    00026         const struct BFIGDomainEntry * domains,
    00027         bool isProbabilities,
    00028         unsigned int numVariables,
    00029         const struct BFIGVariableEntry * variables,
    00030         double cutoffCost)
    00031         throw()
    00032 {
    00033         initBFIGData(numDomains, domains, numVariables, variables);
    00034
    00035         CDBFIGFactory factory;
    00036
    00037         // Now create BFIG
    00038         mGenerator = new BFIGGenerator(factory, mBFIGVariables, mAllVariables,
    00039                 mValueMap, mProbabilities, cutoffCost, isProbabilities);
    00040 }
    00041
    00043
    00044