~jdpipe/ascend/trunk-old

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
#ifndef ASCXX_RELATION_H
#define ASCXX_RELATION_H

#include <string>
#include <vector>

#include "simulation.h"

class Variable;

#include "config.h"
extern "C"{
#include <ascend/general/platform.h>
#include <ascend/system/slv_types.h>
#include <ascend/system/rel.h>
}

class Relation : public Instance{

private:
	Simulation *sim;
	struct rel_relation *rel;

public:
	Relation();
	Relation(const Relation &old);
	Relation(Simulation *sim, rel_relation *rel);

	const std::string getName() const;
	double getResidual() const;
	const std::vector<Variable> getIncidentVariables() const;
	int getNumIncidentVariables() const;
	Instanc getInstance() const;
	std::string getRelationAsString() const;
};

#endif /* ASCXX_RELATION_H */