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
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
constant-acceleration-mobility-model.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License version 2 as
5
* published by the Free Software Foundation;
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*
16
* Author: Gustavo Carneiro <gjc@inescporto.pt>
17
*/
18
#ifndef CONSTANT_ACCELERATION_MOBILITY_MODEL_H
19
#define CONSTANT_ACCELERATION_MOBILITY_MODEL_H
20
21
#include "
mobility-model.h
"
22
#include "ns3/nstime.h"
23
24
namespace
ns3 {
25
31
class
ConstantAccelerationMobilityModel
:
public
MobilityModel
32
{
33
public
:
34
static
TypeId
GetTypeId
(
void
);
39
ConstantAccelerationMobilityModel
();
40
virtual
~ConstantAccelerationMobilityModel
();
41
void
SetVelocityAndAcceleration
(
const
Vector
&velocity,
const
Vector
&acceleration);
42
43
private
:
44
virtual
Vector
DoGetPosition
(
void
)
const
;
45
virtual
void
DoSetPosition
(
const
Vector
&position);
46
virtual
Vector
DoGetVelocity
(
void
)
const
;
47
48
Time
m_baseTime
;
49
Vector
m_basePosition
;
50
Vector
m_baseVelocity
;
51
Vector
m_acceleration
;
52
};
53
54
}
// namespace ns3
55
56
#endif
/* CONSTANT_ACCELERATION_MOBILITY_MODEL_H */
src
mobility
model
constant-acceleration-mobility-model.h
Generated on Tue Nov 13 2012 10:32:19 for ns-3 by
1.8.1.2