Lightweight version of a PsychSim agent with only the barest
essentials for generating behaviors
|
__init__(self,
agent=None)
Constructor that creates a lightweight version of a given PsychSim
agent |
source code
|
|
|
setHierarchy(self,
classes)
We don't need no stinking defaults |
source code
|
|
str
|
ancestry(self)
Returns:
a string representation of this entity's position in the recursive
belief tree. |
source code
|
|
boolean
|
|
str[]
|
|
Distribution
|
|
|
setState(self,
feature,
value)
Sets this entity's state value for the specified feature |
source code
|
|
|
|
|
|
|
|
StateKey[]
|
|
str[]
|
|
str[]
|
getLinkees(self,
relationship)
Returns:
the others to which this entity has explicit relationships of the
specified type |
source code
|
|
LinkKey
|
getLinkKey(self,
relation,
entity)
Returns:
the vector index for this entity's relation to the given entity |
source code
|
|
float
|
|
|
|
|
|
Distribution
|
getBelief(self,
entity,
feature)
Returns:
the agent's current belief about the given entity's value for the
given state feature |
source code
|
|
|
setBelief(self,
entity,
feature,
value)
Sets this entity's belief value for the specified entity's state
feature value |
source code
|
|
|
|
|
|
(Action[],Element)
|
applyPolicy(self,
state=None,
actions=[ ] ,
history=None,
debug=None,
explain=False,
entities={ } ,
cache={ } )
Generates a decision chosen according to the agent's current policy |
source code
|
|
|
actionValue(self,
actions,
horizon=1,
state=None,
debug=False)
Compute the expected value of performing the given action |
source code
|
|
Distribution(KeyedVector)
|
stateEstimator(self,
beliefs=None,
actions=[ ] ,
observation=None)
Updates the agent's beliefs in response to the given agents |
source code
|
|
|
setEstimator(self,
trans,
obs)
Compute state estimator |
source code
|
|
PWLDynamics
|
getDynamics(self,
act,
feature,
cache=False,
debug=False)
Returns:
this entity's dynamics model for the given action |
source code
|
|
|
|
|
|
Inherited from Agent.Agent :
__cmp__ ,
__copy__ ,
generateAllObservations ,
generateHistories ,
legalActions ,
legalMessages ,
observable ,
postComStateEstimator ,
preComStateEstimator ,
setName
|