public abstract class AbstractAgent
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractAgent(AgentId aid) |
protected |
AbstractAgent(AgentId aid,
IRespectTC rtc) |
Modifier and Type | Method and Description |
---|---|
protected void |
execPlan(java.lang.String name) |
AgentId |
getId() |
IRespectTC |
getTc() |
void |
go()
Starts agent execution
|
protected abstract void |
mainPlan()
Body of the agent
|
void |
setTc(IRespectTC rtc) |
protected AbstractAgent(AgentId aid)
aid
- the identifier of this agentprotected AbstractAgent(AgentId aid, IRespectTC rtc)
aid
- the identifier of this agentrtc
- the ReSpecT tuple centre this agent wants to operate onpublic AgentId getId()
public IRespectTC getTc()
public final void go()
public void setTc(IRespectTC rtc)
rtc
- the tc to setprotected final void execPlan(java.lang.String name)
name
- the full name of the Java class to execute as the agent planprotected abstract void mainPlan()