38 #include "IpIpoptApplication.hpp" 39 #include "IpSolveStatistics.hpp" 40 #include "IpSmartPtr.hpp" 81 Ipopt::SmartPtr <Ipopt::TNLP>
OPT;
85 void setMessage(
const QString &message);
87 void deleteDeadOldPointers();
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);
96 void upgradeMainSBLabel(
const string message_h);
97 void upgradeYearSBLabel(
int year);
101 void setScenarioName(
const string &scenarioName_h){scenarioName=scenarioName_h.c_str();};
102 void setOutputDirName(
string outputDirname_h);
126 void setInputFileName(QString inputFileName_h);
145 emit treeViewerItemChangeValueToGui(
"general_"+propertyName, newValue);};
149 void runFromConsole(QString inputFileName_h, QString scenarioName_h);
153 void upgradeLogArea(
const QString &logMessage);
154 void upgradeMainSBLabelToGui(
const QString &logMessage);
155 void upgradeYearSBLabelToGui(
const QString &logMessage);
156 void addLayerToGui(QString layerName, QString layerLabel);
157 void updatePixelToGui(QString layerName_h,
int x_h,
int y_h, QColor color);
158 void updateImageToGui(QString layerName_h, QImage image_h);
159 void setOutputDirNameToGui(
string outputDirname_h);
160 void setGUIUnsavedStatus(
bool status_h);
161 void setGUIMapDimension(
int x_h,
int y_h);
162 void treeViewerItemChangeValueToGui(
string itemID,
string newValue);
163 void treeViewerItemRemoveToGui(
string itemID);
164 void treeViewerAddItemToGui(
string text,
string itemID,
string parentID);
165 void fitInWindowToGui();
166 void queryRequestOnPx(
int px_ID,
int currentLayerIndex);
167 void publishQueryResults(
const QString &results);
168 void activateTab(
int pos_h);
169 void resetGUIForNewSimulation();
170 void sendScenarioOptionsToGUI(
const QVector<QString> &scenarios_h);
175 void checkQuery(
int px_ID,
int currentLayerIndex,
bool newRequest=
true);
177 void computeQuery(
int px_ID,
int currentLayerIndex);
178 void retrieveScenarioNameFromGUI(
const QString &scenarioName_h);
void setSCDPointer(Scheduler *SCD_h)
the scheduler object. It manage the simulation loops..
volatile int layerQueryPos
ModelData * MD
the model data object
Init * INIT
the Init object (pre-simulation scheduler)
Init the environment, the objects and the agents of the model
Scheduler * SCD
the scheduler object (simulation-loops scheduler)
Gis * GIS
GIS information and methods.
Thread manager. Responsable to manage the main thread and "speak" with the GUI.
void setSCOREPointer(ModelCoreSpatial *SCORE_h)
Perform the algorithms of the model.
Regional data, including macros and settings.
void setScenarioName(const string &scenarioName_h)
ModelCore * CORE
Core of the model.
ModelCoreSpatial * SCORE
Core of the model (spatial version)
void setCOREPointer(ModelCore *CORE_h)
Perform the algorithms of the model.
void setTestPointer(Sandbox *TEST_h)
the sandbox object for within-development quick tests
Ipopt::SmartPtr< Ipopt::TNLP > OPT
Market optimisation.
Carbon * CBAL
Module for the Carbon Balance.
void setINITPointer(Init *INIT_h)
the Init object, it schedule the pre-simulation phase..
Base class for the regmas application.
Class to manage the spatial dimension.
void setCBALPointer(Carbon *CBAL_h)
Module that account for the Carbon Balance.
void treeViewerChangeGeneralPropertyValue(string propertyName, string newValue)
string getInputFileName()
Class responsable to keep the logbook of the Carbon Balance.
std::mt19937 * gen
used in the sampling from normal distribution
void setGISPointer(Gis *GIS_h)
GIS information and methods..
string getBaseDirectory()
The core of the model (spatial version).
void setMDPointer(ModelData *MD_h)
the regional data object..
void setOPTPointer(Ipopt::SmartPtr< Ipopt::TNLP > OPT_h)
Perform the market optimisation.
This file is the header of BaseClass and it is included by ALL compiled code.
void setDOPointer(Output *DO_h)
manage the printing of data needed for scenario-analisys. The "message output" (needed to see "what i...
Sandbox * TEST
Various debugging code for development.