Package teamwork :: Package agent :: Module audit :: Class Auditor
[hide private]
[frames] | no frames]

Class Auditor

source code

              Agent.Agent --+            
                            |            
RecursiveAgent.RecursiveAgent --+        
                                |        
         GoalBased.GoalBasedAgent --+    
                                    |    
                    support.Supporter --+
                                        |
                                       Auditor

Mix-in entity class that supports an audit trail

Nested Classes [hide private]

Inherited from Agent.Agent: actionClass

Instance Methods [hide private]
 
__init__(self) source code
 
formatHistory(self, entry) source code
 
getHistory(self, key) source code
 
__getHistory(self, key)
Returns the history of changes to this entity's state/goal value
source code
 
extendHistory(self, entry, key=None) source code
 
setState(self, feature, value, log=None)
Sets this entity's state value for the specified feature to the provided float value
source code

Inherited from support.Supporter: __xml__, getAllBeliefs, getLink, getLinkKey, getLinkTypes, getLinkees, getSupport, getTrust, initEntities, parse, preComStateEstimator, removeLink, setLink, setSupport, setTrust, updateLinks, updateTrust

Inherited from GoalBased.GoalBasedAgent: __copy__, __str__, actionValue, applyGoals, expectedValue, fit, generateConstraints, getGoalTree, getGoalVector, getGoalWeight, getGoals, getNormalization, normalizeGoals, setGoalWeight, setGoals

Inherited from RecursiveAgent.RecursiveAgent: __deepcopy__, __eq__, __getitem__, __ne__, ancestry, applyChanges, applyPolicy, beliefDepth, findObservation, freeze, getActionKeys, getBelief, getBeliefKeys, getDynamics, getEntities, getEntity, getEntityBeliefs, getNestedBelief, getObservation, getObservations, getSelfBelief, getState, getStateFeatures, hasBelief, incorporateMessage, initialStateEstimator, invalidateCache, multistep, observe, resetHistory, saveObservations, setBelief, setEntity, setName, setObservation, setRecursiveBelief, setSelfBelief, stateEstimator, step, toHTML, updateStateDict

Inherited from Agent.Agent: __cmp__, generateAllObservations, generateHistories, legalActions, legalMessages, observable, postComStateEstimator

Class Variables [hide private]

Inherited from support.Supporter: supportLimit, supportWeights

Inherited from support.Supporter (private): _supportFeature, _trustFeature

Inherited from GoalBased.GoalBasedAgent: valueType

Instance Variables [hide private]

Inherited from support.Supporter: linkDynamics, linkTypes, links

Inherited from GoalBased.GoalBasedAgent: constraints, goals, horizon

Inherited from RecursiveAgent.RecursiveAgent: dynamics, parent, relationships, state

Inherited from Agent.Agent: actions, name, omega

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Parameters:
  • name - label for this instance
Overrides: Agent.Agent.__init__
(inherited documentation)

setState(self, feature, value, log=None)

source code 

Sets this entity's state value for the specified feature to the provided float value

Overrides: RecursiveAgent.RecursiveAgent.setState