Package teamwork :: Package multiagent :: Module Team :: Class Team
[hide private]
[frames] | no frames]

Class Team

source code

             object --+        
                      |        
                   dict --+    
                          |    
Multiagent.MultiagentSystem --+
                              |
                             Team

Base class for representing a team of entities

Instance Methods [hide private]
 
generateAllActions(self, seedAction={})
Generates all possible combined team actions consistent with the specified seed action (generates all possible combined team actions if seed action is left unspecified)
source code
 
__generateAllActions(self, actList, agents) source code
 
composeActions(self, actions)
Translates a dictionary of agent:action pairs into a single string
source code
 
decomposeActions(self, actionString)
Translates a string into a dictionary of agent:action pairs
source code
 
individualObs(self, state, actions, observation, agent)
Default method for returning the probability distribution over observations for an individual agent.
source code
 
observableProb(self, state, actions, observation, agent)
Handles the observation function for features that are completely observable.
source code

Inherited from Multiagent.MultiagentSystem: __init__, __str__, __xml__, addMember, getMember, initialize, members, parse, save

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

individualObs(self, state, actions, observation, agent)

source code 

Default method for returning the probability distribution over observations for an individual agent. Returns a uniform distribution. Should be overwritten.

observableProb(self, state, actions, observation, agent)

source code 

Handles the observation function for features that are completely observable. If the observation does not match the true state on the completely observable features, then this function returns 0.0; otherwise, it returns 1.0