src/applications/helper/on-off-helper.h
changeset 8966 060dba23e9bb
parent 6847 138f00c56381
child 9000 3ec20a64fd08
--- a/src/applications/helper/on-off-helper.h	Mon Aug 13 10:46:09 2012 -0700
+++ b/src/applications/helper/on-off-helper.h	Mon Aug 13 16:08:13 2012 -0700
@@ -28,6 +28,7 @@
 #include "ns3/net-device.h"
 #include "ns3/node-container.h"
 #include "ns3/application-container.h"
+#include "ns3/onoff-application.h"
 
 namespace ns3 {
 
@@ -86,6 +87,19 @@
    */
   ApplicationContainer Install (std::string nodeName) const;
 
+ /**
+  * Assign a fixed random variable stream number to the random variables
+  * used by this model.  Return the number of streams (possibly zero) that
+  * have been assigned.  The Install() method should have previously been
+  * called by the user.
+  *
+  * \param stream first stream index to use
+  * \param c NodeContainer of the set of nodes for which the OnOffApplication
+  *          should be modified to use a fixed stream
+  * \return the number of stream indices assigned by this helper
+  */
+  int64_t AssignStreams (NodeContainer c, int64_t stream);
+
 private:
   /**
    * \internal