A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Ns2MobilityHelperTest::ReferencePoint Struct Reference

Single record in mobility reference. More...

+ Collaboration diagram for Ns2MobilityHelperTest::ReferencePoint:

Public Member Functions

 ReferencePoint (const std::string &id, Time t, const Vector &p, const Vector &v)
 Constructor.
 
bool operator< (const ReferencePoint &o) const
 Less-than operator - used to sort by timestamp.
 

Public Attributes

std::string node
 node ID as string, e.g. "1"
 
Vector pos
 reference position
 
Time time
 timestamp
 
Vector vel
 reference velocity
 

Detailed Description

Single record in mobility reference.

Definition at line 80 of file ns2-mobility-helper-test-suite.cc.

Constructor & Destructor Documentation

◆ ReferencePoint()

Ns2MobilityHelperTest::ReferencePoint::ReferencePoint ( const std::string &  id,
Time  t,
const Vector &  p,
const Vector &  v 
)
inline

Constructor.

Parameters
idreference ID
ttime
pposition
vvelocity

Definition at line 95 of file ns2-mobility-helper-test-suite.cc.

Member Function Documentation

◆ operator<()

bool Ns2MobilityHelperTest::ReferencePoint::operator< ( const ReferencePoint o) const
inline

Less-than operator - used to sort by timestamp.

Parameters
oobject to compare to
Returns
true if the timestamp of the 1st operand is less than the other one's

Definition at line 108 of file ns2-mobility-helper-test-suite.cc.

References ns3::Create(), and time.

+ Here is the call graph for this function:

Member Data Documentation

◆ node

std::string Ns2MobilityHelperTest::ReferencePoint::node

node ID as string, e.g. "1"

Definition at line 82 of file ns2-mobility-helper-test-suite.cc.

Referenced by show_last_packets.ShowLastPackets::update().

◆ pos

Vector Ns2MobilityHelperTest::ReferencePoint::pos

reference position

Definition at line 84 of file ns2-mobility-helper-test-suite.cc.

◆ time

Time Ns2MobilityHelperTest::ReferencePoint::time

timestamp

Definition at line 83 of file ns2-mobility-helper-test-suite.cc.

Referenced by operator<().

◆ vel

Vector Ns2MobilityHelperTest::ReferencePoint::vel

reference velocity

Definition at line 85 of file ns2-mobility-helper-test-suite.cc.


The documentation for this struct was generated from the following file: