A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
13
namespace
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
*/
22
class
ConstantPositionMobilityModel
:
public
MobilityModel
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
*/
33
ConstantPositionMobilityModel
();
34
~ConstantPositionMobilityModel
()
override
;
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 */
ns3::ConstantPositionMobilityModel
Mobility model for which the current position does not change once it has been set and until it is se...
Definition
constant-position-mobility-model.h:23
ns3::ConstantPositionMobilityModel::DoGetVelocity
Vector DoGetVelocity() const override
Definition
constant-position-mobility-model.cc:47
ns3::ConstantPositionMobilityModel::m_position
Vector m_position
the constant position
Definition
constant-position-mobility-model.h:41
ns3::ConstantPositionMobilityModel::DoGetPosition
Vector DoGetPosition() const override
Definition
constant-position-mobility-model.cc:34
ns3::ConstantPositionMobilityModel::ConstantPositionMobilityModel
ConstantPositionMobilityModel()
Create a position located at coordinates (0,0,0)
Definition
constant-position-mobility-model.cc:25
ns3::ConstantPositionMobilityModel::DoSetPosition
void DoSetPosition(const Vector &position) override
Definition
constant-position-mobility-model.cc:40
ns3::ConstantPositionMobilityModel::~ConstantPositionMobilityModel
~ConstantPositionMobilityModel() override
Definition
constant-position-mobility-model.cc:29
ns3::ConstantPositionMobilityModel::GetTypeId
static TypeId GetTypeId()
Register this type with the TypeId system.
Definition
constant-position-mobility-model.cc:16
ns3::MobilityModel
Keep track of the current position and velocity of an object.
Definition
mobility-model.h:29
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
mobility-model.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
mobility
model
constant-position-mobility-model.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0