|
|
| 43 |
{ |
43 |
{ |
| 44 |
static TypeId tid = TypeId ("ns3::PropagationLossModel") |
44 |
static TypeId tid = TypeId ("ns3::PropagationLossModel") |
| 45 |
.SetParent<Object> () |
45 |
.SetParent<Object> () |
|
|
46 |
.SetGroupName ("Propagation") |
| 46 |
; |
47 |
; |
| 47 |
return tid; |
48 |
return tid; |
| 48 |
} |
49 |
} |
|
|
| 102 |
{ |
103 |
{ |
| 103 |
static TypeId tid = TypeId ("ns3::RandomPropagationLossModel") |
104 |
static TypeId tid = TypeId ("ns3::RandomPropagationLossModel") |
| 104 |
.SetParent<PropagationLossModel> () |
105 |
.SetParent<PropagationLossModel> () |
|
|
106 |
.SetGroupName ("Propagation") |
| 105 |
.AddConstructor<RandomPropagationLossModel> () |
107 |
.AddConstructor<RandomPropagationLossModel> () |
| 106 |
.AddAttribute ("Variable", "The random variable used to pick a loss everytime CalcRxPower is invoked.", |
108 |
.AddAttribute ("Variable", "The random variable used to pick a loss everytime CalcRxPower is invoked.", |
| 107 |
StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"), |
109 |
StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"), |
|
|
| 285 |
{ |
287 |
{ |
| 286 |
static TypeId tid = TypeId ("ns3::TwoRayGroundPropagationLossModel") |
288 |
static TypeId tid = TypeId ("ns3::TwoRayGroundPropagationLossModel") |
| 287 |
.SetParent<PropagationLossModel> () |
289 |
.SetParent<PropagationLossModel> () |
|
|
290 |
.SetGroupName ("Propagation") |
| 288 |
.AddConstructor<TwoRayGroundPropagationLossModel> () |
291 |
.AddConstructor<TwoRayGroundPropagationLossModel> () |
| 289 |
.AddAttribute ("Frequency", |
292 |
.AddAttribute ("Frequency", |
| 290 |
"The carrier frequency (in Hz) at which propagation occurs (default is 5.15 GHz).", |
293 |
"The carrier frequency (in Hz) at which propagation occurs (default is 5.15 GHz).", |
|
|
| 546 |
{ |
549 |
{ |
| 547 |
static TypeId tid = TypeId ("ns3::ThreeLogDistancePropagationLossModel") |
550 |
static TypeId tid = TypeId ("ns3::ThreeLogDistancePropagationLossModel") |
| 548 |
.SetParent<PropagationLossModel> () |
551 |
.SetParent<PropagationLossModel> () |
|
|
552 |
.SetGroupName ("Propagation") |
| 549 |
.AddConstructor<ThreeLogDistancePropagationLossModel> () |
553 |
.AddConstructor<ThreeLogDistancePropagationLossModel> () |
| 550 |
.AddAttribute ("Distance0", |
554 |
.AddAttribute ("Distance0", |
| 551 |
"Beginning of the first (near) distance field", |
555 |
"Beginning of the first (near) distance field", |
|
|
| 889 |
{ |
893 |
{ |
| 890 |
static TypeId tid = TypeId ("ns3::RangePropagationLossModel") |
894 |
static TypeId tid = TypeId ("ns3::RangePropagationLossModel") |
| 891 |
.SetParent<PropagationLossModel> () |
895 |
.SetParent<PropagationLossModel> () |
|
|
896 |
.SetGroupName ("Propagation") |
| 892 |
.AddConstructor<RangePropagationLossModel> () |
897 |
.AddConstructor<RangePropagationLossModel> () |
| 893 |
.AddAttribute ("MaxRange", |
898 |
.AddAttribute ("MaxRange", |
| 894 |
"Maximum Transmission Range (meters)", |
899 |
"Maximum Transmission Range (meters)", |