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

Module KeyedVector

source code

Classes for vectors with symbolic indices (i.e., Key objects)

Classes [hide private]
  KeyedVector
A dictionary-based representation of a one-dimensional vector
  DeltaRow
Subclass for rows used to compute deltas in dynamics
  SetToConstantRow
A row that sets the value of a given feature to a specific value
  SetToFeatureRow
A row that sets the value of a given feature to a specific percentage of some other feature
  IncrementRow
A row that increments the given feature by a constant amount
  ScaleRow
A row that increases the given feature by a percentage of another feature
  ActionCountRow
A rows that sets the value to a count of a given type of action
  UnchangedRow
A row that doesn't change the given feature
  SlopeRow
Subclass for rows used to represent the slope of planes
  TrueRow
A vector that produces a hyperplane that is always true
  ThresholdRow
A vector for testing that a given state feature exceeds a threshold.
  ClassRow
A vector for testing that a given entity is a member of a given class.
  RelationshipRow
A vector for testing that a given entity has the specified relationship to another entity.
  IdentityRow
A vector for testing that a given entity is identical to another.
  SumRow
A vector for testing that the sum of two given state features exceeds a threshold.
  DifferenceRow
A vector for testing that the difference between two given state features exceeds a threshold.
  EqualRow
A vector for testing that two given state features have the same value.
  ANDRow
Subclass representing a conjunction of tests.
  ORRow
Subclass representing a disjunction of tests.
Functions [hide private]
dict:str->class
getDeltaTypes()
Automatic extraction of possible DeltaRow subclasses
source code
dict:str->class
getSlopeTypes()
Automatic extraction of possible SlopeRow subclasses
source code
Variables [hide private]
  deltaTypes = getDeltaTypes()
  slopeTypes = getSlopeTypes()
dictionary of available classes for hyperplanes, indexed by appropriate labels
  vectorTypes = copy.copy(deltaTypes)
  EMPTY_NAMESPACE = None
  EMPTY_PREFIX = None
  StringTypes = (<type 'str'>, <type 'unicode'>)
  XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
Function Details [hide private]

getDeltaTypes()

source code 

Automatic extraction of possible DeltaRow subclasses

Returns: dict:str->class
all available subclasses of DeltaRow

getSlopeTypes()

source code 

Automatic extraction of possible SlopeRow subclasses

Returns: dict:str->class
all available subclasses of SlopeRow