Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
thermalprepro.h
1/*
2** Copyright 2007-2024, 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_THERMALPREPRO_H__
22#define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMALPREPRO_H__
23
24#include "../../../../input/thermal-cluster.h"
25#include "../matrix.h"
26#include <antares/solver/ts-generator/prepro.h>
27
28namespace Antares
29{
30namespace Component
31{
32namespace Datagrid
33{
34namespace Renderer
35{
37{
38public:
40
41public:
43
44
48
50 virtual ~ThermalClusterPrepro();
52
53 virtual int width() const
54 {
55 return 8;
56 }
57 virtual int height() const
58 {
59 return DAYS_PER_YEAR;
60 }
61
62 virtual wxString columnCaption(int colIndx) const;
63
64 virtual wxString rowCaption(int rowIndx) const;
65
66 virtual wxString cellValue(int x, int y) const;
67
68 virtual double cellNumericValue(int x, int y) const;
69
70 virtual bool cellValue(int, int, const Yuni::String&);
71
72 virtual void resetColors(int, int, wxColour&, wxColour&) const
73 { /*Do nothing*/
74 }
75
76 virtual Date::Precision precision()
77 {
78 return Date::daily;
79 }
80
81 virtual bool valid() const
82 {
83 return MatrixAncestorType::valid();
84 }
85
86 virtual IRenderer::CellStyle cellStyle(int col, int row) const;
87
88 virtual wxColour verticalBorderColor(int x, int y) const;
89 virtual wxColour horizontalBorderColor(int x, int y) const;
90
91 virtual uint maxWidthResize() const
92 {
93 return 0;
94 }
95 virtual uint maxHeightResize() const
96 {
97 return 0;
98 }
99
100protected:
101 virtual void internalThermalClusterChanged(Antares::Data::ThermalCluster* cluster);
102
103private:
104 virtual void onStudyClosed() override;
105
106private:
107 Antares::Data::PreproAvailability* pPreproAvailability = nullptr;
109
110}; // class ThermalClusterPrepro
111
112} // namespace Renderer
113} // namespace Datagrid
114} // namespace Component
115} // namespace Antares
116
117#endif // __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_AREA_THERMALPREPRO_H__
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition thermalprepro.cpp:257
virtual uint maxHeightResize() const
The most suitable column count.
Definition thermalprepro.h:95
virtual int height() const
Get the height of the datagrid.
Definition thermalprepro.h:57
virtual Date::Precision precision()
Time Precision.
Definition thermalprepro.h:76
virtual wxColour horizontalBorderColor(int x, int y) const
Get the color of the horizontal bottom border.
Definition thermalprepro.cpp:263
ThermalClusterPrepro(wxWindow *control, Toolbox::InputSelector::ThermalCluster *notifier)
Default constructor.
Definition thermalprepro.cpp:80
virtual wxString rowCaption(int rowIndx) const
Get the row caption.
Definition thermalprepro.cpp:191
virtual double cellNumericValue(int x, int y) const
Get the value of a cell.
Definition thermalprepro.cpp:146
virtual ~ThermalClusterPrepro()
Destructor.
Definition thermalprepro.cpp:89
virtual bool cellValue(int, int, const Yuni::String &)
Set the value of a cell.
virtual int width() const
Get the width of the datagrid.
Definition thermalprepro.h:53
virtual wxString cellValue(int x, int y) const
Get the value of a cell.
Definition thermalprepro.cpp:120
virtual wxString columnCaption(int colIndx) const
Get the column caption.
Definition thermalprepro.cpp:94
virtual uint maxWidthResize() const
The most suitable column count.
Definition thermalprepro.h:91
Thermal.
Definition prepro.h:37
A single thermal cluster.
Definition cluster.h:78
A n-by-n matrix.
Definition jit.h:30
Visual Component for displaying thermal clusters of an arbitrary area.
Definition thermal-cluster.h:49