Class: RSwim::Member::ForwardingState::Base
- Inherits:
-
Object
- Object
- RSwim::Member::ForwardingState::Base
- Defined in:
- lib/rswim/member/forwarding_state/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #advance(_elapsed_seconds) ⇒ Object
- #forward_ack_to_member ⇒ Object
-
#initialize(id, node_member_id) ⇒ Base
constructor
A new instance of Base.
- #prepare_output ⇒ Object
Constructor Details
#initialize(id, node_member_id) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/rswim/member/forwarding_state/base.rb', line 7 def initialize(id, node_member_id) @id = id @node_member_id = node_member_id logger.debug("Member with id #{id} entered new state: #{self.class}") end |
Instance Method Details
#advance(_elapsed_seconds) ⇒ Object
15 16 17 |
# File 'lib/rswim/member/forwarding_state/base.rb', line 15 def advance(_elapsed_seconds) self end |
#forward_ack_to_member ⇒ Object
13 |
# File 'lib/rswim/member/forwarding_state/base.rb', line 13 def forward_ack_to_member; end |
#prepare_output ⇒ Object
19 20 21 |
# File 'lib/rswim/member/forwarding_state/base.rb', line 19 def prepare_output [] end |