|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.cesr.lara.components.agents.impl.LAbstractAgent<A,BO>
A - BO - the type of behavioural options the BO-memory of this agent may
storepublic abstract class LAbstractAgent<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,BO>>
TODO logging
| Field Summary | |
|---|---|
protected LaraAgentComponent<A,BO> |
agentComp
AgentComponent |
protected String |
id
id as String |
| Constructor Summary | |
|---|---|
LAbstractAgent(LaraEnvironment env)
|
|
LAbstractAgent(LaraEnvironment env,
String id)
To initialise the LaraAgentComponent properly the id needs to
passed to this constructor. |
|
| Method Summary | |
|---|---|
void |
clean(LaraDecisionConfiguration dConfiguration)
Removes the LaraDecisionData according to the specified
LaraDecisionConfiguration. |
void |
customClean(LaraDecisionConfiguration dConfiguration)
Called by clean(LaraDecisionConfiguration) Created
by Sascha Holzhauer on 12.10.2010 |
boolean |
equals(Object o)
Compares the agent IDs |
String |
getAgentId()
Get the custom agent id. |
LaraAgentComponent<A,BO> |
getLaraComp()
Returns the LaraAgentComponent of this agent. |
abstract A |
getThis()
Must be implemented in subclasses when the agent type parameter gets concrete. |
int |
hashCode()
|
void |
laraExecute(LaraDecisionConfiguration dConfiguration)
hook method... |
static void |
resetCounter()
Resets the counter used to label agents (agentID) |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.cesr.lara.components.eventbus.LaraEventSubscriber |
|---|
onEvent |
| Field Detail |
|---|
protected String id
protected LaraAgentComponent<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,BO>> agentComp
| Constructor Detail |
|---|
public LAbstractAgent(LaraEnvironment env)
env -
public LAbstractAgent(LaraEnvironment env,
String id)
LaraAgentComponent properly the id needs to
passed to this constructor.
env - id - | Method Detail |
|---|
public static void resetCounter()
public final void clean(LaraDecisionConfiguration dConfiguration)
LaraDecisionData according to the specified
LaraDecisionConfiguration.
de.cesr.lara.components.agents.LaraAgent#clean(de.cesr.lara.components.decision.LaraDecisionConfiguration)public void customClean(LaraDecisionConfiguration dConfiguration)
clean(LaraDecisionConfiguration) Created
by Sascha Holzhauer on 12.10.2010
dConfiguration - public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public final String getAgentId()
LaraAgent
getAgentId in interface LaraAgent<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,BO>>LaraAgent.getAgentId()public LaraAgentComponent<A,BO> getLaraComp()
LaraAgentLaraAgentComponent of this agent.
getLaraComp in interface LaraAgent<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,BO>>LaraAgent.getLaraComp()public abstract A getThis()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void laraExecute(LaraDecisionConfiguration dConfiguration)
de.cesr.lara.components.agents.LaraAgent#laraExecute(de.cesr.lara.components.decision.LaraDecisionConfiguration)public String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||