Package teamwork :: Package math :: Module Keys :: Class ActionKey
[hide private]
[frames] | no frames]

Class ActionKey

source code

object --+            
         |            
      dict --+        
             |        
           Key --+    
                 |    
    ObservationKey --+
                     |
    object --+       |
             |       |
          dict --+   |
                 |   |
               Key --+
                     |
                    ActionKey

A Key indicating the entry corresponding to an observed action flag

>>> key = ActionKey({'type':'tax','entity':'manager','object':'market'})

A minimum of one of the fields must be provided. Any omitted fields are assumed to be filled by wildcards.

Instance Methods [hide private]
 
simpleText(self) source code

Inherited from Key: __copy__, __hash__, __str__, __xml__, instantiate, parse

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __init__, __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__

Class Variables [hide private]
  keyType = 'action'
  slots = {'entity': 1, 'object': 1, 'type': 3}

Inherited from ObservationKey: decayRate

Inherited from Key: ACTION, CLASS, ENTITIES, ENTITY, STATE, TEST, VALUE

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

simpleText(self)

source code 
Overrides: Key.simpleText