A Discrete-Event Network Simulator
API
ns3::DestinationPoint Struct Reference

Keeps last movement schedule. More...

+ Collaboration diagram for ns3::DestinationPoint:

Public Member Functions

 DestinationPoint ()
 

Public Attributes

Vector m_finalPosition
 Final destination to be reached before next schedule. More...
 
Vector m_speed
 Speed of the last movement (needed to derive reached destination at next schedule = start + velocity * actuallyTravelled) More...
 
Vector m_startPosition
 Start position of last movement. More...
 
EventId m_stopEvent
 Event scheduling node's stop. More...
 
double m_targetArrivalTime
 When a station arrives to a destination. More...
 
double m_travelStartTime
 Travel start time is needed to calculate actually traveled time. More...
 

Detailed Description

Keeps last movement schedule.

If new movement occurs during a current one, node stopping must be cancels (stored in a proper event ID), actually reached point must be calculated and new velocity must be calculated in accordance with actually reached destination.

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

Constructor & Destructor Documentation

◆ DestinationPoint()

ns3::DestinationPoint::DestinationPoint ( )
inline

Definition at line 93 of file ns2-mobility-helper.cc.

Member Data Documentation

◆ m_finalPosition

Vector ns3::DestinationPoint::m_finalPosition

Final destination to be reached before next schedule.

Replaced with actually reached if needed.

Definition at line 89 of file ns2-mobility-helper.cc.

Referenced by ns3::Ns2MobilityHelper::ConfigNodesMovements(), and ns3::SetMovement().

◆ m_speed

Vector ns3::DestinationPoint::m_speed

Speed of the last movement (needed to derive reached destination at next schedule = start + velocity * actuallyTravelled)

Definition at line 88 of file ns2-mobility-helper.cc.

Referenced by ns3::SetMovement().

◆ m_startPosition

Vector ns3::DestinationPoint::m_startPosition

Start position of last movement.

Definition at line 87 of file ns2-mobility-helper.cc.

Referenced by ns3::SetMovement().

◆ m_stopEvent

EventId ns3::DestinationPoint::m_stopEvent

Event scheduling node's stop.

May be canceled if needed.

Definition at line 90 of file ns2-mobility-helper.cc.

Referenced by ns3::SetMovement().

◆ m_targetArrivalTime

double ns3::DestinationPoint::m_targetArrivalTime

When a station arrives to a destination.

Definition at line 92 of file ns2-mobility-helper.cc.

Referenced by ns3::SetMovement().

◆ m_travelStartTime

double ns3::DestinationPoint::m_travelStartTime

Travel start time is needed to calculate actually traveled time.

Definition at line 91 of file ns2-mobility-helper.cc.

Referenced by ns3::SetMovement().


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