Class: MinRateQueue
- Inherits:
-
QueueProperty
- Object
- QueueProperty
- MinRateQueue
- Defined in:
- ruby/trema/packet-queue.rb
Instance Attribute Summary collapse
-
#rate ⇒ Number
the rate value of the minimum rate queue.
Attributes inherited from QueueProperty
Instance Method Summary collapse
-
#initialize(property, len, rate, packet_queue) ⇒ MinRateQueue
constructor
An object that encapsulates the minimum rate queue property description.
-
#to_s ⇒ String
Text representation of rate prefixed by property and length attributes.
Constructor Details
#initialize(property, len, rate, packet_queue) ⇒ MinRateQueue
An object that encapsulates the minimum rate queue property description.
157 158 159 160 161 162 |
# File 'ruby/trema/packet-queue.rb', line 157 def initialize property, len, rate, packet_queue super property, len @rate = rate packet_queue.append self Queue.append packet_queue end |
Instance Attribute Details
#rate ⇒ Number
the rate value of the minimum rate queue.
145 146 147 |
# File 'ruby/trema/packet-queue.rb', line 145 def rate @rate end |
Instance Method Details
#to_s ⇒ String
Returns text representation of rate prefixed by property and length attributes.
167 168 169 |
# File 'ruby/trema/packet-queue.rb', line 167 def to_s super.to_s + " rate: #{rate} " end |