src/helper/mobility-helper.cc
changeset 4257 3e8f8052e155
parent 4201 511a086fde07
child 4554 b1940a738981
equal deleted inserted replaced
4256:cc06d903ca09 4257:3e8f8052e155
    35 MobilityHelper::MobilityHelper ()
    35 MobilityHelper::MobilityHelper ()
    36 {
    36 {
    37   m_position = CreateObject<RandomRectanglePositionAllocator> 
    37   m_position = CreateObject<RandomRectanglePositionAllocator> 
    38     ("X", RandomVariableValue (ConstantVariable (0.0)),
    38     ("X", RandomVariableValue (ConstantVariable (0.0)),
    39      "Y", RandomVariableValue (ConstantVariable (0.0)));
    39      "Y", RandomVariableValue (ConstantVariable (0.0)));
    40   m_mobility.SetTypeId ("ns3::StaticMobilityModel");
    40   m_mobility.SetTypeId ("ns3::ConstantPositionMobilityModel");
    41 }
    41 }
    42 MobilityHelper::~MobilityHelper ()
    42 MobilityHelper::~MobilityHelper ()
    43 {}
    43 {}
    44 void 
    44 void 
    45 MobilityHelper::SetPositionAllocator (Ptr<PositionAllocator> allocator)
    45 MobilityHelper::SetPositionAllocator (Ptr<PositionAllocator> allocator)