Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MockFitScriptGeneratorModel Class Reference

#include <FitScriptGeneratorMockObjects.h>

Inheritance diagram for MockFitScriptGeneratorModel:
MantidQt::MantidWidgets::IFitScriptGeneratorModel

Public Member Functions

std::string generatePythonFitScript (std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &fitOptions, std::string const &filepath="") override
 
 MOCK_CONST_METHOD0 (getFittingMode, FittingMode())
 
 MOCK_CONST_METHOD0 (getGlobalParameters, std::vector< GlobalParameter >())
 
 MOCK_CONST_METHOD0 (getGlobalTies, std::vector< GlobalTie >())
 
 MOCK_CONST_METHOD0 (isSimultaneousMode, bool())
 
 MOCK_CONST_METHOD0 (isValid, std::tuple< bool, std::string >())
 
 MOCK_CONST_METHOD0 (numberOfDomains, std::size_t())
 
 MOCK_CONST_METHOD1 (getAdjustedFunctionIndex, std::string(std::string const &parameter))
 
 MOCK_CONST_METHOD1 (getDomainName, std::string(MantidQt::MantidWidgets::FitDomainIndex domainIndex))
 
 MOCK_CONST_METHOD2 (getEquivalentFunctionIndexForDomain, std::string(MantidQt::MantidWidgets::FitDomainIndex, std::string const &functionIndex))
 
 MOCK_CONST_METHOD2 (getFullParameter, std::string(MantidQt::MantidWidgets::FitDomainIndex, std::string const &parameter))
 
 MOCK_CONST_METHOD2 (getFullTie, std::string(MantidQt::MantidWidgets::FitDomainIndex, std::string const &tie))
 
 MOCK_CONST_METHOD2 (getFunction, Mantid::API::IFunction_sptr(std::string const &workspaceName, WorkspaceIndex workspaceIndex))
 
 MOCK_CONST_METHOD2 (getParameterConstraint, std::string(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter))
 
 MOCK_CONST_METHOD2 (getParameterTie, std::string(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter))
 
 MOCK_CONST_METHOD2 (getParameterValue, double(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter))
 
 MOCK_CONST_METHOD2 (hasParameter, bool(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &parameter))
 
 MOCK_CONST_METHOD2 (hasWorkspaceDomain, bool(std::string const &workspaceName, WorkspaceIndex workspaceIndex))
 
 MOCK_CONST_METHOD2 (isParameterFixed, bool(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter))
 
 MOCK_CONST_METHOD3 (getEquivalentFunctionIndexForDomain, std::string(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex))
 
 MOCK_CONST_METHOD4 (getEquivalentParameterTieForDomain, std::string(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie))
 
 MOCK_METHOD1 (removeDomain, void(MantidQt::MantidWidgets::FitDomainIndex domainIndex))
 
 MOCK_METHOD1 (setFittingMode, void(FittingMode fittingMode))
 
 MOCK_METHOD1 (setGlobalParameters, void(std::vector< std::string > const &parameters))
 
 MOCK_METHOD1 (setOutputBaseName, void(std::string const &outputBaseName))
 
 MOCK_METHOD1 (subscribePresenter, void(IFitScriptGeneratorPresenter *presenter))
 
 MOCK_METHOD2 (renameWorkspace, void(std::string const &workspaceName, std::string const &newName))
 
 MOCK_METHOD3 (addFunction, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function))
 
 MOCK_METHOD3 (removeFunction, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function))
 
 MOCK_METHOD3 (removeParameterConstraint, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter))
 
 MOCK_METHOD3 (setFunction, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function))
 
 MOCK_METHOD3 (setParameterConstraint, void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint))
 
 MOCK_METHOD3 (setParameterFixed, void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, bool fix))
 
 MOCK_METHOD3 (setParameterTie, void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie))
 
 MOCK_METHOD3 (setParameterValue, void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, double value))
 
 MOCK_METHOD3 (updateEndX, bool(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX))
 
 MOCK_METHOD3 (updateStartX, bool(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX))
 
 MOCK_METHOD4 (addWorkspaceDomain, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX))
 
 MOCK_METHOD4 (updateAttributeValue, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue))
 
 MOCK_METHOD4 (updateParameterConstraint, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint))
 
 MOCK_METHOD4 (updateParameterTie, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie))
 
 MOCK_METHOD4 (updateParameterValue, void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue))
 
- Public Member Functions inherited from MantidQt::MantidWidgets::IFitScriptGeneratorModel
virtual void addFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0
 
virtual void addWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX)=0
 
virtual std::string generatePythonFitScript (std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &fitOptions, std::string const &filepath="")=0
 
virtual std::string getAdjustedFunctionIndex (std::string const &parameter) const =0
 
virtual std::string getDomainName (FitDomainIndex domainIndex) const =0
 
virtual std::string getEquivalentFunctionIndexForDomain (FitDomainIndex domainIndex, std::string const &functionIndex) const =0
 
virtual std::string getEquivalentFunctionIndexForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex) const =0
 
virtual std::string getEquivalentParameterTieForDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie) const =0
 
virtual FittingMode getFittingMode () const =0
 
virtual std::string getFullParameter (FitDomainIndex domainIndex, std::string const &parameter) const =0
 
virtual std::string getFullTie (FitDomainIndex domainIndex, std::string const &tie) const =0
 
virtual Mantid::API::IFunction_sptr getFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const =0
 
virtual std::vector< GlobalParametergetGlobalParameters () const =0
 
virtual std::vector< GlobalTiegetGlobalTies () const =0
 
virtual std::string getParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual std::string getParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual double getParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual bool hasParameter (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual bool hasWorkspaceDomain (std::string const &workspaceName, WorkspaceIndex workspaceIndex) const =0
 
virtual bool isParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter) const =0
 
virtual bool isSimultaneousMode () const =0
 
virtual std::tuple< bool, std::string > isValid () const =0
 
virtual std::size_t numberOfDomains () const =0
 
virtual void removeDomain (FitDomainIndex domainIndex)=0
 
virtual void removeFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0
 
virtual void removeParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter)=0
 
virtual void renameWorkspace (std::string const &workspaceName, std::string const &newName)=0
 
virtual void setFittingMode (FittingMode fittingMode)=0
 
virtual void setFunction (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)=0
 
virtual void setGlobalParameters (std::vector< std::string > const &parameters)=0
 
virtual void setOutputBaseName (std::string const &outputBaseName)=0
 
virtual void setParameterConstraint (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint)=0
 
virtual void setParameterFixed (FitDomainIndex domainIndex, std::string const &fullParameter, bool fix)=0
 
virtual void setParameterTie (FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie)=0
 
virtual void setParameterValue (FitDomainIndex domainIndex, std::string const &fullParameter, double value)=0
 
virtual void subscribePresenter (IFitScriptGeneratorPresenter *presenter)=0
 
virtual void updateAttributeValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue)=0
 
virtual bool updateEndX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX)=0
 
virtual void updateParameterConstraint (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint)=0
 
virtual void updateParameterTie (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie)=0
 
virtual void updateParameterValue (std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue)=0
 
virtual bool updateStartX (std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX)=0
 
virtual ~IFitScriptGeneratorModel ()=default
 

Detailed Description

Definition at line 127 of file FitScriptGeneratorMockObjects.h.

Member Function Documentation

◆ generatePythonFitScript()

std::string MockFitScriptGeneratorModel::generatePythonFitScript ( std::tuple< std::string, std::string, std::string, std::string, std::string, bool > const &  fitOptions,
std::string const &  filepath = "" 
)
inlineoverride

Definition at line 215 of file FitScriptGeneratorMockObjects.h.

◆ MOCK_CONST_METHOD0() [1/6]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD0 ( getFittingMode  ,
FittingMode()   
)

◆ MOCK_CONST_METHOD0() [2/6]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD0 ( getGlobalParameters  ,
std::vector< GlobalParameter () 
)

◆ MOCK_CONST_METHOD0() [3/6]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD0 ( getGlobalTies  ,
std::vector< GlobalTie () 
)

◆ MOCK_CONST_METHOD0() [4/6]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD0 ( isSimultaneousMode  ,
bool()   
)

◆ MOCK_CONST_METHOD0() [5/6]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD0 ( isValid  ,
std::tuple< bool, std::string >  () 
)

◆ MOCK_CONST_METHOD0() [6/6]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD0 ( numberOfDomains  ,
std::size_t()   
)

◆ MOCK_CONST_METHOD1() [1/2]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD1 ( getAdjustedFunctionIndex  ,
std::string(std::string const &parameter)   
)

◆ MOCK_CONST_METHOD1() [2/2]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD1 ( getDomainName  ,
std::string(MantidQt::MantidWidgets::FitDomainIndex domainIndex)   
)

◆ MOCK_CONST_METHOD2() [1/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getEquivalentFunctionIndexForDomain  ,
std::string(MantidQt::MantidWidgets::FitDomainIndex, std::string const &functionIndex)   
)

◆ MOCK_CONST_METHOD2() [2/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getFullParameter  ,
std::string(MantidQt::MantidWidgets::FitDomainIndex, std::string const &parameter)   
)

◆ MOCK_CONST_METHOD2() [3/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getFullTie  ,
std::string(MantidQt::MantidWidgets::FitDomainIndex, std::string const &tie)   
)

◆ MOCK_CONST_METHOD2() [4/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getFunction  ,
Mantid::API::IFunction_sptr(std::string const &workspaceName, WorkspaceIndex workspaceIndex)   
)

◆ MOCK_CONST_METHOD2() [5/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getParameterConstraint  ,
std::string(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter)   
)

◆ MOCK_CONST_METHOD2() [6/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getParameterTie  ,
std::string(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter)   
)

◆ MOCK_CONST_METHOD2() [7/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( getParameterValue  ,
double(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter)   
)

◆ MOCK_CONST_METHOD2() [8/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( hasParameter  ,
bool(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &parameter)   
)

◆ MOCK_CONST_METHOD2() [9/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( hasWorkspaceDomain  ,
bool(std::string const &workspaceName, WorkspaceIndex workspaceIndex)   
)

◆ MOCK_CONST_METHOD2() [10/10]

MockFitScriptGeneratorModel::MOCK_CONST_METHOD2 ( isParameterFixed  ,
bool(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter)   
)

◆ MOCK_CONST_METHOD3()

MockFitScriptGeneratorModel::MOCK_CONST_METHOD3 ( getEquivalentFunctionIndexForDomain  ,
std::string(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex)   
)

◆ MOCK_CONST_METHOD4()

MockFitScriptGeneratorModel::MOCK_CONST_METHOD4 ( getEquivalentParameterTieForDomain  ,
std::string(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &fullTie)   
)

◆ MOCK_METHOD1() [1/5]

MockFitScriptGeneratorModel::MOCK_METHOD1 ( removeDomain  ,
void(MantidQt::MantidWidgets::FitDomainIndex domainIndex)   
)

◆ MOCK_METHOD1() [2/5]

MockFitScriptGeneratorModel::MOCK_METHOD1 ( setFittingMode  ,
void(FittingMode fittingMode)   
)

◆ MOCK_METHOD1() [3/5]

MockFitScriptGeneratorModel::MOCK_METHOD1 ( setGlobalParameters  ,
void(std::vector< std::string > const &parameters)   
)

◆ MOCK_METHOD1() [4/5]

MockFitScriptGeneratorModel::MOCK_METHOD1 ( setOutputBaseName  ,
void(std::string const &outputBaseName)   
)

◆ MOCK_METHOD1() [5/5]

MockFitScriptGeneratorModel::MOCK_METHOD1 ( subscribePresenter  ,
void(IFitScriptGeneratorPresenter *presenter)   
)

◆ MOCK_METHOD2()

MockFitScriptGeneratorModel::MOCK_METHOD2 ( renameWorkspace  ,
void(std::string const &workspaceName, std::string const &newName)   
)

◆ MOCK_METHOD3() [1/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( addFunction  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)   
)

◆ MOCK_METHOD3() [2/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( removeFunction  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)   
)

◆ MOCK_METHOD3() [3/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( removeParameterConstraint  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter)   
)

◆ MOCK_METHOD3() [4/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( setFunction  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &function)   
)

◆ MOCK_METHOD3() [5/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( setParameterConstraint  ,
void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &constraint)   
)

◆ MOCK_METHOD3() [6/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( setParameterFixed  ,
void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, bool fix)   
)

◆ MOCK_METHOD3() [7/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( setParameterTie  ,
void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, std::string const &tie)   
)

◆ MOCK_METHOD3() [8/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( setParameterValue  ,
void(MantidQt::MantidWidgets::FitDomainIndex domainIndex, std::string const &fullParameter, double value  
)

◆ MOCK_METHOD3() [9/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( updateEndX  ,
bool(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double endX)   
)

◆ MOCK_METHOD3() [10/10]

MockFitScriptGeneratorModel::MOCK_METHOD3 ( updateStartX  ,
bool(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX)   
)

◆ MOCK_METHOD4() [1/5]

MockFitScriptGeneratorModel::MOCK_METHOD4 ( addWorkspaceDomain  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, double startX, double endX)   
)

◆ MOCK_METHOD4() [2/5]

MockFitScriptGeneratorModel::MOCK_METHOD4 ( updateAttributeValue  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullAttribute, Mantid::API::IFunction::Attribute const &newValue)   
)

◆ MOCK_METHOD4() [3/5]

MockFitScriptGeneratorModel::MOCK_METHOD4 ( updateParameterConstraint  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &functionIndex, std::string const &constraint)   
)

◆ MOCK_METHOD4() [4/5]

MockFitScriptGeneratorModel::MOCK_METHOD4 ( updateParameterTie  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, std::string const &tie)   
)

◆ MOCK_METHOD4() [5/5]

MockFitScriptGeneratorModel::MOCK_METHOD4 ( updateParameterValue  ,
void(std::string const &workspaceName, WorkspaceIndex workspaceIndex, std::string const &fullParameter, double newValue)   
)

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