Class: QueueProperty
- Inherits:
-
Object
- Object
- QueueProperty
- Defined in:
- ruby/trema/packet-queue.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#len ⇒ Number
length of property.
-
#property ⇒ Number
Property queue id.
Instance Method Summary collapse
-
#initialize(property, len) ⇒ QueueProperty
constructor
Each queue is described by a set of properties, each of a specific type and configuration.
-
#to_s ⇒ String
Text representation of its attributes (property,len).
Constructor Details
#initialize(property, len) ⇒ QueueProperty
Each queue is described by a set of properties, each of a specific type and configuration.
127 128 129 130 |
# File 'ruby/trema/packet-queue.rb', line 127 def initialize property, len @property = property @len = len end |
Instance Attribute Details
#len ⇒ Number
length of property. If >= 8 minimum-rate type queue is defined.
118 119 120 |
# File 'ruby/trema/packet-queue.rb', line 118 def len @len end |
#property ⇒ Number
Property queue id. For minimum-rate type queue the property value is set to 1, otherwise defaults to zero.
114 115 116 |
# File 'ruby/trema/packet-queue.rb', line 114 def property @property end |
Instance Method Details
#to_s ⇒ String
Returns text representation of its attributes (property,len).
135 136 137 |
# File 'ruby/trema/packet-queue.rb', line 135 def to_s "property: #{@property} len: #{@len} " end |