Class: AbstractChannel
- Inherits:
-
Object
- Object
- AbstractChannel
- Defined in:
- lib/cirrocumulus/channels.rb
Overview
Communication channel between agents. This is an abstract class.
Direct Known Subclasses
Instance Method Summary collapse
-
#agree(sender, action, options = {}) ⇒ Object
Agree to perform an action.
-
#failure(sender, action, reason, options = {}) ⇒ Object
Attempted to perform an action, but failed with given reason.
-
#inform(sender, proposition, options = {}) ⇒ Object
Informs the other side that given proposition is true.
-
#query(sender, expression, options = {}) ⇒ Object
Query the other side about expression value.
-
#query_if(sender, proposition, options = {}) ⇒ Object
Query the other side if given proposition is true.
-
#refuse(sender, action, reason, options = {}) ⇒ Object
Refuse to perform an action, because of reason.
-
#request(sender, action, options = {}) ⇒ Object
Request the other side to perform an action.
Instance Method Details
#agree(sender, action, options = {}) ⇒ Object
Agree to perform an action
31 |
# File 'lib/cirrocumulus/channels.rb', line 31 def agree(sender, action, = {}); end |
#failure(sender, action, reason, options = {}) ⇒ Object
Attempted to perform an action, but failed with given reason.
41 |
# File 'lib/cirrocumulus/channels.rb', line 41 def failure(sender, action, reason, = {}); end |
#inform(sender, proposition, options = {}) ⇒ Object
Informs the other side that given proposition is true.
11 |
# File 'lib/cirrocumulus/channels.rb', line 11 def inform(sender, proposition, = {}); end |
#query(sender, expression, options = {}) ⇒ Object
Query the other side about expression value.
21 |
# File 'lib/cirrocumulus/channels.rb', line 21 def query(sender, expression, = {}); end |
#query_if(sender, proposition, options = {}) ⇒ Object
Query the other side if given proposition is true.
26 |
# File 'lib/cirrocumulus/channels.rb', line 26 def query_if(sender, proposition, = {}); end |
#refuse(sender, action, reason, options = {}) ⇒ Object
Refuse to perform an action, because of reason.
36 |
# File 'lib/cirrocumulus/channels.rb', line 36 def refuse(sender, action, reason, = {}); end |
#request(sender, action, options = {}) ⇒ Object
Request the other side to perform an action
16 |
# File 'lib/cirrocumulus/channels.rb', line 16 def request(sender, action, = {}); end |