00001
00002
00003 #ifndef DEV_W3_ORG__2001_BLINDFOLD_SRC_AGENT_H
00004 #define DEV_W3_ORG__2001_BLINDFOLD_SRC_AGENT_H
00005
00006 #include "config.h"
00007 #include "Pool.h"
00008 class QueryablePool;
00009
00015 class Agent {
00016
00017 public:
00018
00019
00020 Agent();
00021 Agent(const Agent& other);
00022 const Agent& operator=(const Agent& other);
00023 bool operator==(const Agent& other) const;
00024 bool operator<(const Agent& other) const;
00025 size_t hash() const;
00026 friend std::ostream& operator<<(std::ostream& s, const Agent& me);
00027 std::ostream& print_to(std::ostream& stream) const;
00028 virtual ~Agent();
00029
00030
00031
00032
00033 #if 0
00034
00039 static const Agent* central;
00040
00046 virtual TripleSource* import(const TripleSource* object) = 0;
00047
00048
00054 virtual Pattern* import(Pattern* object) = 0;
00055
00056
00060 virtual Pool* newPool() = 0;
00061 #endif
00062
00066 virtual QueryablePool* newQueryablePool(VariableScope* scope = 0) = 0;
00067
00068
00069
00070 #if 0
00085 virtual Query* getQuery(TripleSource* pattern, TripleSource* dataset) = 0;
00086 #endif
00087
00088 private:
00089
00090
00091 };
00092
00093 STANDARD_EXTERNAL(Agent)
00094
00095 #endif