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

Class LocallyOptimalJIPolicy

source code

generic.Policy --+    
                 |    
          JIPolicy --+
                     |
                    LocallyOptimalJIPolicy

subclass of joint intentions policies that generates locally optimal decisions with respect to a single JPG

Instance Methods [hide private]
 
__init__(self, com_mtdp, states, comPolicy, domPolicy, agent, horizon, jpg, achievedMsg, debug=0)
jpg: a dictionary of conditions under which the JPG is achieved.
source code
 
execute(self, state, choices=[], debug=-1) source code
 
__generateConsistentStates(self, beliefs, stateList, currentTime, debug=0) source code
Method Details [hide private]

__init__(self, com_mtdp, states, comPolicy, domPolicy, agent, horizon, jpg, achievedMsg, debug=0)
(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=-1)

source code 
Overrides: generic.Policy.execute