LEFT | RIGHT |
(no file at all) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2015 Federico Guerra |
| 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 * Author: Federico Guerra <federico@guerra-tlc.com> |
| 19 */ |
| 20 |
| 21 #ifdef NS3_WOSS_SUPPORT |
| 22 |
| 23 #ifndef WOSS_WAYPOINT_MOBILITY_MODEL_H |
| 24 #define WOSS_WAYPOINT_MOBILITY_MODEL_H |
| 25 |
| 26 |
| 27 #include "ns3/waypoint-mobility-model.h" |
| 28 |
| 29 |
| 30 namespace ns3 { |
| 31 |
| 32 /** |
| 33 * \ingroup WOSS |
| 34 * \brief Waypoint mobility model with geographic coordinates. |
| 35 * |
| 36 * The underlying model implements a waypoint mobility model with geographic coo
rdinates. |
| 37 * The waypoint must be given in cartesian coordinates and will be automatically
converted into |
| 38 * geographic coordinates by the class. |
| 39 * To convert the waypoints from geographic coordinates to cartesian coordinates
please use the |
| 40 * helper function. |
| 41 * \see ns3::WossHelper |
| 42 */ |
| 43 class WossWaypointMobilityModel : public WaypointMobilityModel |
| 44 { |
| 45 public: |
| 46 /** |
| 47 * Register this type. |
| 48 * \return The object TypeId. |
| 49 */ |
| 50 static TypeId GetTypeId (void); |
| 51 |
| 52 WossWaypointMobilityModel (); //!< Default constructor |
| 53 |
| 54 virtual ~WossWaypointMobilityModel (); //!< Default destructor |
| 55 |
| 56 |
| 57 private: |
| 58 friend class WaypointMobilityModelNotifyTest; //!< To allow Update() calls and
access to m_current |
| 59 |
| 60 virtual void Update (void) const; |
| 61 virtual void DoDispose (void); |
| 62 |
| 63 |
| 64 }; |
| 65 |
| 66 } // namespace ns3 |
| 67 |
| 68 #endif /* WOSS_WAYPOINT_MOBILITY_MODEL_H */ |
| 69 |
| 70 #endif /* NS3_WOSS_SUPPORT */ |
| 71 |
LEFT | RIGHT |