LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 m_phy->Clear (); | 71 m_phy->Clear (); |
72 m_phy = 0; | 72 m_phy = 0; |
73 } | 73 } |
74 if (m_trans) | 74 if (m_trans) |
75 { | 75 { |
76 m_trans->Clear (); | 76 m_trans->Clear (); |
77 m_trans = 0; | 77 m_trans = 0; |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 void | 81 void |
82 UanNetDevice::DoInitialize (void) | 82 UanNetDevice::DoInitialize (void) |
83 { | 83 { |
84 m_phy->Initialize (); | 84 m_phy->Initialize (); |
85 m_mac->Initialize (); | 85 m_mac->Initialize (); |
86 m_channel->Initialize (); | 86 m_channel->Initialize (); |
87 m_trans->Initialize (); | 87 m_trans->Initialize (); |
88 | 88 |
89 NetDevice::DoInitialize (); | 89 NetDevice::DoInitialize (); |
90 } | 90 } |
91 | 91 |
92 void | 92 void |
93 UanNetDevice::DoDispose () | 93 UanNetDevice::DoDispose () |
94 { | 94 { |
95 Clear (); | 95 Clear (); |
96 NetDevice::DoDispose (); | 96 NetDevice::DoDispose (); |
97 } | 97 } |
98 | 98 |
99 TypeId | 99 TypeId |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } | 402 } |
403 | 403 |
404 void | 404 void |
405 UanNetDevice::SetSleepMode (bool sleep) | 405 UanNetDevice::SetSleepMode (bool sleep) |
406 { | 406 { |
407 m_phy->SetSleepMode (sleep); | 407 m_phy->SetSleepMode (sleep); |
408 } | 408 } |
409 | 409 |
410 } // namespace ns3 | 410 } // namespace ns3 |
411 | 411 |
LEFT | RIGHT |