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 */ |