2D random walk mobility model.
Each instance moves with a speed and direction choosen at random with the user-provided random variables until either a fixed distance has been walked or until a fixed amount of time. If we hit one of the boundaries (specified by a rectangle), of the model, we rebound on the boundary with a reflexive angle and speed. This model is often identified as a brownian motion model.
This method returns the TypeId associated to ns3::RandomWalk2dMobilityModel.
This object is accessible through the following paths with Config::Set and Config::Connect:
-
/NodeList/[i]/$ns3::MobilityModel/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::HierarchicalMobilityModel/Child/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::HierarchicalMobilityModel/Parent/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::MobilityModel/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::HierarchicalMobilityModel/Child/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::HierarchicalMobilityModel/Parent/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::MobilityModel/$ns3::RandomWalk2dMobilityModel
-
/NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::RandomWalk2dMobilityModel
Attributes defined for this type:
-
Bounds: Bounds of the area to cruise.
-
Time: Change current direction and speed after moving for this delay.
-
Set with class: TimeValue
-
Underlying type: Time
-
Initial value: +1000000000.0ns
-
Flags: construct write read
-
Distance: Change current direction and speed after moving for this distance.
-
Set with class: ns3::DoubleValue
-
Underlying type: double -1.79769e+308:1.79769e+308
-
Initial value: 1
-
Flags: construct write read
-
Mode: The mode indicates the condition used to change the current speed and direction
-
Set with class: ns3::EnumValue
-
Underlying type: Distance|Time
-
Initial value: Distance
-
Flags: construct write read
-
Direction: A random variable used to pick the direction (gradients).
-
Speed: A random variable used to pick the speed (m/s).
Attributes defined in parent class ns3::MobilityModel:
-
Position: The current position of the mobility model.
-
Velocity: The current velocity of the mobility model.
No TraceSources defined for this type.
TraceSources defined in parent class ns3::MobilityModel:
-
CourseChange: The value of the position and/or velocity vector changed
Reimplemented from ns3::MobilityModel.
References ns3::Seconds(), and ns3::TypeId::SetParent().