A Discrete-Event Network Simulator
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
16namespace ns3
17{
18
19/**
20 * \ingroup mobility
21 * \brief a (time, location) pair.
22 * \see attribute_Waypoint
23 */
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 */
43 /**
44 * \brief The position of the waypoint
45 */
46 Vector position;
47};
48
50
51std::ostream& operator<<(std::ostream& os, const Waypoint& waypoint);
52std::istream& operator>>(std::istream& is, Waypoint& waypoint);
53
54} // namespace ns3
55
56#endif /* WAYPOINT_H */
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
a (time, location) pair.
Definition waypoint.h:25
Waypoint()
Create a waypoint at time 0 and position (0,0,0).
Definition waypoint.cc:21
Time time
The waypoint time.
Definition waypoint.h:42
Vector position
The position of the waypoint.
Definition waypoint.h:46
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition angles.cc:148
std::istream & operator>>(std::istream &is, Angles &a)
Definition angles.cc:172