Antares Simulator
Power System Simulator
thermalmodulation.h
1 /*
2  * Copyright 2007-2025, RTE (https://www.rte-france.com)
3  * See AUTHORS.txt
4  * SPDX-License-Identifier: MPL-2.0
5  * This file is part of Antares-Simulator,
6  * Adequacy and Performance assessment for interconnected energy networks.
7  *
8  * Antares_Simulator is free software: you can redistribute it and/or modify
9  * it under the terms of the Mozilla Public Licence 2.0 as published by
10  * the Mozilla Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * Antares_Simulator is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * Mozilla Public Licence 2.0 for more details.
17  *
18  * You should have received a copy of the Mozilla Public Licence 2.0
19  * along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20  */
21 #ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMAL_COMMON_MODULATION_H__
22 #define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMAL_COMMON_MODULATION_H__
23 
24 #include "../../../../input/thermal-cluster.h"
25 #include "../matrix.h"
26 #include <antares/solver/ts-generator/prepro.h>
27 
28 namespace Antares::Component::Datagrid::Renderer
29 {
31 {
32 public:
34 
35 public:
36  ThermalClusterCommonModulation(wxWindow* control,
38 
40 
41  virtual int width() const
42  {
43  return AncestorType::width() + 4;
44  }
45 
46  virtual int height() const
47  {
48  return AncestorType::height();
49  }
50 
51  virtual wxString columnCaption(int column) const;
52 
53  virtual wxString rowCaption(int row) const;
54 
55  virtual wxString cellValue(int x, int y) const;
56 
57  virtual double cellNumericValue(int x, int y) const;
58 
59  virtual bool cellValue(int x, int y, const Yuni::String& v);
60 
61  virtual void resetColors(int, int, wxColour&, wxColour&) const
62  { /*Do nothing*/
63  }
64 
65  virtual wxColour verticalBorderColor(int x, int y) const;
66  virtual wxColour horizontalBorderColor(int x, int y) const;
67 
68  virtual IRenderer::CellStyle cellStyle(int col, int row) const;
69 
70  virtual uint maxWidthResize() const
71  {
72  return 0;
73  }
74 
75  virtual uint maxHeightResize() const
76  {
77  return 0;
78  }
79 
80  virtual Date::Precision precision()
81  {
82  return Date::hourly;
83  }
84 
85 protected:
86  virtual void internalThermalClusterChanged(Antares::Data::ThermalCluster* cluster);
87  virtual void onStudyClosed();
88 
89 private:
91 
92 }; // class ThermalClusterPrepro
93 
94 } // namespace Antares::Component::Datagrid::Renderer
95 
96 #endif // __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMAL_COMMON_MODULATION_H__
virtual int width() const
Get the width of the datagrid.
Definition: thermalmodulation.h:41
virtual wxString rowCaption(int row) const
Get the row caption.
Definition: thermalmodulation.cpp:45
virtual Date::Precision precision()
Time Precision.
Definition: thermalmodulation.h:80
virtual int height() const
Get the height of the datagrid.
Definition: thermalmodulation.h:46
virtual wxString cellValue(int x, int y) const
Get the value of a cell.
Definition: thermalmodulation.cpp:80
virtual wxColour horizontalBorderColor(int x, int y) const
Get the color of the horizontal bottom border.
Definition: thermalmodulation.cpp:188
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition: thermalmodulation.cpp:183
virtual uint maxWidthResize() const
The most suitable column count.
Definition: thermalmodulation.h:70
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition: thermalmodulation.cpp:114
virtual uint maxHeightResize() const
The most suitable column count.
Definition: thermalmodulation.h:75
virtual bool cellValue(int x, int y, const Yuni::String &v)
Set the value of a cell.
virtual wxString columnCaption(int column) const
Get the column caption.
Definition: thermalmodulation.cpp:54
virtual void onStudyClosed()
Event: the study has been closed.
Definition: thermalmodulation.cpp:263
A single thermal cluster.
Definition: cluster.h:76
A n-by-n matrix.
Definition: matrix.h:44
uint height
Height of the matrix.
Definition: matrix.h:443
uint width
Width of the matrix.
Definition: matrix.h:441
Visual Component for displaying thermal clusters of an arbitrary area.
Definition: thermal-cluster.h:45