|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.micro.MicroAgent
jadex.micro.examples.mandelbrot.CalculateAgent
public class CalculateAgent
Calculate agent allows calculating the colors of an area using a calculate service.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jadex.micro.MicroAgent |
|---|
MicroAgent.TimerWrapper |
| Field Summary | |
|---|---|
protected boolean |
hadjob
Flag indicating that the agent had a job. |
protected int |
progress
Progress of the current job. |
protected Object |
taskid
Id of the current job. |
| Fields inherited from class jadex.micro.MicroAgent |
|---|
interpreter, longtime, timers |
| Constructor Summary | |
|---|---|
CalculateAgent()
|
|
| Method Summary | |
|---|---|
void |
agentCreated()
Called once after agent creation. |
void |
executeBody()
Execute the body. |
static MicroAgentMetaInfo |
getMetaInfo()
Get the meta information about the agent. |
int |
getProgress()
Get the current progress. |
Object |
getTaskId()
Get the current task id. |
boolean |
isHadJob()
Get the hadjob. |
void |
setHadJob(boolean hadjob)
Set the hadjob. |
void |
setProgress(int progress)
Set the current progress. |
void |
setTaskId(Object taskid)
Set the current task id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean hadjob
protected Object taskid
protected int progress
| Constructor Detail |
|---|
public CalculateAgent()
| Method Detail |
|---|
public void agentCreated()
agentCreated in interface IMicroAgentagentCreated in class MicroAgentpublic void executeBody()
executeBody in interface IMicroAgentexecuteBody in class MicroAgentpublic void setHadJob(boolean hadjob)
hadjob - The hadjob to set.public boolean isHadJob()
public Object getTaskId()
public void setTaskId(Object taskid)
public int getProgress()
public void setProgress(int progress)
public static MicroAgentMetaInfo getMetaInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||