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

Class BestAvailablePolicy

source code

generic.Policy --+
                 |
                BestAvailablePolicy

a generic communication policy class that searches a space of candidate policies and finds the best one for a given COM-MTDP. It allows one to specify a space of possible policies, and have the constructor return the optimal policy from that space.

Instance Methods [hide private]
 
__init__(self, com_mtdp, states, agent, policySpace, otherAgentsComPolicy, domPolicy, horizon, debug=0) source code
 
execute(self, state, choices=[], debug=0) source code
Method Details [hide private]

__init__(self, com_mtdp, states, agent, policySpace, otherAgentsComPolicy, domPolicy, horizon, debug=0)
(Constructor)

source code 
Overrides: generic.Policy.__init__

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

source code 
Overrides: generic.Policy.execute