OLD | NEW |
(Empty) | |
| 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2009 University of Washington |
| 4 * |
| 5 * This program is free software; you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 2 as |
| 7 * published by the Free Software Foundation; |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software |
| 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 */ |
| 18 #ifndef LOCATION_SERVICE_H |
| 19 #define LOCATION_SERVICE_H |
| 20 |
| 21 /* INCLUDES */ |
| 22 #include "ns3/node.h" |
| 23 #include "ns3/node-list.h" |
| 24 #include "ns3/ipv4-routing-protocol.h" |
| 25 #include "ns3/ipv4-interface.h" |
| 26 #include "ns3/ipv4-l3-protocol.h" |
| 27 #include "ns3/timer.h" |
| 28 #include "ns3/ipv4.h" |
| 29 #include "ns3/location-service.h" |
| 30 #include "ns3/vector.h" |
| 31 #include "ns3/log.h" |
| 32 #include <map> |
| 33 |
| 34 namespace ns3 { |
| 35 |
| 36 class LocationService : public Object{ |
| 37 |
| 38 public: |
| 39 virtual Vector GetPosition (Ipv4Address adr) = 0; |
| 40 virtual bool HasPosition (Ipv4Address adr) = 0; |
| 41 virtual bool IsInSearch (Ipv4Address adr) = 0; |
| 42 |
| 43 virtual void SetIpv4 (Ptr<Ipv4> ipv4) = 0; |
| 44 virtual Vector GetInvalidPosition () = 0; |
| 45 virtual Time GetEntryUpdateTime (Ipv4Address id) = 0; |
| 46 virtual void AddEntry (Ipv4Address id, Vector position) = 0; |
| 47 virtual void DeleteEntry (Ipv4Address id) = 0; |
| 48 ·· |
| 49 virtual void Purge () = 0; |
| 50 virtual void Clear () = 0; |
| 51 |
| 52 private: |
| 53 void Start (); |
| 54 }; |
| 55 } |
| 56 #endif |
| 57 |
OLD | NEW |