Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1366)

Unified Diff: src/uan/helper/uan-helper.h

Issue 6443073: replace src/uan usage of RandomVariable with RandomVariableStream
Patch Set: Make helper assign streams Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/uan/examples/uan-rc-example.cc ('k') | src/uan/helper/uan-helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/uan/helper/uan-helper.h
===================================================================
--- a/src/uan/helper/uan-helper.h
+++ b/src/uan/helper/uan-helper.h
@@ -214,6 +214,20 @@
* UanNetDevice and then added to the node.
*/
Ptr<UanNetDevice> Install (Ptr<Node> node, Ptr<UanChannel> channel) 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 c NetDeviceContainer of the set of net devices for which the
+ * UanNetDevice should be modified to use a fixed stream
+ * \param stream first stream index to use
+ * \return the number of stream indices assigned by this helper
+ */
+ int64_t AssignStreams (NetDeviceContainer c, int64_t stream);
+
private:
ObjectFactory m_device;
ObjectFactory m_mac;
« no previous file with comments | « src/uan/examples/uan-rc-example.cc ('k') | src/uan/helper/uan-helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b