All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RunDescriptor.hpp
Go to the documentation of this file.
1 /*
2 
3  This file is part of OpenFLUID software
4  Copyright(c) 2007, INRA - Montpellier SupAgro
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 /**
35  @file
36 
37  @author Jean-Christophe FABRE <fabrejc@supagro.inra.fr>
38  */
39 
40 
41 #ifndef __RUNDESCRIPTOR_HPP__
42 #define __RUNDESCRIPTOR_HPP__
43 
44 #include <openfluid/dllexport.hpp>
47 
48 
49 namespace openfluid { namespace fluidx {
50 
52 {
53  private:
54 
55  int m_DeltaT;
56 
58 
59  openfluid::core::DateTime m_BeginDate;
60  openfluid::core::DateTime m_EndDate;
61 
62  bool m_IsUserValuesBufferSize;
63  unsigned int m_ValuesBufferSize;
64 
65  bool m_Filled;
66 
67  public:
68 
69  RunDescriptor();
70 
71  RunDescriptor(int DeltaT,
73 
74  ~RunDescriptor();
75 
76  inline openfluid::core::DateTime getBeginDate() const {return m_BeginDate; };
77 
78  inline void setBeginDate(const openfluid::core::DateTime BeginDate) { m_BeginDate = BeginDate; };
79 
80  inline openfluid::core::DateTime getEndDate() const {return m_EndDate; };
81 
82  inline void setEndDate(const openfluid::core::DateTime EndDate) { m_EndDate = EndDate; };
83 
84  inline int getDeltaT() const {return m_DeltaT; };
85 
86  inline void setDeltaT(const int DeltaT) { m_DeltaT = DeltaT; };
87 
88  inline void setValuesBufferSize(const unsigned int StepsNbr)
89  {
90  m_ValuesBufferSize = StepsNbr; m_IsUserValuesBufferSize = true;
91  };
92 
93  inline bool isUserValuesBufferSize() const { return m_IsUserValuesBufferSize; };
94 
95  inline unsigned int getValuesBufferSize() const { return m_ValuesBufferSize; };
96 
98 
99  inline void setSchedulingConstraint(const openfluid::base::SimulationStatus::SchedulingConstraint& SConst) { m_SchedConstraint = SConst; };
100 
101  inline bool isFilled() const { return m_Filled; };
102 
103  inline void setFilled(const bool Filled) { m_Filled = Filled; };
104 
106  {
107  m_IsUserValuesBufferSize = false;
108  }
109 
110 };
111 
112 } } // namespaces
113 
114 
115 #endif /* __RUNDESCRIPTOR_HPP__ */
void setDeltaT(const int DeltaT)
Definition: RunDescriptor.hpp:86
Header of ...
Class for management of date and time information.
Definition: DateTime.hpp:131
void setBeginDate(const openfluid::core::DateTime BeginDate)
Definition: RunDescriptor.hpp:78
void unsetUserValuesBufferSize()
Definition: RunDescriptor.hpp:105
void setEndDate(const openfluid::core::DateTime EndDate)
Definition: RunDescriptor.hpp:82
void setFilled(const bool Filled)
Definition: RunDescriptor.hpp:103
void setSchedulingConstraint(const openfluid::base::SimulationStatus::SchedulingConstraint &SConst)
Definition: RunDescriptor.hpp:99
bool isFilled() const
Definition: RunDescriptor.hpp:101
openfluid::core::DateTime getEndDate() const
Definition: RunDescriptor.hpp:80
unsigned int getValuesBufferSize() const
Definition: RunDescriptor.hpp:95
openfluid::base::SimulationStatus::SchedulingConstraint getSchedulingConstraint() const
Definition: RunDescriptor.hpp:97
int getDeltaT() const
Definition: RunDescriptor.hpp:84
SchedulingConstraint
Definition: SimulationStatus.hpp:62
openfluid::core::DateTime getBeginDate() const
Definition: RunDescriptor.hpp:76
Definition: RunDescriptor.hpp:51
bool isUserValuesBufferSize() const
Definition: RunDescriptor.hpp:93
void setValuesBufferSize(const unsigned int StepsNbr)
Definition: RunDescriptor.hpp:88
#define DLLEXPORT
Definition: dllexport.hpp:51