Generic entity class with general-purpose methods for instantiating an
entity, using class-specific defaults
|
|
|
|
|
|
|
|
applyDefaults(self,
className=None,
hierarchy=None)
Applies the generic model in the society of the given class name |
source code
|
|
|
|
getDefault(self,
feature)
Finds the most specific class defaults for the specified feature;
raises KeyError exception if no default exists |
source code
|
|
|
|
initState(self)
Instantiates all of the state defaults relevant to this entity |
source code
|
|
|
|
|
|
|
|
|
|
initRelationships(self,
entityList)
Instantiates the relationships of this entity regarding the provided
list of entities |
source code
|
|
|
|
initModels(self,
entityList)
Instantiate all of the relevant models |
source code
|
|
|
|
initEntities(self,
entityList,
maxDepth=-1)
Sets the entities known to be the list provided, and makes the
appropriate updates to goals, policy depth, etc. |
source code
|
|
|
|
initBeliefs(self,
entity)
Sets the beliefs that this entity has about the given entity,
following the various defaults |
source code
|
|
|
|
|
|
|
initDynamics(self,
entities={})
Sets world dynamics of this entity in response to all of the possible
actions in the given multiagent system |
source code
|
|
|
|
initGoals(self,
entities=[])
Sets the goal weights of this entity based on class defaults. |
source code
|
|
|
|
initObservations(self,
entities=[])
Instantiates generic observation function with given entity list |
source code
|
|
|
|
|
|
|
instantiateList(self,
nameList,
refList,
entities=[])
Returns:
a list of entity lists appropriate for recursive beliefs with all
name references replaced by the appropriate entities |
source code
|
|
str[]
|
instantiateName(self,
name,
entities=[])
Returns a list of instance names that match the given abstract entity
reference (either 'self', relationship, or class name). |
source code
|
|
|
|
addActions(self,
entities)
Adds any actions that I can perform with respect to the given
entities |
source code
|
|
|
|
| _addActions(self,
entities,
baseActions,
realActions) |
source code
|
|
boolean
|
|
|
|
|
|
|
|
|
|
parse(self,
element)
Extracts this agent's recursive belief structure from the given XML
Element |
source code
|
|
|
Inherited from stereotypes.Stereotyper:
__str__,
clusterSpace,
freezeModels,
generateSpace,
hypotheticalPreCom,
reachable,
setModel,
updateModel,
updateModels,
weightEqual
Inherited from GoalBased.GoalBasedAgent:
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,
getAllBeliefs,
getBelief,
getBeliefKeys,
getDynamics,
getEntities,
getEntity,
getEntityBeliefs,
getNestedBelief,
getObservation,
getObservations,
getSelfBelief,
getState,
getStateFeatures,
hasBelief,
incorporateMessage,
initialStateEstimator,
invalidateCache,
multistep,
observe,
preComStateEstimator,
resetHistory,
saveObservations,
setBelief,
setEntity,
setName,
setObservation,
setRecursiveBelief,
setSelfBelief,
setState,
stateEstimator,
step,
toHTML,
updateStateDict
Inherited from Agent.Agent:
__cmp__,
generateAllObservations,
generateHistories,
legalActions,
legalMessages,
observable,
postComStateEstimator
|