src/devices/point-to-point/point-to-point-channel.h
changeset 2592 3ebf97150166
parent 1867 16deaedc0380
child 2720 3c7d9f8c9034
equal deleted inserted replaced
2591:83a605082fb6 2592:3ebf97150166
    47  *
    47  *
    48  * There are two "wires" in the channel.  The first device connected gets the
    48  * There are two "wires" in the channel.  The first device connected gets the
    49  * [0] wire to transmit on.  The second device gets the [1] wire.  There is a
    49  * [0] wire to transmit on.  The second device gets the [1] wire.  There is a
    50  * state (IDLE, TRANSMITTING) associated with each wire.
    50  * state (IDLE, TRANSMITTING) associated with each wire.
    51  */
    51  */
    52 class PointToPointChannel : public Channel {
    52 class PointToPointChannel : public Channel 
       
    53 {
    53 public:
    54 public:
       
    55   static TypeId GetTypeId (void);
       
    56 
    54   /**
    57   /**
    55    * \brief Create a PointToPointChannel
    58    * \brief Create a PointToPointChannel
    56    *
    59    *
    57    * By default, you get a channel with the name "PointToPoint Channel" that
    60    * By default, you get a channel with the name "PointToPoint Channel" that
    58    * has an "infitely" fast transmission speed and zero delay.
    61    * has an "infitely" fast transmission speed and zero delay.
    59    */
    62    */
    60   PointToPointChannel ();
    63   PointToPointChannel ();
    61   
       
    62   /**
       
    63    * \brief Create a PointToPointChannel
       
    64    *
       
    65    * \param bps The maximum bitrate of the channel
       
    66    * \param delay Transmission delay through the channel
       
    67    */  
       
    68   PointToPointChannel (const DataRate& bps, const Time& delay);
       
    69   
       
    70   /**
       
    71    * \brief Create a PointToPointChannel
       
    72    *
       
    73    * \param name the name of the channel for identification purposes
       
    74    * \param bps The maximum bitrate of the channel
       
    75    * \param delay Transmission delay through the channel
       
    76    */
       
    77   PointToPointChannel (const std::string& name,
       
    78                        const DataRate& bps, const Time& delay);
       
    79 
    64 
    80   /**
    65   /**
    81    * \brief Attach a given netdevice to this channel
    66    * \brief Attach a given netdevice to this channel
    82    * \param device pointer to the netdevice to attach to the channel
    67    * \param device pointer to the netdevice to attach to the channel
    83    */
    68    */