/[ascend]/trunk/pygtk/variable.h
ViewVC logotype

Contents of /trunk/pygtk/variable.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (14 years, 1 month ago) by johnpye
File MIME type: text/x-chdr
File size: 768 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
1 #ifndef SWIG_VARIABLE_H
2 #define SWIG_VARIABLE_H
3
4 #include <string>
5
6 #include "simulation.h"
7
8 #include "config.h"
9 extern "C"{
10 #include <utilities/ascConfig.h>
11 #include <solver/slv_types.h>
12 #include <solver/var.h>
13 }
14
15 /**
16 This is a wrapper for the var_variable type in ASCEND. This
17 type is used in reporting the variables in an instance, including
18 when looking for 'eligible' variables which can be fixed.
19 */
20 class Variable{
21 private:
22 Simulation *sim;
23 struct var_variable *var;
24
25 public:
26 Variable();
27 Variable(const Variable &old);
28 Variable(Simulation *sim, var_variable *var);
29
30 const std::string getName() const;
31 const double getValue() const;
32 const double getNominal() const;
33 const double getUpperBound() const;
34 const double getLowerBound() const;
35 };
36
37 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22