Class: Router
- Inherits:
-
NetworkElement
- Object
- NetworkElement
- Router
- Defined in:
- lib/network_entities/physical/router.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#priority_weights ⇒ Object
readonly
Returns the value of attribute priority_weights.
Attributes inherited from NetworkElement
#id, #in_elements, #my_number, #out_elements
Instance Method Summary collapse
-
#initialize(id, priority_weights = [1], buffer = -1)) ⇒ Router
constructor
A new instance of Router.
Methods inherited from NetworkElement
Methods included from SerializeBehavior
#transform_to_output_representation, #validate_concrete_builder
Constructor Details
#initialize(id, priority_weights = [1], buffer = -1)) ⇒ Router
Returns a new instance of Router.
7 8 9 10 11 |
# File 'lib/network_entities/physical/router.rb', line 7 def initialize(id, priority_weights=[1], buffer=-1) @priority_weights = priority_weights @buffer = buffer super id end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
5 6 7 |
# File 'lib/network_entities/physical/router.rb', line 5 def buffer @buffer end |
#priority_weights ⇒ Object (readonly)
Returns the value of attribute priority_weights.
5 6 7 |
# File 'lib/network_entities/physical/router.rb', line 5 def priority_weights @priority_weights end |