dict
|
observe(self,
actionDict={ } )
Returns:
observations this entity would make of the given actions, in the same
format as the provided action dictionary |
source code
|
|
(Action[],Element)
|
applyPolicy(self,
state=None,
actions=[ ] ,
history=None,
debug=None,
explain=False)
Generates a decision chosen according to the agent's current policy |
source code
|
|
|
updateActionChoices(self,
choices,
state=None,
includeLocation=False) |
source code
|
|
|
updateActionChoices7(self,
choices,
state=None,
includeLocation=False) |
source code
|
|
|
forceinitState(self)
Instantiates all of the state defaults relevant to this entity |
source code
|
|
dict[]
|
fitAllAction(self,
horizon=-1,
state=None)
Computes a set of constraints on possible goal weights for this agent
that, if satisfied, will cause the agent to prefer the desired action
in the given state. |
source code
|
|
Distribution over float
|
applyRealGoals(self,
entity=None,
world=None,
debug=Debugger (0),
fixedgoals=[ ' sameLocation ' , ' actAlive ' , ' specialRule ' ] )
Returns:
expected reward of the entity in current world |
source code
|
|
|
getDefault(self,
feature)
Finds the most specific class defaults for the specified feature;
raises KeyError exception if no default exists |
source code
|
|
|
initGoals(self,
entities=[ ] )
Sets the goal weights of this entity based on class defaults. |
source code
|
|
|
initEntities(self,
entityList,
depth=1,
maxDepth=-1)
Sets the entities known to be the list provided, and makes the
appropriate updates to goals, policy depth, etc. |
source code
|
|
PWLDynamics
|
|
|
hypotheticalPostCom(self,
beliefs,
msgs,
epoch=-1,
debug=Debugger (0))
Returns:
the potential change in the agent's beliefs based on received
messages |
source code
|
|
Inherited from agent.Entities.PsychEntity :
__cmp__ ,
__copy__ ,
__getstate__ ,
__init__ ,
__setstate__ ,
__xml__ ,
acceptMessage ,
acceptability ,
extendPolicy ,
getPolicyDepth ,
parse ,
postComStateEstimator ,
preComStateEstimator ,
setPolicyDepth ,
stateEstimator
Inherited from agent.DefaultBased.GenericEntity :
addActions ,
applyBeliefs ,
applyDefaults ,
initActions ,
initBeliefs ,
initDynamics ,
initModels ,
initObservations ,
initRelationships ,
initState ,
instanceof ,
instantiateGoal ,
instantiateList ,
instantiateName ,
setHierarchy
Inherited from agent.stereotypes.Stereotyper :
__str__ ,
clusterSpace ,
freezeModels ,
generateSpace ,
hypotheticalPreCom ,
reachable ,
setModel ,
updateModel ,
updateModels ,
weightEqual
Inherited from agent.GoalBased.GoalBasedAgent :
actionValue ,
applyGoals ,
expectedValue ,
fit ,
generateConstraints ,
getGoalTree ,
getGoalVector ,
getGoalWeight ,
getGoals ,
getNormalization ,
normalizeGoals ,
setGoalWeight ,
setGoals
Inherited from agent.RecursiveAgent.RecursiveAgent :
__deepcopy__ ,
__eq__ ,
__getitem__ ,
__ne__ ,
ancestry ,
applyChanges ,
beliefDepth ,
findObservation ,
freeze ,
getActionKeys ,
getAllBeliefs ,
getBelief ,
getBeliefKeys ,
getEntities ,
getEntity ,
getEntityBeliefs ,
getNestedBelief ,
getObservation ,
getObservations ,
getSelfBelief ,
getState ,
getStateFeatures ,
hasBelief ,
incorporateMessage ,
initialStateEstimator ,
invalidateCache ,
multistep ,
resetHistory ,
saveObservations ,
setBelief ,
setEntity ,
setName ,
setObservation ,
setRecursiveBelief ,
setSelfBelief ,
setState ,
step ,
toHTML ,
updateStateDict
Inherited from agent.Agent.Agent :
generateAllObservations ,
generateHistories ,
legalActions ,
legalMessages ,
observable
Inherited from agent.support.Supporter :
getLink ,
getLinkKey ,
getLinkTypes ,
getLinkees ,
getSupport ,
getTrust ,
removeLink ,
setLink ,
setSupport ,
setTrust ,
updateLinks ,
updateTrust
Inherited from agent.consistency.ConsistentAgent :
__getMessageContentKey__ ,
__getStateIntegratedWithMessage__ ,
__propagateBeliefsBackInTime__ ,
__propagateBeliefsForwardInTime__ ,
__solveForUniqueTreePath__ ,
calculateMessageConsistency ,
getMemoryConsistency
Inherited from agent.MemoryAgent.MemoryAgent :
updateMemory
|