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

Contents of /trunk/pygtk/relation.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 736 - (show annotations) (download) (as text)
Wed Jul 5 04:56:26 2006 UTC (14 years, 2 months ago) by johnpye
File MIME type: text/x-chdr
File size: 706 byte(s)
Relation expressions shown in diagnose window
(click in incidence matrix, then (i) or alt-r)
1 #ifndef ASCXX_RELATION_H
2 #define ASCXX_RELATION_H
3
4 #include <string>
5 #include <vector>
6
7 #include "simulation.h"
8
9 #include "config.h"
10 extern "C"{
11 #include <utilities/ascConfig.h>
12 #include <solver/slv_types.h>
13 #include <solver/rel.h>
14 }
15
16 class Relation : public Instance{
17
18 private:
19 Simulation *sim;
20 struct rel_relation *rel;
21
22 public:
23 Relation();
24 Relation(const Relation &old);
25 Relation(Simulation *sim, rel_relation *rel);
26
27 const std::string getName() const;
28 const double getResidual() const;
29 const std::vector<Variable> getIncidentVariables() const;
30 const int getNumIncidentVariables() const;
31 Instanc getInstance() const;
32 std::string getRelationAsString() const;
33 };
34
35 #endif /* ASCXX_RELATION_H */

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