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) 2011 CTTC | 3 * Copyright (c) 2011 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 14 matching lines...) Expand all Loading... |
25 #include "isotropic-antenna-model.h" | 25 #include "isotropic-antenna-model.h" |
26 | 26 |
27 | 27 |
28 namespace ns3 { | 28 namespace ns3 { |
29 | 29 |
30 NS_LOG_COMPONENT_DEFINE ("IsotropicAntennaModel"); | 30 NS_LOG_COMPONENT_DEFINE ("IsotropicAntennaModel"); |
31 | 31 |
32 NS_OBJECT_ENSURE_REGISTERED (IsotropicAntennaModel); | 32 NS_OBJECT_ENSURE_REGISTERED (IsotropicAntennaModel); |
33 | 33 |
34 | 34 |
35 TypeId | 35 TypeId |
36 IsotropicAntennaModel::GetTypeId () | 36 IsotropicAntennaModel::GetTypeId () |
37 { | 37 { |
38 static TypeId tid = TypeId ("ns3::IsotropicAntennaModel") | 38 static TypeId tid = TypeId ("ns3::IsotropicAntennaModel") |
39 .SetParent<AntennaModel> () | 39 .SetParent<AntennaModel> () |
40 .SetGroupName("Antenna") | 40 .SetGroupName ("Antenna") |
41 .AddConstructor<IsotropicAntennaModel> () | 41 .AddConstructor<IsotropicAntennaModel> () |
42 ; | 42 ; |
43 return tid; | 43 return tid; |
44 } | 44 } |
45 | 45 |
46 IsotropicAntennaModel::IsotropicAntennaModel () | 46 IsotropicAntennaModel::IsotropicAntennaModel () |
47 { | 47 { |
48 NS_LOG_FUNCTION (this); | 48 NS_LOG_FUNCTION (this); |
49 } | 49 } |
50 | 50 |
51 double | 51 double |
52 IsotropicAntennaModel::GetGainDb (Angles a) | 52 IsotropicAntennaModel::GetGainDb (Angles a) |
53 { | 53 { |
54 NS_LOG_FUNCTION (this << a); | 54 NS_LOG_FUNCTION (this << a); |
55 return 0.0; | 55 return 0.0; |
56 } | 56 } |
57 | 57 |
58 } | 58 } |
59 | 59 |
OLD | NEW |