equal
deleted
inserted
replaced
213 SpectrumPhyHelper::Create (Ptr<Node> node, Ptr<NetDevice> device) const |
213 SpectrumPhyHelper::Create (Ptr<Node> node, Ptr<NetDevice> device) const |
214 { |
214 { |
215 NS_ASSERT (m_channel); |
215 NS_ASSERT (m_channel); |
216 Ptr<SpectrumPhy> phy = (m_phy.Create ())->GetObject<SpectrumPhy> (); |
216 Ptr<SpectrumPhy> phy = (m_phy.Create ())->GetObject<SpectrumPhy> (); |
217 phy->SetChannel (m_channel); |
217 phy->SetChannel (m_channel); |
218 phy->SetMobility (node); |
218 phy->SetMobility (node->GetObject<MobilityModel> ()); |
219 phy->SetDevice (device); |
219 phy->SetDevice (device); |
220 return phy; |
220 return phy; |
221 } |
221 } |
222 |
222 |
223 |
223 |