A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
constant-position-mobility-model.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2006,2007 INRIA
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7 */
9
10namespace ns3
11{
12
13NS_OBJECT_ENSURE_REGISTERED(ConstantPositionMobilityModel);
14
15TypeId
17{
18 static TypeId tid = TypeId("ns3::ConstantPositionMobilityModel")
20 .SetGroupName("Mobility")
21 .AddConstructor<ConstantPositionMobilityModel>();
22 return tid;
23}
24
28
32
33Vector
38
39void
41{
42 m_position = position;
44}
45
46Vector
48{
49 return Vector(0.0, 0.0, 0.0);
50}
51
52} // namespace ns3
Mobility model for which the current position does not change once it has been set and until it is se...
ConstantPositionMobilityModel()
Create a position located at coordinates (0,0,0)
void DoSetPosition(const Vector &position) override
static TypeId GetTypeId()
Register this type with the TypeId system.
Keep track of the current position and velocity of an object.
void NotifyCourseChange() const
Must be invoked by subclasses when the course of the position changes to notify course change listene...
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.