|
|
| 111 |
CreateOne (Vector (5.0, 0.0, 0.0), channel); |
111 |
CreateOne (Vector (5.0, 0.0, 0.0), channel); |
| 112 |
CreateOne (Vector (5.0, 0.0, 0.0), channel); |
112 |
CreateOne (Vector (5.0, 0.0, 0.0), channel); |
| 113 |
|
113 |
|
|
|
114 |
Simulator::Stop (Seconds (10.0)); |
| 114 |
Simulator::Run (); |
115 |
Simulator::Run (); |
| 115 |
Simulator::Destroy (); |
116 |
Simulator::Destroy (); |
| 116 |
|
|
|
| 117 |
Simulator::Stop (Seconds (10.0)); |
| 118 |
} |
117 |
} |
| 119 |
|
118 |
|
| 120 |
void |
119 |
void |
|
|
| 147 |
m_propDelay.SetTypeId ("ns3::RandomPropagationDelayModel"); |
146 |
m_propDelay.SetTypeId ("ns3::RandomPropagationDelayModel"); |
| 148 |
m_mac.SetTypeId ("ns3::AdhocWifiMac"); |
147 |
m_mac.SetTypeId ("ns3::AdhocWifiMac"); |
| 149 |
RunOne (); |
148 |
RunOne (); |
| 150 |
Simulator::Destroy (); |
|
|
| 151 |
} |
149 |
} |
| 152 |
|
150 |
|
| 153 |
//----------------------------------------------------------------------------- |
151 |
//----------------------------------------------------------------------------- |