Class: AbstractChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/cirrocumulus/channels.rb

Overview

Communication channel between agents. This is an abstract class.

Direct Known Subclasses

NetworkChannel, ThreadChannel

Instance Method Summary collapse

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, options = {}); 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, options = {}); 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, options = {}); 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, options = {}); 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, options = {}); 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, options = {}); 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, options = {}); end