Package jadex.micro.examples.mandelbrot
Class CalculateAgent
- java.lang.Object
- 
- jadex.micro.examples.mandelbrot.CalculateAgent
 
- 
 public class CalculateAgent extends java.lang.ObjectCalculate agent allows calculating the colors of an area using a calculate service.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected booleanhadjobFlag indicating that the agent had a job.protected intprogressProgress of the current job.protected java.lang.ObjecttaskidId of the current job.
 - 
Constructor SummaryConstructors Constructor Description CalculateAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>executeBody()Execute the body.intgetProgress()Get the current progress.java.lang.ObjectgetTaskId()Get the current task id.booleanisHadJob()Get the hadjob.voidsetHadJob(boolean hadjob)Set the hadjob.voidsetProgress(int progress)Set the current progress.voidsetTaskId(java.lang.Object taskid)Set the current task id.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
hadjobprotected boolean hadjob Flag indicating that the agent had a job.
 - 
taskidprotected java.lang.Object taskid Id of the current job.
 - 
progressprotected int progress Progress of the current job.
 
- 
 - 
Method Detail- 
executeBodypublic IFuture<java.lang.Void> executeBody() Execute the body.
 - 
setHadJobpublic void setHadJob(boolean hadjob) Set the hadjob.- Parameters:
- hadjob- The hadjob to set.
 
 - 
isHadJobpublic boolean isHadJob() Get the hadjob.- Returns:
- The hadjob.
 
 - 
getTaskIdpublic java.lang.Object getTaskId() Get the current task id.
 - 
setTaskIdpublic void setTaskId(java.lang.Object taskid) Set the current task id.
 - 
getProgresspublic int getProgress() Get the current progress.
 - 
setProgresspublic void setProgress(int progress) Set the current progress.
 
- 
 
-