A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
gauss-markov-mobility-model.h
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 Dan Broyles
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Dan Broyles <dbroyl01@ku.edu>
19
* Thanks to Kevin Peters, faculty advisor James P.G. Sterbenz, and the ResiliNets
20
* initiative at The University of Kansas, https://wiki.ittc.ku.edu/resilinets
21
*/
22
#ifndef GAUSS_MARKOV_MOBILITY_MODEL_H
23
#define GAUSS_MARKOV_MOBILITY_MODEL_H
24
25
#include "constant-velocity-helper.h"
26
#include "mobility-model.h"
27
#include "position-allocator.h"
28
#include "ns3/ptr.h"
29
#include "ns3/object.h"
30
#include "ns3/nstime.h"
31
#include "ns3/event-id.h"
32
#include "ns3/box.h"
33
#include "ns3/random-variable-stream.h"
34
35
namespace
ns3 {
36
80
class
GaussMarkovMobilityModel
:
public
MobilityModel
81
{
82
public
:
83
static
TypeId
GetTypeId (
void
);
84
GaussMarkovMobilityModel
();
85
private
:
86
void
Start (
void
);
87
void
DoWalk (
Time
timeLeft);
88
virtual
void
DoDispose
(
void
);
89
virtual
Vector
DoGetPosition
(
void
)
const
;
90
virtual
void
DoSetPosition
(
const
Vector
&position);
91
virtual
Vector
DoGetVelocity
(
void
)
const
;
92
virtual
int64_t
DoAssignStreams
(int64_t);
93
ConstantVelocityHelper
m_helper;
94
Time
m_timeStep;
95
double
m_alpha;
96
double
m_meanVelocity;
97
double
m_meanDirection;
98
double
m_meanPitch;
99
double
m_Velocity;
100
double
m_Direction;
101
double
m_Pitch;
102
Ptr<RandomVariableStream>
m_rndMeanVelocity;
103
Ptr<NormalRandomVariable>
m_normalVelocity;
104
Ptr<RandomVariableStream>
m_rndMeanDirection;
105
Ptr<NormalRandomVariable>
m_normalDirection;
106
Ptr<RandomVariableStream>
m_rndMeanPitch;
107
Ptr<NormalRandomVariable>
m_normalPitch;
108
EventId
m_event;
109
Box
m_bounds;
110
};
111
112
}
// namespace ns3
113
114
#endif
/* GAUSS_MARKOV_MOBILITY_MODEL_H */
ns3::Time
keep track of time unit.
Definition:
nstime.h:149
ns3::Ptr< RandomVariableStream >
ns3::ConstantVelocityHelper
Utility class used to move node with constant velocity.
Definition:
constant-velocity-helper.h:36
ns3::Vector3D
a 3d vector
Definition:
vector.h:31
ns3::Box
a 3d box
Definition:
box.h:33
ns3::MobilityModel
Keep track of the current position and velocity of an object.
Definition:
mobility-model.h:39
ns3::GaussMarkovMobilityModel::DoAssignStreams
virtual int64_t DoAssignStreams(int64_t)
Definition:
gauss-markov-mobility-model.cc:222
ns3::GaussMarkovMobilityModel::DoSetPosition
virtual void DoSetPosition(const Vector &position)
Definition:
gauss-markov-mobility-model.cc:209
ns3::GaussMarkovMobilityModel::DoGetVelocity
virtual Vector DoGetVelocity(void) const
Definition:
gauss-markov-mobility-model.cc:216
ns3::GaussMarkovMobilityModel::DoDispose
virtual void DoDispose(void)
Definition:
gauss-markov-mobility-model.cc:196
ns3::GaussMarkovMobilityModel::DoGetPosition
virtual Vector DoGetPosition(void) const
Definition:
gauss-markov-mobility-model.cc:203
ns3::EventId
an identifier for simulation events.
Definition:
event-id.h:46
ns3::GaussMarkovMobilityModel
Gauss-Markov mobility model.
Definition:
gauss-markov-mobility-model.h:80
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:44
src
mobility
model
gauss-markov-mobility-model.h
Generated on Sun Mar 16 2014 11:25:08 for ns-3 by
1.8.6