Package jadex.micro.examples.mandelbrot
Class ProgressData
- java.lang.Object
-
- jadex.micro.examples.mandelbrot.ProgressData
-
public class ProgressData extends java.lang.ObjectObject representing information about an ongoing calculation.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.RectangleareaThe area.protected java.lang.StringdisplayidThe display id.protected booleanfinishedThe state (finished or not).protected intimageheightThe image height.protected intimagewidthThe image width.protected IComponentIdentifierprovideridThe provider id.protected java.lang.ObjecttaskidThe task id.
-
Constructor Summary
Constructors Constructor Description ProgressData()Bean constructor.ProgressData(IComponentIdentifier providerid, java.lang.Object taskid, java.awt.Rectangle area, boolean finished, int imagewidth, int imageheight, java.lang.String displayid)Create a new ProgressData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test if two objects are equal.java.awt.RectanglegetArea()Get the area.java.lang.StringgetDisplayId()Get the displayid.intgetImageHeight()Get the imageheight.intgetImageWidth()Get the imagewidth.IComponentIdentifiergetProviderId()Get the provider id.java.lang.ObjectgetTaskId()Get the task id.inthashCode()Calculate the hash code.booleanisFinished()Check if calculation is finished.voidsetArea(java.awt.Rectangle area)Set the area.voidsetDisplayId(java.lang.String displayid)Set the displayid.voidsetFinished(boolean finished)Set the finished flag.voidsetImageHeight(int imageheight)Set the imageheight.voidsetImageWidth(int imagewidth)Set the imagewidth.voidsetProviderId(IComponentIdentifier providerid)Set the provider id.voidsetTaskId(java.lang.Object taskid)Set the task id.java.lang.StringtoString()String representation.
-
-
-
Field Detail
-
providerid
protected IComponentIdentifier providerid
The provider id.
-
taskid
protected java.lang.Object taskid
The task id.
-
area
protected java.awt.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).
-
displayid
protected java.lang.String displayid
The display id.
-
-
Constructor Detail
-
ProgressData
public ProgressData()
Bean constructor.
-
ProgressData
public ProgressData(IComponentIdentifier providerid, java.lang.Object taskid, java.awt.Rectangle area, boolean finished, int imagewidth, int imageheight, java.lang.String displayid)
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 java.lang.Object getTaskId()
Get the task id.
-
setTaskId
public void setTaskId(java.lang.Object taskid)
Set the task id.
-
getArea
public java.awt.Rectangle getArea()
Get the area.
-
setArea
public void setArea(java.awt.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.
-
getDisplayId
public java.lang.String getDisplayId()
Get the displayid.- Returns:
- the displayid.
-
setDisplayId
public void setDisplayId(java.lang.String displayid)
Set the displayid.- Parameters:
displayid- The displayid to set.
-
hashCode
public int hashCode()
Calculate the hash code.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if two objects are equal.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
String representation.- Overrides:
toStringin classjava.lang.Object
-
-