scsolver::numeric::lp::UnoAlgorithmImpl Class Reference

Collaboration diagram for scsolver::numeric::lp::UnoAlgorithmImpl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UnoAlgorithmImpl (const rtl::OUString &service, CalcInterface *pCalc)
 ~UnoAlgorithmImpl () throw ()
void solve ()
Matrix getSolution () const
void setModel (Model *p)
ModelgetModel () const
const rtl::OUString getServiceName () const

Private Member Functions

CalcInterfacegetCalcInterface () const

Private Attributes

rtl::OUString m_sServiceName
CalcInterfacem_pCalc
Matrix m_mxSolution
Modelm_pModel


Detailed Description

Definition at line 67 of file lpuno.cxx.


Constructor & Destructor Documentation

scsolver::numeric::lp::UnoAlgorithmImpl::UnoAlgorithmImpl ( const rtl::OUString &  service,
CalcInterface pCalc 
) [inline]

Definition at line 70 of file lpuno.cxx.

scsolver::numeric::lp::UnoAlgorithmImpl::~UnoAlgorithmImpl (  )  throw () [inline]

Definition at line 78 of file lpuno.cxx.


Member Function Documentation

void scsolver::numeric::lp::UnoAlgorithmImpl::solve (  ) 

Given an LP model represented by an object of class lp::Model, create an UNO object (service) of type LpModel to map model parameters to it, and to pass it to another UNO object that provides an LP algorithm to find a solution.

Once a solution is found, set the solution into m_mxSolution which will be later retrieved by the calling function.

Definition at line 108 of file lpuno.cxx.

References scsolver::ascii(), scsolver::numeric::Matrix::cols(), scsolver::numeric::EQUAL, getCalcInterface(), scsolver::CalcInterface::getComponentContext(), scsolver::numeric::lp::Model::getConstraintMatrix(), scsolver::numeric::lp::Model::getCostVector(), scsolver::numeric::lp::Model::getEquality(), scsolver::numeric::lp::Model::getGoal(), getModel(), scsolver::numeric::lp::Model::getRhsVector(), scsolver::CalcInterface::getServiceManager(), getServiceName(), scsolver::numeric::GOAL_MAXIMIZE, scsolver::numeric::GOAL_MINIMIZE, scsolver::numeric::GREATER_EQUAL, scsolver::numeric::LESS_EQUAL, m_mxSolution, scsolver::numeric::Matrix::rows(), and scsolver::numeric::Matrix::swap().

Matrix scsolver::numeric::lp::UnoAlgorithmImpl::getSolution (  )  const

Definition at line 204 of file lpuno.cxx.

References m_mxSolution.

void scsolver::numeric::lp::UnoAlgorithmImpl::setModel ( Model p  )  [inline]

Definition at line 85 of file lpuno.cxx.

References m_pModel.

Model* scsolver::numeric::lp::UnoAlgorithmImpl::getModel (  )  const [inline]

Definition at line 86 of file lpuno.cxx.

References m_pModel.

Referenced by solve().

const rtl::OUString scsolver::numeric::lp::UnoAlgorithmImpl::getServiceName (  )  const [inline]

Definition at line 88 of file lpuno.cxx.

References m_sServiceName.

Referenced by solve().

CalcInterface* scsolver::numeric::lp::UnoAlgorithmImpl::getCalcInterface (  )  const [inline, private]

Definition at line 96 of file lpuno.cxx.

References m_pCalc.

Referenced by solve().


Member Data Documentation

rtl::OUString scsolver::numeric::lp::UnoAlgorithmImpl::m_sServiceName [private]

Definition at line 91 of file lpuno.cxx.

Referenced by getServiceName().

CalcInterface* scsolver::numeric::lp::UnoAlgorithmImpl::m_pCalc [private]

Definition at line 92 of file lpuno.cxx.

Referenced by getCalcInterface().

Matrix scsolver::numeric::lp::UnoAlgorithmImpl::m_mxSolution [private]

Definition at line 93 of file lpuno.cxx.

Referenced by getSolution(), and solve().

Model* scsolver::numeric::lp::UnoAlgorithmImpl::m_pModel [private]

Definition at line 94 of file lpuno.cxx.

Referenced by getModel(), and setModel().


The documentation for this class was generated from the following file:
Generated on Mon Jul 28 09:13:51 2008 for scsolver by  doxygen 1.5.3