source/inc/nlpbuilder.hxx

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  The Contents of this file are made available subject to
00004  *  the terms of GNU Lesser General Public License Version 2.1.
00005  *
00006  *
00007  *    GNU Lesser General Public License Version 2.1
00008  *    =============================================
00009  *    Copyright 2005 by Kohei Yoshida.
00010  *    1039 Kingsway Dr., Apex, NC 27502, USA
00011  *
00012  *    This library is free software; you can redistribute it and/or
00013  *    modify it under the terms of the GNU Lesser General Public
00014  *    License version 2.1, as published by the Free Software Foundation.
00015  *
00016  *    This library is distributed in the hope that it will be useful,
00017  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *    Lesser General Public License for more details.
00020  *
00021  *    You should have received a copy of the GNU Lesser General Public
00022  *    License along with this library; if not, write to the Free Software
00023  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024  *    MA  02111-1307  USA
00025  *
00026  ************************************************************************/
00027 
00028 #ifndef _SCSOLVER_NLPBUILDER_HXX_
00029 #define _SCSOLVER_NLPBUILDER_HXX_
00030 
00031 #include <memory>
00032 
00033 namespace com { namespace sun { namespace star { namespace table {
00034         class CellAddress;
00035 }}}}
00036 
00037 namespace scsolver {
00038 
00039 class SolverImpl;
00040 
00041 namespace numeric { 
00042 
00043     class CellFuncObj;
00044 
00045 namespace nlp {
00046 
00047         class Model;
00048 
00049 }}
00050 
00051 class NlpModelBuilderImpl;
00052 
00053 class NlpModelBuilder
00054 {
00055 public:
00056         NlpModelBuilder( SolverImpl* p );
00057         ~NlpModelBuilder() throw();
00058 
00059     void setFuncObj(scsolver::numeric::CellFuncObj* p);
00060         void setObjectiveFormulaAddress( ::com::sun::star::table::CellAddress addr );
00061         void clearDecVarAddresses();
00062         void appendDecVarAddress( ::com::sun::star::table::CellAddress addr );
00063         numeric::nlp::Model getModel() const;
00064 
00065 private:
00066         NlpModelBuilder();
00067         std::auto_ptr<NlpModelBuilderImpl> m_pImpl;
00068 };
00069 
00070 }
00071 
00072 #endif

Generated on Mon Jul 28 09:13:20 2008 for scsolver by  doxygen 1.5.3