Class: RSwim::Member::ForwardingState::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rswim/member/forwarding_state/base.rb

Direct Known Subclasses

ForwardingAck, Ready

Instance Method Summary collapse

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_memberObject



13
# File 'lib/rswim/member/forwarding_state/base.rb', line 13

def forward_ack_to_member; end

#prepare_outputObject



19
20
21
# File 'lib/rswim/member/forwarding_state/base.rb', line 19

def prepare_output
  []
end