BaseUtility.h

00001 
00012 #ifndef BASE_UTILITY_H
00013 #define BASE_UTILITY_H
00014 
00015 //BB start
00016 #ifdef _MSC_VER
00017 #pragma warning(disable : 4786)
00018 #endif
00019 
00020 #include <omnetpp.h>
00021 #include "Blackboard.h"
00022 #include "HostState.h"
00023 #include "Coord.h"
00034 class BaseUtility : public Blackboard,
00035           public ImNotifiable
00036 {
00037 private:
00042     Coord pos;
00043 
00044 protected:
00046   cModule *findHost(void);
00047 
00049     int catMove;
00050 
00052     int catHostState;
00053 
00055     HostState hostState;
00056 
00057 protected:
00065     std::string logName(void);
00066 
00067 public:
00068 
00070     virtual void initialize(int);
00071 
00081     const Coord* getPos() {return &pos;}
00082 
00087     const HostState& getHostState() { return hostState; }
00088 
00093     virtual void receiveBBItem(int category, const BBItem *details, int scopeModuleId);
00094 };
00095 
00096 #endif
00097