A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
constant-position-mobility-model.h
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 */
8#ifndef CONSTANT_POSITION_MOBILITY_MODEL_H
9#define CONSTANT_POSITION_MOBILITY_MODEL_H
10
11#include "mobility-model.h"
12
13namespace ns3
14{
15
16/**
17 * @ingroup mobility
18 *
19 * @brief Mobility model for which the current position does not change once it has been set and
20 * until it is set again explicitly to a new value.
21 */
23{
24 public:
25 /**
26 * Register this type with the TypeId system.
27 * @return the object TypeId
28 */
29 static TypeId GetTypeId();
30 /**
31 * Create a position located at coordinates (0,0,0)
32 */
35
36 private:
37 Vector DoGetPosition() const override;
38 void DoSetPosition(const Vector& position) override;
39 Vector DoGetVelocity() const override;
40
41 Vector m_position; //!< the constant position
42};
43
44} // namespace ns3
45
46#endif /* CONSTANT_POSITION_MOBILITY_MODEL_H */
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.
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.