Landmark.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2008 Institut fuer Telematik, Universitaet Karlsruhe (TH)
00003 //
00004 // This program is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU General Public License
00006 // as published by the Free Software Foundation; either version 2
00007 // of the License, or (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 //
00018 
00024 #ifndef __LANDMARK_H_
00025 #define __LANDMARK_H_
00026 
00027 #include <BaseApp.h>
00028 
00029 class CoordsOfNodeCall;
00030 
00031 class Landmark : public BaseApp
00032 {
00033   private:
00034     virtual ~Landmark();
00035 
00036     virtual void initializeApp(int stage);
00037     virtual void finishApp();
00038 
00039     std::vector<double> ownCoords;
00040 
00041   public:
00042     const std::vector<double>& getOwnNpsCoords() const { return ownCoords; };
00043 
00044       //virtual void handleUDPMessage(BaseOverlayMessage* msg);
00045     //virtual void handleTimerEvent(cMessage* msg);
00046     //bool handleRpcCall(BaseCallMessage* msg);
00047     //void coordsOfNodeRpc(CoordsOfNodeCall* msg);
00048     //virtual void handleRpcResponse(BaseResponseMessage *msg,
00049     //                               cPolymorphic* context,
00050     //                               int rpcId, simtime_t rtt);
00051     //virtual void handleRpcTimeout(BaseCallMessage *msg,
00052     //                              const TransportAddress &dest,
00053     //                              cPolymorphic* context, int rpcId,
00054     //                              const OverlayKey &destKey);
00055 
00056     //virtual void joinOverlay();
00057     //virtual NodeVector* findNode(const OverlayKey& key,
00058     //                             int numRedundantNodes,
00059     //                             int numSiblings,
00060     //                             BaseOverlayMessage* msg);
00061 
00062     //virtual bool isSiblingFor(const NodeHandle& node,
00063     //                          const OverlayKey& key, int numSiblings, bool* err) { return false; };
00064 
00068     //virtual void updateTooltip();
00069 
00070 };
00071 
00072 #endif

Generated on Tue Sep 8 17:26:53 2009 for OverSim by  doxygen 1.5.8