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

Module pwlSimulation

source code

Lightweight multiagent simulation

Classes [hide private]
  PWLSimulation
Functions [hide private]
KeyedMatrix
updateDelta(matrix, key, exp, turns, action=None, dynamics=None, vector=None, delta=None)
Updates the given delta by instantiating the given dynamics
source code
Variables [hide private]
  EMPTY_NAMESPACE = None
  EMPTY_PREFIX = None
  StringTypes = (<type 'str'>, <type 'unicode'>)
  XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
Function Details [hide private]

updateDelta(matrix, key, exp, turns, action=None, dynamics=None, vector=None, delta=None)

source code 

Updates the given delta by instantiating the given dynamics

Parameters:
  • action (Action) - the action performed
  • dynamics (PWLDynamics) - the dynamics object to instantiate
  • vector (KeyedVector) - the current state vector
  • matrix (dict) - the delta matrix so far
  • key (StateKey) - the key of the delta entry being generated
  • exp (Document) - the explanation so far
  • turns (Action→Document) - the dictionary of turn effects
Returns: KeyedMatrix
the delta (untouched if passed in, computed if not)