a position model for which the current position does not change once it has been set and until it is set again explicitely to a new value. More...
#include <static-mobility-model.h>
Public Member Functions | |
StaticMobilityModel () | |
virtual | ~StaticMobilityModel () |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::StaticMobilityModel. | |
Private Member Functions | |
virtual Vector | DoGetPosition (void) const |
virtual void | DoSetPosition (const Vector &position) |
virtual Vector | DoGetVelocity (void) const |
Private Attributes | |
Vector | m_position |
a position model for which the current position does not change once it has been set and until it is set again explicitely to a new value.
Definition at line 33 of file static-mobility-model.h.
ns3::StaticMobilityModel::StaticMobilityModel | ( | ) |
Create a position located at coordinates (0,0,0)
Definition at line 35 of file static-mobility-model.cc.
ns3::StaticMobilityModel::~StaticMobilityModel | ( | ) | [virtual] |
Definition at line 37 of file static-mobility-model.cc.
Vector ns3::StaticMobilityModel::DoGetPosition | ( | void | ) | const [private, virtual] |
Concrete subclasses of this base class must implement this method.
Implements ns3::MobilityModel.
Definition at line 41 of file static-mobility-model.cc.
References m_position.
Vector ns3::StaticMobilityModel::DoGetVelocity | ( | void | ) | const [private, virtual] |
Concrete subclasses of this base class must implement this method.
Implements ns3::MobilityModel.
Definition at line 52 of file static-mobility-model.cc.
void ns3::StaticMobilityModel::DoSetPosition | ( | const Vector & | position | ) | [private, virtual] |
position | the position to set. |
Concrete subclasses of this base class must implement this method.
Implements ns3::MobilityModel.
Definition at line 46 of file static-mobility-model.cc.
References m_position, and ns3::MobilityModel::NotifyCourseChange().
TypeId ns3::StaticMobilityModel::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::StaticMobilityModel.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
Attributes defined in parent class ns3::MobilityModel:
No TraceSources defined for this type.
TraceSources defined in parent class ns3::MobilityModel:
Reimplemented from ns3::MobilityModel.
Definition at line 26 of file static-mobility-model.cc.
References ns3::TypeId::SetParent().
Vector ns3::StaticMobilityModel::m_position [private] |
Definition at line 48 of file static-mobility-model.h.
Referenced by DoGetPosition(), and DoSetPosition().