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

Class IdentityRow

source code

KeyedVector --+    
              |    
       SlopeRow --+
                  |
                 IdentityRow

A vector for testing that a given entity is identical to another. It should be created as row = IdentityRow(keys=[{'entity':entity}]) to create a test that the entity being tested is the given entity

The following creates a row to test that I am the object of the current action:

>>> row = IdentityRow(keys=[{'entity':'object','relationship':'equals'}])
Instance Methods [hide private]
 
simpleText(self, numbers=True, all=False) source code

Inherited from SlopeRow: __copy__, __deepcopy__, __init__, __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]
  args = [{'type': <class 'teamwork.math.Keys.IdentityKey'>, 'we...
list of keys for this test
  threshold = 0.0
the default threshold for a plane of this type

Inherited from SlopeRow: relation

Instance Variables [hide private]

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

Method Details [hide private]

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

source code 
Overrides: KeyedVector.simpleText

Class Variable Details [hide private]

args

list of keys for this test
Value:
[{'type': <class 'teamwork.math.Keys.IdentityKey'>, 'weight': 1.0}]