Documentation for OpenFLUID 2.2.2
Loading...
Searching...
No Matches
RunConfigurationDescriptor.hpp
Go to the documentation of this file.
1/*
2
3 This file is part of OpenFLUID software
4 Copyright(c) 2021-2026, INRAE
5
6
7 == GNU General Public License Usage ==
8
9 OpenFLUID is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 OpenFLUID is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with OpenFLUID. If not, see <http://www.gnu.org/licenses/>.
21
22
23 == Other Usage ==
24
25 Other Usage means a use of OpenFLUID that is inconsistent with the GPL
26 license, and requires a written agreement between You and INRA.
27 Licensees for Other Usage of OpenFLUID may use this file in accordance
28 with the terms contained in the written agreement between You and INRA.
29
30*/
31
32
33/**
34 @file RunConfigurationDescriptor.hpp
35
36 @author Jean-Christophe FABRE <jean-christophe.fabre@inra.fr>
37 */
38
39
40#ifndef __OPENFLUID_FLUIDX_RUNCONFIGURATIONDESCRIPTOR_HPP__
41#define __OPENFLUID_FLUIDX_RUNCONFIGURATIONDESCRIPTOR_HPP__
42
43
47
48
49namespace openfluid { namespace fluidx {
50
51
53{
54 private:
55
56 int m_DeltaT;
57
59
60 openfluid::core::DateTime m_BeginDate;
62
63 bool m_IsUserValuesBufferSize;
64 unsigned int m_ValuesBufferSize;
65
66 /**
67 Indicates if the configuration is set up ("filled") or not
68 */
69 bool m_Filled;
70
71
72 public:
73
75
78
80
82 {
83 return m_BeginDate;
84 }
85
86 inline void setBeginDate(const openfluid::core::DateTime BeginDate)
87 {
88 m_BeginDate = BeginDate;
89 }
90
92 {
93 return m_EndDate;
94 }
95
96 inline void setEndDate(const openfluid::core::DateTime EndDate)
97 {
98 m_EndDate = EndDate;
99 }
100
101 inline int getDeltaT() const
102 {
103 return m_DeltaT;
104 }
105
106 inline void setDeltaT(const int DeltaT)
107 {
108 m_DeltaT = DeltaT;
109 }
110
111 inline void setValuesBufferSize(const unsigned int StepsNbr)
112 {
113 m_ValuesBufferSize = StepsNbr; m_IsUserValuesBufferSize = true;
114 }
115
116 inline bool isUserValuesBufferSize() const
117 {
118 return m_IsUserValuesBufferSize;
119 }
120
121 inline unsigned int getValuesBufferSize() const
122 {
123 return m_ValuesBufferSize;
124 }
125
127 {
128 return m_SchedConstraint;
129 }
130
132 {
133 m_SchedConstraint = SConst;
134 }
135
136 inline bool isFilled() const
137 {
138 return m_Filled;
139 }
140
141 inline void setFilled(const bool Filled)
142 {
143 m_Filled = Filled;
144 }
145
147 {
148 m_IsUserValuesBufferSize = false;
149 }
150
151};
152
153
154} } // namespaces
155
156
157#endif /* __OPENFLUID_FLUIDX_RUNCONFIGURATIONDESCRIPTOR_HPP__ */
SchedulingConstraint
Definition SimulationStatus.hpp:62
Class for management of date and time information.
Definition DateTime.hpp:88
Definition RunConfigurationDescriptor.hpp:53
openfluid::core::DateTime getEndDate() const
Definition RunConfigurationDescriptor.hpp:91
void setEndDate(const openfluid::core::DateTime EndDate)
Definition RunConfigurationDescriptor.hpp:96
bool isUserValuesBufferSize() const
Definition RunConfigurationDescriptor.hpp:116
RunConfigurationDescriptor(int DeltaT, openfluid::core::DateTime BeginDate, openfluid::core::DateTime EndDate)
openfluid::core::DateTime getBeginDate() const
Definition RunConfigurationDescriptor.hpp:81
void setSchedulingConstraint(const openfluid::base::SimulationStatus::SchedulingConstraint &SConst)
Definition RunConfigurationDescriptor.hpp:131
void setDeltaT(const int DeltaT)
Definition RunConfigurationDescriptor.hpp:106
void setFilled(const bool Filled)
Definition RunConfigurationDescriptor.hpp:141
unsigned int getValuesBufferSize() const
Definition RunConfigurationDescriptor.hpp:121
int getDeltaT() const
Definition RunConfigurationDescriptor.hpp:101
void setValuesBufferSize(const unsigned int StepsNbr)
Definition RunConfigurationDescriptor.hpp:111
void setBeginDate(const openfluid::core::DateTime BeginDate)
Definition RunConfigurationDescriptor.hpp:86
openfluid::base::SimulationStatus::SchedulingConstraint getSchedulingConstraint() const
Definition RunConfigurationDescriptor.hpp:126
void unsetUserValuesBufferSize()
Definition RunConfigurationDescriptor.hpp:146
bool isFilled() const
Definition RunConfigurationDescriptor.hpp:136
#define OPENFLUID_API
Definition dllexport.hpp:86
Definition ApplicationException.hpp:47