Package teamwork :: Package policy :: Module JIPolicy :: Class JIPolicy
[hide private]
[frames] | no frames]

Class JIPolicy

source code

generic.Policy --+
                 |
                JIPolicy
Known Subclasses:

generic class for a communication policy, where there is a single possible message and it refers to the achievement of some joint goal

Instance Methods [hide private]
 
__init__(self, jpg, achievedMsg, type='joint intentions')
jpg: a dictionary of conditions under which the JPG is achieved.
source code
 
execute(self, state, choices=[], debug=0) source code
Method Details [hide private]

__init__(self, jpg, achievedMsg, type='joint intentions')
(Constructor)

source code 

jpg: a dictionary of conditions under which the JPG is achieved. The keys are the relevant feature names; the values are a list of relevant feature values.

Overrides: generic.Policy.__init__

execute(self, state, choices=[], debug=0)

source code 
Overrides: generic.Policy.execute