|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #include "ns3/wave-bsm-helper.h"
67 std::pair<Ptr<Ipv4>, uint32_t>
interface = (*itr);
88 uint32_t wavePacketSize,
91 std::vector <double> ranges,
95 int size = ranges.size ();
98 for (
int index = 0; index < size; index++)
109 bsmApps.
Stop (totalTime);
114 for (aci = bsmApps.
Begin (); aci != bsmApps.
End (); ++aci)
141 int64_t currentStream = stream;
151 currentStream += bsmApp->AssignStreams (currentStream);
155 return (currentStream - stream);
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Iterator End(void) const
Get an iterator which indicates past-the-last Application in the container.
WaveBsmHelper()
Constructor.
Ptr< Application > GetApplication(uint32_t index) const
Retrieve the index-th Application associated to this node.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void Stop(Time stop)
Arrange for all of the Applications in this container to Stop() at the Time given as a parameter.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Hold a value for an Attribute.
ObjectFactory m_factory
Object factory.
void SetAttribute(std::string name, const AttributeValue &value)
Helper function used to set the underlying application attributes.
std::vector< Ptr< Application > >::const_iterator Iterator
Application container iterator.
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::BsmApplication on the node.
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container.
Iterator Begin(void) const
Get an iterator which refers to the first Application in the container.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
Iterator Begin(void) const
Get an iterator which refers to the first Node in the container.
Iterator Begin(void) const
Get an iterator which refers to the first pair in the container.
uint32_t AddApplication(Ptr< Application > application)
Associate an Application to this Node.
std::vector< double > m_txSafetyRangesSq
tx safety range squared, for optimization
holds a vector of std::pair of Ptr<Ipv4> and interface index.
static std::vector< int > & GetNodesMoving()
Returns the list of moving nove indicators.
Simulation virtual time values and global simulation resolution.
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
static std::vector< int > nodesMoving
nodes moving
WaveBsmStats m_waveBsmStats
wave BSM stats
Ptr< WaveBsmStats > GetWaveBsmStats()
Returns the WaveBsmStats instance.
void Start(Time start)
Arrange for all of the Applications in this container to Start() at the Time given as a parameter.
Time Seconds(double value)
Construct a Time in the indicated unit.
holds a vector of ns3::Application pointers.
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
ApplicationContainer Install(Ipv4InterfaceContainer i) const
Install an ns3::BsmApplication on each node of the input container configured with all the attributes...
keep track of a set of node pointers.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
std::vector< std::pair< Ptr< Ipv4 >, uint32_t > >::const_iterator Iterator
Container Const Iterator for pairs of Ipv4 smart pointer / Interface Index.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
The base class for all ns3 applications.
uint32_t GetNApplications(void) const