Class ProgressData

java.lang.Object
jadex.micro.mandelbrot.model.ProgressData

public class ProgressData extends Object
Object representing information about an ongoing calculation. Internal data structure for java display.
  • Field Details

    • providerid

      protected jadex.core.ComponentIdentifier providerid
      The provider id.
    • taskid

      protected Object taskid
      The task id.
    • area

      protected Rectangle area
      The area.
    • imagewidth

      protected int imagewidth
      The image width.
    • imageheight

      protected int imageheight
      The image height.
    • progress

      protected int progress
      The state (finished or not).
    • displayid

      protected String displayid
      The display id.
  • Constructor Details

    • ProgressData

      public ProgressData()
      Bean constructor.
    • ProgressData

      public ProgressData(jadex.core.ComponentIdentifier providerid, Object taskid, Rectangle area, int progress, int imagewidth, int imageheight, String displayid)
      Create a new ProgressData.
  • Method Details

    • getProviderId

      public jadex.core.ComponentIdentifier getProviderId()
      Get the provider id.
    • setProviderId

      public void setProviderId(jadex.core.ComponentIdentifier providerid)
      Set the provider id.
    • getTaskId

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

      public void setTaskId(Object taskid)
      Set the task id.
    • getArea

      public Rectangle getArea()
      Get the area.
    • setArea

      public void setArea(Rectangle area)
      Set the area.
    • getProgress

      public int getProgress()
      Returns:
      the progress
    • setProgress

      public void setProgress(int progress)
      Parameters:
      progress - the progress to set
    • getImageWidth

      public int getImageWidth()
      Get the imagewidth.
      Returns:
      the imagewidth.
    • setImageWidth

      public void setImageWidth(int imagewidth)
      Set the imagewidth.
      Parameters:
      imagewidth - The imagewidth to set.
    • getImageHeight

      public int getImageHeight()
      Get the imageheight.
      Returns:
      the imageheight.
    • setImageHeight

      public void setImageHeight(int imageheight)
      Set the imageheight.
      Parameters:
      imageheight - The imageheight to set.
    • getDisplayId

      public String getDisplayId()
      Get the displayid.
      Returns:
      the displayid.
    • setDisplayId

      public void setDisplayId(String displayid)
      Set the displayid.
      Parameters:
      displayid - The displayid to set.
    • hashCode

      public int hashCode()
      Calculate the hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Test if two objects are equal.
      Overrides:
      equals in class Object
    • isFinished

      public boolean isFinished()
    • toString

      public String toString()
      String representation.
      Overrides:
      toString in class Object