src/csma/helper/csma-helper.h
changeset 8974 bfe1b44645d8
parent 8866 a44fcd5f9c1d
child 11022 89cb222b9e60
equal deleted inserted replaced
8973:cf0348c84652 8974:bfe1b44645d8
   190    * \param channelName The name of the channel to attach to the devices.
   190    * \param channelName The name of the channel to attach to the devices.
   191    * \returns A container holding the added net devices.
   191    * \returns A container holding the added net devices.
   192    */
   192    */
   193   NetDeviceContainer Install (const NodeContainer &c, std::string channelName) const;
   193   NetDeviceContainer Install (const NodeContainer &c, std::string channelName) const;
   194 
   194 
       
   195   /**
       
   196   * Assign a fixed random variable stream number to the random variables
       
   197   * used by this model. Return the number of streams (possibly zero) that
       
   198   * have been assigned. The Install() method should have previously been
       
   199   * called by the user.
       
   200   *
       
   201   * \param c NetDeviceContainer of the set of net devices for which the 
       
   202   *          CsmaNetDevice should be modified to use a fixed stream
       
   203   * \param stream first stream index to use
       
   204   * \return the number of stream indices assigned by this helper
       
   205   */
       
   206   int64_t AssignStreams (NetDeviceContainer c, int64_t stream);
       
   207 
   195 private:
   208 private:
   196   /*
   209   /*
   197    * \internal
   210    * \internal
   198    */
   211    */
   199   Ptr<NetDevice> InstallPriv (Ptr<Node> node, Ptr<CsmaChannel> channel) const;
   212   Ptr<NetDevice> InstallPriv (Ptr<Node> node, Ptr<CsmaChannel> channel) const;