Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
study.hxx
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_LIBS_STUDY_STUDY_HXX__
22#define __ANTARES_LIBS_STUDY_STUDY_HXX__
23
24namespace Antares
25{
26namespace Data
27{
28inline bool Study::readonly() const
29{
30 return (parameters.readonly);
31}
32
33template<unsigned int TimeSeriesT>
35{
36 storeTimeseriesNumbers<TimeSeriesT>(resultWriter, areas);
37}
38
39template<enum TimeSeriesType TS>
41{
42 switch (TS)
43 {
44 case TimeSeriesType::timeSeriesLoad:
46 break;
47 case TimeSeriesType::timeSeriesSolar:
49 break;
50 case TimeSeriesType::timeSeriesWind:
52 break;
53 case TimeSeriesType::timeSeriesHydro:
55 break;
56 default:
57 break;
58 }
59}
60
61} // namespace Data
62} // namespace Antares
63
64#endif // __ANTARES_LIBS_STUDY_STUDY_HXX__
bool readonly
Read-only mode.
Definition parameters.h:345
Parameters parameters
Parameters.
Definition study.h:509
void destroyAllSolarTSGeneratorData()
Destroy all data of the solar TS generator.
Definition study.cpp:966
void destroyAllLoadTSGeneratorData()
Destroy all data of the load TS generator.
Definition study.cpp:961
void destroyAllWindTSGeneratorData()
Destroy all data of the wind TS generator.
Definition study.cpp:976
void destroyAllHydroTSGeneratorData()
Destroy all data of the hydro TS generator.
Definition study.cpp:971
bool readonly() const
Get if the study is in readonly mode.
Definition study.hxx:28
void storeTimeSeriesNumbers(Solver::IResultWriter &resultWriter) const
Store the timeseries numbers.
Definition study.hxx:34
void destroyTSGeneratorData()
Destroy all data of the TS generator '@TS'.
Definition study.hxx:40
AreaList areas
All available areas.
Definition study.h:529
Definition i_writer.h:34