Case.h
Go to the documentation of this file.
9/*====================================================================================================================*/
10/*== Guards, Includes ==============================================================================================*/
11/*====================================================================================================================*/
38/*====================================================================================================================*/
39/*== class CallBack declaration =====================================================================================*/
40/*====================================================================================================================*/
54/*====================================================================================================================*/
55/*== class Case declaration =========================================================================================*/
56/*====================================================================================================================*/
Interface to the Handle class.
To define a call-back to be invoked when the asynchronous Case operations finish.
Definition: Case.h:45
virtual ~CallBack()
virtual void run(const std::string &data)
CallBack(std::string message)
An instance of a model - knows about variables, can be calculated and can export data to various form...
Definition: Case.h:59
int homotopySync(const HomotopyInput &homotopyInput)
synchronously perform homotopy calculation
void setCalculateFinishCallBack(CallBack *callBack)
sets the call back function to be called at the end of the execution of calculate
void setCalculateRunningCallBack(CallBack *callBack)
sets the call back function to be repeatedly called during the execution of calculate
int exportDataBase(const std::string &sqliteFileName) const
export database snapshot of all data related to the case instance in sqlite3 format
int exportOds(const std::string &xmlFileName) const
export stream table in ODF format
int calculate(void)
asynchronously calculate the case; emits a number of calculateRunning signals and the calculateFinish...
static std::string errorMessage(int error)
SensitivityResult sensitivitySync(const SensitivityInput &sensitivityInput, int &error)
synchronously perform sensitivity calculation
int exportJson(const std::string &jsonFileName) const
export JSON file report of all data related to the case instance
void setIntermediateSensitivityResultsCallBack(CallBack *callBack)
sets the call back function to be repeatedly called during the execution of sensitivity
@ ERROR_ARGUMENT
supplied argument is not valid
Definition: Case.h:68
@ ERROR_SERVER
server-side error while performing the operation
Definition: Case.h:69
@ ERROR_COMMUNICATION
communication problem
Definition: Case.h:67
@ ERROR_INVALID
Case object is not in a valid state.
Definition: Case.h:66
double get(const std::string &path, const std::string &unit, int &error)
get quantity in specified units
int homotopySync(const std::string &jsonHomotopyInput)
synchronously perform homotopy calculation
int homotopy(const std::string &jsonHomotopyInput)
asynchronously perform homotopy calculation emits a number of homotopyRunning signals and the homotop...
int setCheck(void)
enable check features: additional diagnostic and verbose recalculation can be used to perform a test ...
int exportTxt(const std::string &txtFileName) const
export text file report of all data related to the case instance
void setHomotopyFinishCallBack(CallBack *callBack)
sets the call back function to be called at the end of the execution of homotopy
int exportXml(const std::string &dir)
export to XML: recursively print all Quantities, Strings and Integers to xml files in the directory d...
int setDescription(const char *desc)
change the description of the instance
int homotopy(const HomotopyInput &homotopyInput)
asynchronously perform homotopy calculation emits a number of homotopyRunning signals and the homotop...
void setSensitivityFinishCallBack(CallBack *callBack)
sets the call back function to be called at the end of the execution of sensitivity
int sensitivity(const std::string &jsonSensitivityInput)
asynchronously perform sensitivity calculation emits N times (with N = the number of rows in the sens...
std::string sensitivitySync(const std::string &jsonSensitivityInput, int &error)
synchronously perform sensitivity calculation
std::vector< std::string > exportSvgs(const std::string &dir, bool tiny, int &error)
export all objects as SVGs
int sensitivity(const SensitivityInput &sensitivityInput)
asynchronously performs sensitivity calculation emits N times (with N = the number of rows in the sen...
int setTest(void)
enable test features: additional diagnostic and solution verification
void setHomotopyRunningCallBack(CallBack *callBack)
sets the call back function to be repeatedly called during the execution of homotopy
Opaque pointer to a server-side resource i.e. a Case object.
Definition: Handle.h:43
Definition: Case.h:35