public class CalculateAgent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
protected boolean |
hadjob
Flag indicating that the agent had a job.
|
protected int |
progress
Progress of the current job.
|
protected java.lang.Object |
taskid
Id of the current job.
|
Constructor and Description |
---|
CalculateAgent() |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
executeBody()
Execute the body.
|
int |
getProgress()
Get the current progress.
|
java.lang.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(java.lang.Object taskid)
Set the current task id.
|
protected jadex.bridge.IInternalAccess agent
protected boolean hadjob
protected java.lang.Object taskid
protected int progress
public jadex.commons.future.IFuture<java.lang.Void> executeBody()
public void setHadJob(boolean hadjob)
hadjob
- The hadjob to set.public boolean isHadJob()
public java.lang.Object getTaskId()
public void setTaskId(java.lang.Object taskid)
public int getProgress()
public void setProgress(int progress)