#include <fstream>
#include <sstream>
#include <map>
#include "ns3/log.h"
#include "ns3/unused.h"
#include "ns3/simulator.h"
#include "ns3/node-list.h"
#include "ns3/node.h"
#include "ns3/constant-velocity-mobility-model.h"
#include "ns2-mobility-helper.h"
Go to the source code of this file.
Classes | |
struct | ns3::DestinationPoint |
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. More... | |
struct | ns3::ParseResult |
Namespaces | |
namespace | ns3 |
Every class exported by the ns3 library is enclosed in the ns3 namespace. |
Macros | |
#define | NS2_AT "at" |
#define | NS2_NODEID "$node_(" |
#define | NS2_NS_SCH "$ns_" |
#define | NS2_SET "set" |
#define | NS2_SETDEST "setdest" |
#define | NS2_X_COORD "X_" |
#define | NS2_Y_COORD "Y_" |
#define | NS2_Z_COORD "Z_" |
Functions | |
static std::string | ns3::GetNodeIdFromToken (std::string str) |
static int | ns3::GetNodeIdInt (ParseResult pr) |
static std::string | ns3::GetNodeIdString (ParseResult pr) |
static bool | ns3::HasNodeIdNumber (std::string str) |
static bool | ns3::IsNumber (const std::string &s) |
static bool | ns3::IsSchedMobilityPos (ParseResult pr) |
static bool | ns3::IsSchedSetPos (ParseResult pr) |
static bool | ns3::IsSetInitialPos (ParseResult pr) |
template<class T > | |
static bool | ns3::IsVal (const std::string &str, T &ret) |
NS_LOG_COMPONENT_DEFINE ("Ns2MobilityHelper") | |
static ParseResult | ns3::ParseNs2Line (const std::string &str) |
static Vector | ns3::SetInitialPosition (Ptr< ConstantVelocityMobilityModel > model, std::string coord, double coordVal) |
static DestinationPoint | ns3::SetMovement (Ptr< ConstantVelocityMobilityModel > model, Vector lastPos, double at, double xFinalPosition, double yFinalPosition, double speed) |
static Vector | ns3::SetOneInitialCoord (Vector actPos, std::string &coord, double value) |
static Vector | ns3::SetSchedPosition (Ptr< ConstantVelocityMobilityModel > model, double at, std::string coord, double coordVal) |
static std::string | ns3::TrimNs2Line (const std::string &str) |
#define NS2_AT "at" |
Definition at line 57 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedMobilityPos(), and ns3::IsSchedSetPos().
#define NS2_NODEID "$node_(" |
Definition at line 63 of file ns2-mobility-helper.cc.
#define NS2_NS_SCH "$ns_" |
Definition at line 64 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedMobilityPos(), and ns3::IsSchedSetPos().
#define NS2_SET "set" |
Definition at line 62 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedSetPos(), and ns3::IsSetInitialPos().
#define NS2_SETDEST "setdest" |
Definition at line 61 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedMobilityPos().
#define NS2_X_COORD "X_" |
Definition at line 58 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedSetPos(), ns3::IsSetInitialPos(), and ns3::SetOneInitialCoord().
#define NS2_Y_COORD "Y_" |
Definition at line 59 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedSetPos(), ns3::IsSetInitialPos(), and ns3::SetOneInitialCoord().
#define NS2_Z_COORD "Z_" |
Definition at line 60 of file ns2-mobility-helper.cc.
Referenced by ns3::IsSchedSetPos(), ns3::IsSetInitialPos(), and ns3::SetOneInitialCoord().
NS_LOG_COMPONENT_DEFINE | ( | "Ns2MobilityHelper" | ) |