jadex.micro.examples.mandelbrot
Class ProgressData

java.lang.Object
  extended by jadex.micro.examples.mandelbrot.ProgressData

public class ProgressData
extends Object

Object representing information about an ongoing calculation.


Field Summary
protected  Rectangle area
          The area.
protected  boolean finished
          The state (finished or not).
protected  int imageheight
          The image height.
protected  int imagewidth
          The image width.
protected  IComponentIdentifier providerid
          The provider id.
protected  Object taskid
          The task id.
 
Constructor Summary
ProgressData()
          Bean constructor.
ProgressData(IComponentIdentifier providerid, Object taskid, Rectangle area, boolean finished, int imagewidth, int imageheight)
          Create a new ProgressData.
 
Method Summary
 boolean equals(Object obj)
          Test if two objects are equal.
 Rectangle getArea()
          Get the area.
 int getImageHeight()
          Get the imageheight.
 int getImageWidth()
          Get the imagewidth.
 IComponentIdentifier getProviderId()
          Get the provider id.
 Object getTaskId()
          Get the task id.
 int hashCode()
          Calculate the hash code.
 boolean isFinished()
          Check if calculation is finished.
 void setArea(Rectangle area)
          Set the area.
 void setFinished(boolean finished)
          Set the finished flag.
 void setImageHeight(int imageheight)
          Set the imageheight.
 void setImageWidth(int imagewidth)
          Set the imagewidth.
 void setProviderId(IComponentIdentifier providerid)
          Set the provider id.
 void setTaskId(Object taskid)
          Set the task id.
 String toString()
          String representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

providerid

protected IComponentIdentifier 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.


finished

protected boolean finished
The state (finished or not).

Constructor Detail

ProgressData

public ProgressData()
Bean constructor.


ProgressData

public ProgressData(IComponentIdentifier providerid,
                    Object taskid,
                    Rectangle area,
                    boolean finished,
                    int imagewidth,
                    int imageheight)
Create a new ProgressData.

Method Detail

getProviderId

public IComponentIdentifier getProviderId()
Get the provider id.


setProviderId

public void setProviderId(IComponentIdentifier 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.


isFinished

public boolean isFinished()
Check if calculation is finished.


setFinished

public void setFinished(boolean finished)
Set the finished flag.


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.

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

toString

public String toString()
String representation.

Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.