Class: RSwim::Agent::SleepBased

Inherits:
PullBased show all
Defined in:
lib/rswim/agent.rb

Instance Method Summary collapse

Methods inherited from PullBased

#append_custom_state, #run, #subscribe

Constructor Details

#initialize(pipe, node_member_id, seed_member_ids, t_ms, r_ms, sleep_time_seconds = 0.1) ⇒ SleepBased

Returns a new instance of SleepBased.



84
85
86
87
# File 'lib/rswim/agent.rb', line 84

def initialize(pipe, node_member_id, seed_member_ids, t_ms, r_ms, sleep_time_seconds = 0.1)
  super(pipe, node_member_id, seed_member_ids, t_ms, r_ms)
  @sleep_time_seconds = sleep_time_seconds
end