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 RunDescriptor.hpp
36 
37  @author Jean-Christophe FABRE <jean-christophe.fabre@supagro.inra.fr>
38  */
39 
40 
41 #ifndef __OPENFLUID_FLUIDX_RUNDESCRIPTOR_HPP__
42 #define __OPENFLUID_FLUIDX_RUNDESCRIPTOR_HPP__
43 
44 
45 #include <openfluid/dllexport.hpp>
48 
49 
50 namespace openfluid { namespace fluidx {
51 
53 {
54  private:
55 
56  int m_DeltaT;
57 
59 
60  openfluid::core::DateTime m_BeginDate;
61  openfluid::core::DateTime m_EndDate;
62 
63  bool m_IsUserValuesBufferSize;
64  unsigned int m_ValuesBufferSize;
65 
66  bool m_Filled;
67 
68  public:
69 
70  RunDescriptor();
71 
72  RunDescriptor(int DeltaT,
74 
75  ~RunDescriptor();
76 
78  {return m_BeginDate; };
79 
80  inline void setBeginDate(const openfluid::core::DateTime BeginDate)
81  { m_BeginDate = BeginDate; };
82 
84  {return m_EndDate; };
85 
86  inline void setEndDate(const openfluid::core::DateTime EndDate)
87  { m_EndDate = EndDate; };
88 
89  inline int getDeltaT() const
90  {return m_DeltaT; };
91 
92  inline void setDeltaT(const int DeltaT)
93  { m_DeltaT = DeltaT; };
94 
95  inline void setValuesBufferSize(const unsigned int StepsNbr)
96  {
97  m_ValuesBufferSize = StepsNbr; m_IsUserValuesBufferSize = true;
98  };
99 
100  inline bool isUserValuesBufferSize() const
101  { return m_IsUserValuesBufferSize; };
102 
103  inline unsigned int getValuesBufferSize() const
104  { return m_ValuesBufferSize; };
105 
107  { return m_SchedConstraint; };
108 
110  { m_SchedConstraint = SConst; };
111 
112  inline bool isFilled() const
113  { return m_Filled; };
114 
115  inline void setFilled(const bool Filled)
116  { m_Filled = Filled; };
117 
119  {
120  m_IsUserValuesBufferSize = false;
121  }
122 
123 };
124 
125 
126 } } // namespaces
127 
128 
129 #endif /* __OPENFLUID_FLUIDX_RUNDESCRIPTOR_HPP__ */
openfluid::base::SimulationStatus::SchedulingConstraint getSchedulingConstraint() const
Definition: RunDescriptor.hpp:106
void setBeginDate(const openfluid::core::DateTime BeginDate)
Definition: RunDescriptor.hpp:80
openfluid::core::DateTime getEndDate() const
Definition: RunDescriptor.hpp:83
unsigned int getValuesBufferSize() const
Definition: RunDescriptor.hpp:103
SchedulingConstraint
Definition: SimulationStatus.hpp:62
int getDeltaT() const
Definition: RunDescriptor.hpp:89
#define OPENFLUID_API
Definition: dllexport.hpp:87
Definition: RunDescriptor.hpp:52
void setFilled(const bool Filled)
Definition: RunDescriptor.hpp:115
Definition: ApplicationException.hpp:47
void setEndDate(const openfluid::core::DateTime EndDate)
Definition: RunDescriptor.hpp:86
Class for management of date and time information.
Definition: DateTime.hpp:132
openfluid::core::DateTime getBeginDate() const
Definition: RunDescriptor.hpp:77
bool isFilled() const
Definition: RunDescriptor.hpp:112
void unsetUserValuesBufferSize()
Definition: RunDescriptor.hpp:118
void setValuesBufferSize(const unsigned int StepsNbr)
Definition: RunDescriptor.hpp:95
bool isUserValuesBufferSize() const
Definition: RunDescriptor.hpp:100
void setDeltaT(const int DeltaT)
Definition: RunDescriptor.hpp:92
void setSchedulingConstraint(const openfluid::base::SimulationStatus::SchedulingConstraint &SConst)
Definition: RunDescriptor.hpp:109