OLD | NEW |
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 CTTC | 3 * Copyright (c) 2009 CTTC |
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 /** | 191 /** |
192 * Function to be called when the PHY layer of the considered device | 192 * Function to be called when the PHY layer of the considered device |
193 * changes state | 193 * changes state |
194 * | 194 * |
195 * @param context | 195 * @param context |
196 * @param start | 196 * @param start |
197 * @param duration | 197 * @param duration |
198 * @param state | 198 * @param state |
199 */ | 199 */ |
200 void PhyStateTrace (std::string context, Time start, Time duration, WifiPhy::S
tate state); | 200 void PhyStateTrace (std::string context, Time start, Time duration, WifiPhySta
te state); |
201 | 201 |
202 /** | 202 /** |
203 * Open a file for output | 203 * Open a file for output |
204 * | 204 * |
205 * @param name the name of the file to be opened. | 205 * @param name the name of the file to be opened. |
206 */ | 206 */ |
207 void Open (std::string const& name); | 207 void Open (std::string const& name); |
208 | 208 |
209 | 209 |
210 private: | 210 private: |
(...skipping 13 matching lines...) Expand all Loading... |
224 | 224 |
225 std::ofstream *m_writer; ///< output stream | 225 std::ofstream *m_writer; ///< output stream |
226 | 226 |
227 Time m_interval; ///< interval | 227 Time m_interval; ///< interval |
228 | 228 |
229 }; //class AthstatsWifiTraceSink | 229 }; //class AthstatsWifiTraceSink |
230 | 230 |
231 } // namespace ns3 | 231 } // namespace ns3 |
232 | 232 |
233 #endif /* ATHSTATS_HELPER_H */ | 233 #endif /* ATHSTATS_HELPER_H */ |
OLD | NEW |