Manual for OpenFLUID 2.1.11
machine
InterpGenerator.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
@file InterpGenerator.hpp
35
36
@author Jean-Christophe FABRE <jean-christophe.fabre@inra.fr>
37
*/
38
39
40
#ifndef __OPENFLUID_MACHINE_INTERPGENERATOR_HPP__
41
#define __OPENFLUID_MACHINE_INTERPGENERATOR_HPP__
42
43
44
#include <
openfluid/dllexport.hpp
>
45
#include <
openfluid/machine/Generator.hpp
>
46
#include <
openfluid/tools/DistributionBindings.hpp
>
47
48
49
namespace
openfluid
{
namespace
machine {
50
51
52
class
OPENFLUID_API
InterpGenerator
:
public
Generator
53
{
54
private
:
55
56
bool
m_IsMin;
57
bool
m_IsMax;
58
59
double
m_Min;
60
double
m_Max;
61
62
std::string m_SourcesFile;
63
std::string m_DistriFile;
64
65
openfluid::tools::DistributionBindings
* m_DistriBindings;
66
67
68
public
:
69
70
InterpGenerator
();
71
72
~
InterpGenerator
();
73
74
void
initParams(
const
openfluid::ware::WareParams_t
& Params);
75
76
void
prepareData();
77
78
void
checkConsistency();
79
80
openfluid::base::SchedulingRequest
initializeRun();
81
82
openfluid::base::SchedulingRequest
runStep();
83
84
void
finalizeRun
()
85
{ }
86
87
};
88
89
90
} }
//namespaces
91
92
93
#endif
/* __OPENFLUID_MACHINE_INTERPGENERATOR_HPP__ */
Generator.hpp
OPENFLUID_API
#define OPENFLUID_API
Definition:
dllexport.hpp:86
openfluid::machine::Generator
Definition:
Generator.hpp:52
openfluid::machine::InterpGenerator::finalizeRun
void finalizeRun()
Definition:
InterpGenerator.hpp:84
DistributionBindings.hpp
openfluid::base::SchedulingRequest
Definition:
SchedulingRequest.hpp:53
openfluid::tools::DistributionBindings
Definition:
DistributionBindings.hpp:71
openfluid
Definition:
ApplicationException.hpp:47
openfluid::ware::WareParams_t
std::map< WareParamKey_t, WareParamValue_t > WareParams_t
Definition:
TypeDefs.hpp:146
dllexport.hpp
openfluid::machine::InterpGenerator
Definition:
InterpGenerator.hpp:52
Generated by
1.8.17