-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDatalogProgram.h
37 lines (29 loc) · 973 Bytes
/
DatalogProgram.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
#ifndef DATALOGPROGRAM_H
#define DATALOGPROGRAM_H
#include "Parameter.h"
#include "Predicate.h"
#include "Rule.h"
#include <string>
#include <vector>
class DatalogProgram {
private:
std::vector<Predicate*> schemes;
std::vector<Predicate*> facts;
std::vector<Predicate*> queries;
std::vector<Rule*> rules;
std::vector<std::string> domain;
public:
DatalogProgram();
~DatalogProgram();
void toString();
void addPredicateSchemes(std::string, std::vector<Parameter*>);
void addPredicateFacts(std::string, std::vector<Parameter*>);
void addPredicateQueries(std::string, std::vector<Parameter*>);
void addRuleRules(Predicate*, std::vector<Predicate*>);
void setDomain(std::vector<std::string>);
std::vector<Predicate*> getSchemes();
std::vector<Predicate*> getFacts();
std::vector<Predicate*> getQueries();
std::vector<Rule*> getRules();
};
#endif //DATALOGPROGRAM_H