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
waypoint.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 Phillip Sitbon
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Phillip Sitbon <phillip@sitbon.net>
7
*/
8
#ifndef WAYPOINT_H
9
#define WAYPOINT_H
10
11
#include "ns3/attribute-helper.h"
12
#include "ns3/attribute.h"
13
#include "ns3/nstime.h"
14
#include "ns3/vector.h"
15
16
namespace
ns3
17
{
18
19
/**
20
* \ingroup mobility
21
* \brief a (time, location) pair.
22
* \see attribute_Waypoint
23
*/
24
class
Waypoint
25
{
26
public
:
27
/**
28
* \param waypointTime time of waypoint.
29
* \param waypointPosition position of waypoint corresponding to the given time.
30
*
31
* Create a waypoint.
32
*/
33
Waypoint
(
const
Time
& waypointTime,
const
Vector& waypointPosition);
34
35
/**
36
* Create a waypoint at time 0 and position (0,0,0).
37
*/
38
Waypoint
();
39
/**
40
* \brief The waypoint time
41
*/
42
Time
time
;
43
/**
44
* \brief The position of the waypoint
45
*/
46
Vector
position
;
47
};
48
49
ATTRIBUTE_HELPER_HEADER
(
Waypoint
);
50
51
std::ostream&
operator<<
(std::ostream& os,
const
Waypoint
& waypoint);
52
std::istream&
operator>>
(std::istream& is,
Waypoint
& waypoint);
53
54
}
// namespace ns3
55
56
#endif
/* WAYPOINT_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::Waypoint
a (time, location) pair.
Definition
waypoint.h:25
ns3::Waypoint::Waypoint
Waypoint()
Create a waypoint at time 0 and position (0,0,0).
Definition
waypoint.cc:21
ns3::Waypoint::time
Time time
The waypoint time.
Definition
waypoint.h:42
ns3::Waypoint::position
Vector position
The position of the waypoint.
Definition
waypoint.h:46
ATTRIBUTE_HELPER_HEADER
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type
Definition
attribute-helper.h:397
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::operator<<
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition
angles.cc:148
ns3::operator>>
std::istream & operator>>(std::istream &is, Angles &a)
Definition
angles.cc:172
src
mobility
model
waypoint.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0