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

# /Users/fpy/titan-1-5-MBARI/Mers/Generators/BFIG/CDBFIG/CDBFIGFactory.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 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014 #include "CDBFIGFactory.h"
    00015
    00016 #include "CDBFIG.h"
    00017
    00019
    00020 using namespace Mers::Generators::BFIG::CDBFIG;
    00021 using Mers::Generators::BFIG::BFIGObjectiveFunction;
    00022 using Mers::Generators::BFIG::BFIGVariable;
    00023 using Mers::Generators::BFIG::BFIG;
    00024 using std::vector;
    00025
    00026
    00028
    00029 CDBFIGFactory::CDBFIGFactory()
    00030 {
    00031 }
    00032
    00034
    00035 CDBFIGFactory::~CDBFIGFactory()
    00036 {
    00037 }
    00038
    00040
    00041 BFIG * CDBFIGFactory::create(vector<BFIGVariable *> const & variableSet,
    00042         double cutoffCost) throw()
    00043 {
    00044         return new CDBFIG(variableSet, cutoffCost);
    00045 }
    00046
    00048
    00049 BFIG *
    00050 CDBFIGFactory::create(vector<BFIGVariable *> const & variableSet) throw()
    00051 {
    00052         return new CDBFIG(variableSet);
    00053 }
    00054
    00056
    00057 BFIG * CDBFIGFactory::create(vector<BFIGVariable *> const & variableSet,
    00058         BFIGObjectiveFunction const * ocspObjectiveFunction, double cutoffCost) throw()
    00059 {
    00060         return new CDBFIG(variableSet, cutoffCost, ocspObjectiveFunction);
    00061 }
    00062