Class: Andromeda::Sync::Bracket

Inherits:
Plan show all
Defined in:
lib/andromeda/sync.rb

Overview

Passes all input and waits for the associated scope to return to the start value (will only work if there is no concurrent modification to the associated scope)

Instance Attribute Summary

Attributes inherited from Plan

#error_level, #log, #marker, #nick, #trace_enter, #trace_exit

Attributes inherited from Impl::ProtoPlan

#guide, #id

Instance Method Summary collapse

Methods inherited from Plan

#initialize, #initialize_copy, #pool, #tap, #to_short_s

Methods inherited from Impl::ProtoPlan

#>>, #current_name, #current_scope, #data_key, #data_tag, #data_val, #dest, #entry, #initialize, #initialize_copy, #key_label, #key_spot, #map_data, #mute, name_spot, #post_data, #post_to, #public_spot, #selects?, #signal_name?, signal_names, #signal_names, signal_spot, spot_attr, #spot_attr_name?, spot_attr_names, #spot_attr_names, spot_meth, #spot_meth_name?, #spot_meth_names, spot_meth_names, #spot_name?, spot_names, #spot_names, #tags, #to_short_s, #via

Methods included from Impl::To_S

short_s, #to_s, #to_short_s

Methods inherited from Impl::ConnectorBase

#post, #post_local, #start

Constructor Details

This class inherits a constructor from Andromeda::Plan

Instance Method Details

#init_guideObject



58
# File 'lib/andromeda/sync.rb', line 58

def init_guide ; ::Andromeda::Guides::LocalGuide end

#on_enter(key, val) ⇒ Object



60
61
62
63
64
65
# File 'lib/andromeda/sync.rb', line 60

def on_enter(key, val)
  scope_ = current_scope
  value_ = scope_.value
  super key, val
  scope_.wait_until_eq value_
end