LEFT | RIGHT |
(no file at all) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2012,2015 University of Zagreb |
| 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: Vedran Miletić <rivanvx@gmail.com> |
| 19 */ |
| 20 |
| 21 #ifndef SLEEP_WAKE_FUNCTIONALITY_H |
| 22 #define SLEEP_WAKE_FUNCTIONALITY_H |
| 23 |
| 24 #include "traced-callback.h" |
| 25 |
| 26 namespace ns3 { |
| 27 |
| 28 class SleepWakeFunctionality |
| 29 { |
| 30 public: |
| 31 SleepWakeFunctionality (); |
| 32 ~SleepWakeFunctionality (); |
| 33 |
| 34 virtual void Wake (void); |
| 35 virtual void Sleep (void); |
| 36 virtual bool IsAwake (void) const; |
| 37 |
| 38 protected: |
| 39 bool m_awake; |
| 40 TracedCallback<> m_wakeTrace; |
| 41 TracedCallback<> m_sleepTrace; |
| 42 }; |
| 43 |
| 44 } // namespace ns3 |
| 45 |
| 46 #endif /* START_STOP_FUNCTIONALITY_H */ |
LEFT | RIGHT |