Class CalculateAgent


  • public class CalculateAgent
    extends java.lang.Object
    Calculate agent allows calculating the colors of an area using a calculate service.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected 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 Summary

      Constructors 
      Constructor Description
      CalculateAgent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hadjob

        protected boolean hadjob
        Flag indicating that the agent had a job.
      • taskid

        protected java.lang.Object taskid
        Id of the current job.
      • progress

        protected int progress
        Progress of the current job.
    • Constructor Detail

      • CalculateAgent

        public CalculateAgent()
    • Method Detail

      • executeBody

        public IFuture<java.lang.Void> executeBody()
        Execute the body.
      • setHadJob

        public void setHadJob​(boolean hadjob)
        Set the hadjob.
        Parameters:
        hadjob - The hadjob to set.
      • isHadJob

        public boolean isHadJob()
        Get the hadjob.
        Returns:
        The hadjob.
      • getTaskId

        public java.lang.Object getTaskId()
        Get the current task id.
      • setTaskId

        public void setTaskId​(java.lang.Object taskid)
        Set the current task id.
      • getProgress

        public int getProgress()
        Get the current progress.
      • setProgress

        public void setProgress​(int progress)
        Set the current progress.