Class: RSwim::Agent::SleepBased
- Defined in:
- lib/rswim/agent.rb
Instance Method Summary collapse
-
#initialize(pipe, node_member_id, seed_member_ids, t_ms, r_ms, sleep_time_seconds = 0.1) ⇒ SleepBased
constructor
A new instance of SleepBased.
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 |