-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlsObjective.h
54 lines (39 loc) · 1.27 KB
/
lsObjective.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*! \file objective.h
\brief basic storage class for constraints used by ls::FluxBalance
\par
Objectives consist of an Id and value that has to be met.
\author Frank T. Bergmann ([email protected])
*/
#ifndef OBJECTIVE_H
#define OBJECTIVE_H
#include <string>
#include "libutil.h"
namespace ls
{
/*! \class ls::Objective
\brief basic storage class for constraints used by ls::FluxBalance
\par
ls::Objective consist of an Id and value that has to be met.
*/
class Objective
{
public:
//! create a new objective
LIB_EXTERN Objective(void);
//! create a new objective with the given values
LIB_EXTERN Objective(std::string &id, double value) : Id(id), Value(value) {}
//! virtual destructor
LIB_EXTERN virtual ~Objective(void);
//! get the flux name
LIB_EXTERN std::string getId() { return Id;}
//! set the flux name for this constraint
LIB_EXTERN void setId(std::string id) { Id = id; }
//! return the current objective value
LIB_EXTERN double getValue() { return Value; }
//! set the current objective value
LIB_EXTERN void setValue(double value) { Value = value; }
std::string Id;
double Value;
};
}
#endif