|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A
- type of agent this LARA component belongs toBO
- type of behavioural options memorised in the BO-memorypublic interface LaraAgentComponent<A extends LaraAgent<? super A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Method Summary | |
---|---|
void |
addPreferenceWeights(LPrefEntry... prefEntry)
Set the agent's preferenceWeights towards its preferences. |
void |
addPreferenceWeights(Map<Class<? extends LaraPreference>,Double> preferenceWeights)
Set the agent's preference weights towards its preferences. |
void |
decide(LaraDecisionConfiguration dConfiguration)
Executes decision making for the given LaraDecisionConfiguration :
Simulates the agent's decision making process. |
LaraBOMemory<BO> |
getBOMemory()
Get the LaraBOMemory (for behavioural options) of this agent. |
LaraDecisionData<A,BO> |
getDecisionData(LaraDecisionConfiguration dConfiguration)
Returns the LaraDecisionData object associated with the given
LaraDecisionConfiguration . |
Iterable<LaraDecisionData<A,BO>> |
getDecisionDataIterable()
Returns an iterator that iterates over all LaraDecisionData s. |
LaraDeliberativeChoiceComponent |
getDeliberativeChoiceComp(LaraDecisionConfiguration dConfiguration)
Returns the LaraDeliberativeChoiceComponent that shall be used
for the given decision configuration. |
double |
getDoubleProperty(String name)
|
LaraEnvironment |
getEnvironment()
Get the environment this agent belongs to by its type |
LaraMemory<LaraProperty<?,?>> |
getGeneralMemory()
Get the LaraMemory (for general properties) of this agent. |
int |
getNumDecisionDataObjects()
The number of LaraDecisionData objects currently stored at the
agent. |
Double |
getPreferenceWeight(Class<? extends LaraPreference> preference)
|
Map<Class<? extends LaraPreference>,Double> |
getPreferenceWeights()
|
void |
removeDecisionData(LaraDecisionConfiguration dConfiguration)
Removes the LaraDecisionData that is associated with the
specified LaraDecisionConfiguration . |
void |
setBOMemory(LaraBOMemory<BO> boMemory)
Set the agent's behavioural options memory |
void |
setDeliberativeChoiceComp(LaraDecisionConfiguration dConfiguration,
LaraDeliberativeChoiceComponent comp)
Sets the LaraDeliberativeChoiceComponent that shall be used for
the given decision configuration. |
void |
setDoubleProperty(String name,
double value)
|
void |
setGeneralMemory(LaraMemory<LaraProperty<?,?>> memory)
Set the agent's general property memory |
void |
setPostProcessor(LaraPostprocessorComp<A,BO> postprocesor)
Sets the post-processor component. |
void |
setPreprocessor(LaraPreprocessor<A,BO> preprocessor)
Set the agent's pre-processor. |
Methods inherited from interface de.cesr.lara.components.environment.LaraEnvironmentListener |
---|
envPropertyChanged |
Methods inherited from interface de.cesr.lara.components.eventbus.LaraInternalEventSubscriber |
---|
onInternalEvent |
Method Detail |
---|
void addPreferenceWeights(LPrefEntry... prefEntry)
prefEntry
- void addPreferenceWeights(Map<Class<? extends LaraPreference>,Double> preferenceWeights)
preferenceWeights
- the preferenceWeights to setvoid decide(LaraDecisionConfiguration dConfiguration)
LaraDecisionConfiguration
:
Simulates the agent's decision making process.
dConfiguration
- decision builder that identifies the decision to executeLaraBOMemory<BO> getBOMemory()
LaraBOMemory
(for behavioural options) of this agent.
LaraDecisionData<A,BO> getDecisionData(LaraDecisionConfiguration dConfiguration)
LaraDecisionData
object associated with the given
LaraDecisionConfiguration
. If the object does not exist, it is
created.
NOTE: The LDC parameter should not be bounded since it would require the
LaraBehaviouralOption (which calls this method) to restricts its agent
parameter's BO parameter.
dConfiguration
-
Iterable<LaraDecisionData<A,BO>> getDecisionDataIterable()
LaraDecisionData
s.
LaraDeliberativeChoiceComponent getDeliberativeChoiceComp(LaraDecisionConfiguration dConfiguration)
LaraDeliberativeChoiceComponent
that shall be used
for the given decision configuration.
dConfiguration
-
double getDoubleProperty(String name)
name
- the property's name
LaraEnvironment getEnvironment()
LaraMemory<LaraProperty<?,?>> getGeneralMemory()
LaraMemory
(for general properties) of this agent.
int getNumDecisionDataObjects()
LaraDecisionData
objects currently stored at the
agent.
Double getPreferenceWeight(Class<? extends LaraPreference> preference)
preference
-
Map<Class<? extends LaraPreference>,Double> getPreferenceWeights()
void removeDecisionData(LaraDecisionConfiguration dConfiguration)
LaraDecisionData
that is associated with the
specified LaraDecisionConfiguration
.
dConfiguration
- void setBOMemory(LaraBOMemory<BO> boMemory)
boMemory
- the new BO memoryvoid setDeliberativeChoiceComp(LaraDecisionConfiguration dConfiguration, LaraDeliberativeChoiceComponent comp)
LaraDeliberativeChoiceComponent
that shall be used for
the given decision configuration.
Note: if possible, use the same instance of the
LaraDeliberativeChoiceComponent for all agents to save memory.
dConfiguration
- comp
- void setDoubleProperty(String name, double value)
name
- the name of existing or new propertyvalue
- the property's (new) valuevoid setGeneralMemory(LaraMemory<LaraProperty<?,?>> memory)
memory
- agent's general property memoryvoid setPostProcessor(LaraPostprocessorComp<A,BO> postprocesor)
postprocesor
- void setPreprocessor(LaraPreprocessor<A,BO> preprocessor)
preprocessor
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |