LibreOffice Module sccomp (master) 1
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
SolverComponent Class Referenceabstract

#include <SolverComponent.hxx>

Inheritance diagram for SolverComponent:
[legend]
Collaboration diagram for SolverComponent:
[legend]

Public Member Functions

 SolverComponent ()
 
virtual ~SolverComponent () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual css::uno::Reference< css::sheet::XSpreadsheetDocument > SAL_CALL getDocument () override
 
virtual void SAL_CALL setDocument (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &_document) override
 
virtual css::table::CellAddress SAL_CALL getObjective () override
 
virtual void SAL_CALL setObjective (const css::table::CellAddress &_objective) override
 
virtual css::uno::Sequence< css::table::CellAddress > SAL_CALL getVariables () override
 
virtual void SAL_CALL setVariables (const css::uno::Sequence< css::table::CellAddress > &_variables) override
 
virtual css::uno::Sequence< css::sheet::SolverConstraint > SAL_CALL getConstraints () override
 
virtual void SAL_CALL setConstraints (const css::uno::Sequence< css::sheet::SolverConstraint > &_constraints) override
 
virtual sal_Bool SAL_CALL getMaximize () override
 
virtual void SAL_CALL setMaximize (sal_Bool _maximize) override
 
virtual sal_Bool SAL_CALL getSuccess () override
 
virtual double SAL_CALL getResultValue () override
 
virtual css::uno::Sequence< double > SAL_CALL getSolution () override
 
virtual void SAL_CALL solve () override=0
 
virtual OUString SAL_CALL getComponentDescription () override=0
 
virtual OUString SAL_CALL getStatusDescription () override
 
virtual OUString SAL_CALL getPropertyDescription (const OUString &aPropertyName) override
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from comphelper::OMutexAndBroadcastHelper
 OMutexAndBroadcastHelper ()
 
::osl::Mutex & GetMutex ()
 
::cppu::OBroadcastHelperGetBroadcastHelper ()
 
const ::cppu::OBroadcastHelperGetBroadcastHelper () const
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< SolverComponent >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Static Protected Member Functions

static OUString GetResourceString (TranslateId aId)
 
static css::uno::Reference< css::table::XCell > GetCell (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDoc, const css::table::CellAddress &rPos)
 
static void SetValue (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDoc, const css::table::CellAddress &rPos, double fValue)
 
static double GetValue (const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xDoc, const css::table::CellAddress &rPos)
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< SolverComponent >
static std::mutextheMutex ()
 

Protected Attributes

css::uno::Reference< css::sheet::XSpreadsheetDocument > mxDoc
 
css::table::CellAddress maObjective
 
css::uno::Sequence< css::table::CellAddress > maVariables
 
css::uno::Sequence< css::sheet::SolverConstraint > maConstraints
 
bool mbMaximize
 
bool mbNonNegative
 
bool mbInteger
 
sal_Int32 mnTimeout
 
sal_Int32 mnEpsilonLevel
 
bool mbLimitBBDepth
 
bool mbSuccess
 
double mfResultValue
 
css::uno::Sequence< double > maSolution
 
OUString maStatus
 
- Protected Attributes inherited from comphelper::OMutexAndBroadcastHelper
::osl::Mutex m_aMutex
 
::cppu::OBroadcastHelper m_aBHelper
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< SolverComponent >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 62 of file SolverComponent.hxx.

Constructor & Destructor Documentation

◆ SolverComponent()

SolverComponent::SolverComponent ( )

◆ ~SolverComponent()

SolverComponent::~SolverComponent ( )
overridevirtual

Definition at line 110 of file SolverComponent.cxx.

Member Function Documentation

◆ createArrayHelper()

cppu::IPropertyArrayHelper * SolverComponent::createArrayHelper ( ) const
overridevirtual

◆ GetCell()

uno::Reference< table::XCell > SolverComponent::GetCell ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  xDoc,
const css::table::CellAddress &  rPos 
)
staticprotected

Definition at line 71 of file SolverComponent.cxx.

Referenced by GetValue(), and SetValue().

◆ getComponentDescription()

virtual OUString SAL_CALL SolverComponent::getComponentDescription ( )
overridepure virtual

◆ getConstraints()

uno::Sequence< sheet::SolverConstraint > SAL_CALL SolverComponent::getConstraints ( )
overridevirtual

Definition at line 205 of file SolverComponent.cxx.

References maConstraints.

◆ getDocument()

uno::Reference< sheet::XSpreadsheetDocument > SAL_CALL SolverComponent::getDocument ( )
overridevirtual

Definition at line 175 of file SolverComponent.cxx.

References mxDoc.

◆ getImplementationName()

virtual OUString SAL_CALL SolverComponent::getImplementationName ( )
overridepure virtual

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL SolverComponent::getInfoHelper ( )
override

◆ getMaximize()

sal_Bool SAL_CALL SolverComponent::getMaximize ( )
overridevirtual

Definition at line 215 of file SolverComponent.cxx.

References mbMaximize.

◆ getObjective()

table::CellAddress SAL_CALL SolverComponent::getObjective ( )
overridevirtual

Definition at line 185 of file SolverComponent.cxx.

References maObjective.

◆ getPropertyDescription()

OUString SAL_CALL SolverComponent::getPropertyDescription ( const OUString &  aPropertyName)
overridevirtual

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL SolverComponent::getPropertySetInfo ( )
overridevirtual

Definition at line 129 of file SolverComponent.cxx.

References getInfoHelper().

◆ GetResourceString()

OUString SolverComponent::GetResourceString ( TranslateId  aId)
staticprotected

Definition at line 44 of file SolverComponent.cxx.

References Translate::Create(), and Translate::get().

Referenced by getPropertyDescription().

◆ getResultValue()

double SAL_CALL SolverComponent::getResultValue ( )
overridevirtual

Definition at line 232 of file SolverComponent.cxx.

References mfResultValue.

◆ getSolution()

uno::Sequence< double > SAL_CALL SolverComponent::getSolution ( )
overridevirtual

Definition at line 237 of file SolverComponent.cxx.

References maSolution.

◆ getStatusDescription()

OUString SAL_CALL SolverComponent::getStatusDescription ( )
overridevirtual

Definition at line 136 of file SolverComponent.cxx.

References maStatus.

◆ getSuccess()

sal_Bool SAL_CALL SolverComponent::getSuccess ( )
overridevirtual

Definition at line 227 of file SolverComponent.cxx.

References mbSuccess.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SolverComponent::getSupportedServiceNames ( )
overridevirtual

Definition at line 249 of file SolverComponent.cxx.

◆ GetValue()

double SolverComponent::GetValue ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  xDoc,
const css::table::CellAddress &  rPos 
)
staticprotected

Definition at line 85 of file SolverComponent.cxx.

References GetCell().

◆ getVariables()

uno::Sequence< table::CellAddress > SAL_CALL SolverComponent::getVariables ( )
overridevirtual

Definition at line 195 of file SolverComponent.cxx.

References maVariables.

◆ setConstraints()

void SAL_CALL SolverComponent::setConstraints ( const css::uno::Sequence< css::sheet::SolverConstraint > &  _constraints)
overridevirtual

Definition at line 210 of file SolverComponent.cxx.

References maConstraints.

◆ setDocument()

void SAL_CALL SolverComponent::setDocument ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  _document)
overridevirtual

Definition at line 180 of file SolverComponent.cxx.

References mxDoc.

◆ setMaximize()

void SAL_CALL SolverComponent::setMaximize ( sal_Bool  _maximize)
overridevirtual

Definition at line 220 of file SolverComponent.cxx.

References mbMaximize.

◆ setObjective()

void SAL_CALL SolverComponent::setObjective ( const css::table::CellAddress &  _objective)
overridevirtual

Definition at line 190 of file SolverComponent.cxx.

References maObjective.

◆ SetValue()

void SolverComponent::SetValue ( const css::uno::Reference< css::sheet::XSpreadsheetDocument > &  xDoc,
const css::table::CellAddress &  rPos,
double  fValue 
)
staticprotected

Definition at line 79 of file SolverComponent.cxx.

References GetCell().

◆ setVariables()

void SAL_CALL SolverComponent::setVariables ( const css::uno::Sequence< css::table::CellAddress > &  _variables)
overridevirtual

Definition at line 200 of file SolverComponent.cxx.

References maVariables.

◆ solve()

virtual void SAL_CALL SolverComponent::solve ( )
overridepure virtual

◆ supportsService()

sal_Bool SAL_CALL SolverComponent::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 244 of file SolverComponent.cxx.

References cppu::supportsService().

Member Data Documentation

◆ maConstraints

css::uno::Sequence< css::sheet::SolverConstraint > SolverComponent::maConstraints
protected

Definition at line 72 of file SolverComponent.hxx.

Referenced by getConstraints(), and setConstraints().

◆ maObjective

css::table::CellAddress SolverComponent::maObjective
protected

Definition at line 70 of file SolverComponent.hxx.

Referenced by getObjective(), and setObjective().

◆ maSolution

css::uno::Sequence< double > SolverComponent::maSolution
protected

Definition at line 83 of file SolverComponent.hxx.

Referenced by getSolution().

◆ maStatus

OUString SolverComponent::maStatus
protected

Definition at line 84 of file SolverComponent.hxx.

Referenced by getStatusDescription().

◆ maVariables

css::uno::Sequence< css::table::CellAddress > SolverComponent::maVariables
protected

Definition at line 71 of file SolverComponent.hxx.

Referenced by getVariables(), and setVariables().

◆ mbInteger

bool SolverComponent::mbInteger
protected

Definition at line 76 of file SolverComponent.hxx.

Referenced by SolverComponent().

◆ mbLimitBBDepth

bool SolverComponent::mbLimitBBDepth
protected

Definition at line 79 of file SolverComponent.hxx.

Referenced by SolverComponent().

◆ mbMaximize

bool SolverComponent::mbMaximize
protected

Definition at line 73 of file SolverComponent.hxx.

Referenced by getMaximize(), and setMaximize().

◆ mbNonNegative

bool SolverComponent::mbNonNegative
protected

Definition at line 75 of file SolverComponent.hxx.

Referenced by SolverComponent().

◆ mbSuccess

bool SolverComponent::mbSuccess
protected

Definition at line 81 of file SolverComponent.hxx.

Referenced by getSuccess().

◆ mfResultValue

double SolverComponent::mfResultValue
protected

Definition at line 82 of file SolverComponent.hxx.

Referenced by getResultValue().

◆ mnEpsilonLevel

sal_Int32 SolverComponent::mnEpsilonLevel
protected

Definition at line 78 of file SolverComponent.hxx.

Referenced by SolverComponent().

◆ mnTimeout

sal_Int32 SolverComponent::mnTimeout
protected

Definition at line 77 of file SolverComponent.hxx.

Referenced by SolverComponent().

◆ mxDoc

css::uno::Reference< css::sheet::XSpreadsheetDocument > SolverComponent::mxDoc
protected

Definition at line 69 of file SolverComponent.hxx.

Referenced by getDocument(), and setDocument().


The documentation for this class was generated from the following files: