38#include "IpIpoptApplication.hpp"
39#include "IpSolveStatistics.hpp"
40#include "IpSmartPtr.hpp"
81 Ipopt::SmartPtr <Ipopt::TNLP>
OPT;
92 void msgOut(
const int msgCode_h,
const string message_h);
93 void addLayer(
string layerName_h,
string layerLabel_h);
94 void updatePixel(
string layerName_h,
int x_h,
int y_h, QColor color);
95 void updateImage(
string layerName_h,
const QImage &image_h);
149 void runFromConsole(QString inputFileName_h, QString scenarioName_h);
175 void checkQuery(
int px_ID,
int currentLayerIndex,
bool newRequest=
true);
This file is the header of BaseClass and it is included by ALL compiled code.
Base class for the regmas application.
Class responsable to keep the logbook of the Carbon Balance.
Class to manage the spatial dimension.
Init the environment, the objects and the agents of the model
The core of the model (spatial version).
Regional data, including macros and settings.
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
void setCBALPointer(Carbon *CBAL_h)
Module that account for the Carbon Balance.
void activateTab(int pos_h)
void sendScenarioOptionsToGUI(const QVector< QString > &scenarios_h)
void setDOPointer(Output *DO_h)
manage the printing of data needed for scenario-analisys. The "message output" (needed to see "what i...
void setOPTPointer(Ipopt::SmartPtr< Ipopt::TNLP > OPT_h)
Perform the market optimisation.
void setScenarioName(const string &scenarioName_h)
Init * INIT
the Init object (pre-simulation scheduler)
void setGISPointer(Gis *GIS_h)
GIS information and methods..
void upgradeMainSBLabelToGui(const QString &logMessage)
void treeViewerItemRemoveToGui(string itemID)
string getInputFileName()
string getBaseDirectory()
void resetGUIForNewSimulation()
void upgradeMainSBLabel(const string message_h)
void updateImage(string layerName_h, const QImage &image_h)
void updatePixel(string layerName_h, int x_h, int y_h, QColor color)
void runFromConsole(QString inputFileName_h, QString scenarioName_h)
Re-draw the map making it to fit (with the right proportions) to the widget.
Carbon * CBAL
Module for the Carbon Balance.
Scheduler * SCD
the scheduler object (simulation-loops scheduler)
ModelCoreSpatial * SCORE
Core of the model (spatial version)
void publishQueryResults(const QString &results)
Sandbox * TEST
Various debugging code for development.
void addLayerToGui(QString layerName, QString layerLabel)
void treeViewerItemChangeValueToGui(string itemID, string newValue)
void setSCDPointer(Scheduler *SCD_h)
the scheduler object. It manage the simulation loops..
void upgradeYearSBLabelToGui(const QString &logMessage)
void treeViewerChangeGeneralPropertyValue(string propertyName, string newValue)
void msgOut(const int msgCode_h, const string message_h)
Gis * GIS
GIS information and methods.
volatile int layerQueryPos
ModelData * MD
the model data object
Ipopt::SmartPtr< Ipopt::TNLP > OPT
Market optimisation.
void updateImageToGui(QString layerName_h, QImage image_h)
std::mt19937 * gen
used in the sampling from normal distribution
void setGUIUnsavedStatus(bool status_h)
void setTestPointer(Sandbox *TEST_h)
the sandbox object for within-development quick tests
void queryRequestOnPx(int px_ID, int currentLayerIndex)
void addLayer(string layerName_h, string layerLabel_h)
void deleteDeadOldPointers()
Useful for several model running without leaving the GUI.
ModelCore * CORE
Core of the model.
void setCOREPointer(ModelCore *CORE_h)
Perform the algorithms of the model.
void setMDPointer(ModelData *MD_h)
the regional data object..
void upgradeYearSBLabel(int year)
void setInputFileName(QString inputFileName_h)
void setINITPointer(Init *INIT_h)
the Init object, it schedule the pre-simulation phase..
void setSCOREPointer(ModelCoreSpatial *SCORE_h)
Perform the algorithms of the model.
void setMessage(const QString &message)
void treeViewerAddItemToGui(string text, string itemID, string parentID)
void setGUIMapDimension(int x_h, int y_h)
void checkQuery(int px_ID, int currentLayerIndex, bool newRequest=true)
Switch and control the access to pxQueryID and layerQueryPos members.
void setOutputDirNameToGui(string outputDirname_h)
void upgradeLogArea(const QString &logMessage)
void retrieveScenarioNameFromGUI(const QString &scenarioName_h)
void updatePixelToGui(QString layerName_h, int x_h, int y_h, QColor color)
void computeQuery(int px_ID, int currentLayerIndex)
Compute the pixel query and return it to the GUI (with a signal)
void setOutputDirName(string outputDirname_h)