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

Class SingleMsgPolicy

source code

generic.Policy --+    
                 |    
          JIPolicy --+
                     |
                    SingleMsgPolicy

subclass of joint intentions policies that generates all possible communication behaviors for an agent with a single joint commitment (this class is no longer very useful)

Instance Methods [hide private]
 
__init__(self, policy)
jpg: a dictionary of conditions under which the JPG is achieved.
source code
 
execute(self, state, choices=[], debug=0)
Generates possible messages for this agent
source code
Method Details [hide private]

__init__(self, policy)
(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 

Generates possible messages for this agent

Overrides: generic.Policy.execute