Package teamwork :: Package math :: Module KeyedVector :: Class ANDRow
[hide private]
[frames] | no frames]

Class ANDRow

source code

KeyedVector --+    
              |    
       SlopeRow --+
                  |
                 ANDRow

Subclass representing a conjunction of tests.

The following creates a row to test that the current state is both 'terminated' and 'accepted':

>>> row = ANDRow(keys=[{'entity':'self','feature':'terminated'},{'entity':'self','feature':'accepted'}])
Instance Methods [hide private]
 
__init__(self, args={}, keys=None) source code
 
simpleText(self, numbers=True, all=False) source code

Inherited from SlopeRow: __copy__, __deepcopy__, __xml__, instantiate, instantiateKeys, parse

Inherited from KeyedVector: __add__, __delitem__, __eq__, __getitem__, __hash__, __len__, __mul__, __neg__, __rmul__, __setitem__, __str__, __sub__, addColumns, compose, fill, freeze, getArray, has_key, items, keys, normalize, setArray, unfreeze

Inherited from KeyedVector (private): _updateString

Class Variables [hide private]

Inherited from SlopeRow: args, relation, threshold

Instance Variables [hide private]

Inherited from KeyedVector (private): _array, _fresh, _frozen, _string

Method Details [hide private]

__init__(self, args={}, keys=None)
(Constructor)

source code 
Overrides: KeyedVector.__init__

simpleText(self, numbers=True, all=False)

source code 
Overrides: KeyedVector.simpleText