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);
holds a vector of ns3::Application pointers.
uint32_t AddApplication(Ptr< Application > application)
Associate an Application to this Node.
Simulation virtual time values and global simulation resolution.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container. ...
Hold a value for an Attribute.
Iterator End(void) const
Get an iterator which indicates past-the-last Application in the container.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
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.
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
std::vector< Ptr< Application > >::const_iterator Iterator
Application container iterator.
The base class for all ns3 applications.
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
Ptr< Application > GetApplication(uint32_t index) const
Retrieve the index-th Application associated to this node.
std::vector< double > m_txSafetyRangesSq
tx safety range squared, for optimization
void Start(Time start)
Arrange for all of the Applications in this container to Start() at the Time given as a parameter...
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
WaveBsmStats m_waveBsmStats
wave BSM stats
void Set(std::string name, const AttributeValue &value)
Set an attribute to be set during construction.
std::vector< std::pair< Ptr< Ipv4 >, uint32_t > >::const_iterator Iterator
Container Const Iterator for pairs of Ipv4 smart pointer / Interface Index.
static std::vector< int > & GetNodesMoving()
Returns the list of moving nove indicators.
void Stop(Time stop)
Arrange for all of the Applications in this container to Stop() at the Time given as a parameter...
Time Seconds(double value)
Construct a Time in the indicated unit.
Ptr< WaveBsmStats > GetWaveBsmStats()
Returns the WaveBsmStats instance.
uint32_t GetNApplications(void) const
ObjectFactory m_factory
Object factory.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
ApplicationContainer Install(Ipv4InterfaceContainer i) const
Install an ns3::BsmApplication on each node of the input container configured with all the attributes...
void SetAttribute(std::string name, const AttributeValue &value)
Helper function used to set the underlying application attributes.
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::BsmApplication on the node.
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.
WaveBsmHelper()
Constructor.
static std::vector< int > nodesMoving
nodes moving