00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifdef HAVE_CONFIG_H
00018 #include "config.h"
00019 #endif
00020
00021 #ifndef SENSE_H
00022 #define SENSE_H
00023
00024 #include <vector>
00025 #include <string>
00026 #include <easysoap/SOAP.h>
00027 #include <dalt_client/entity.h>
00028
00029 namespace DALT_Client {
00030
00031 using namespace EasySoap;
00032
00036 class Sense
00037 {
00038 protected:
00040 Entity* originator;
00042 SOAPProxy* endpoint;
00043
00044 public:
00046 string name;
00048 int time_cost;
00050 vector<Entity> sensed_entities;
00051
00055 Sense(string name, int cost, SOAPProxy* endpoint);
00056 virtual ~Sense();
00057
00059 void setOriginator(Entity* originator);
00060
00063 virtual vector<Entity>& dispatch();
00064 };
00065
00066 }
00067
00068 #endif