Package jadex.micro.examples.mandelbrot
Class ProgressData
- java.lang.Object
-
- jadex.micro.examples.mandelbrot.ProgressData
-
public class ProgressData extends java.lang.Object
Object representing information about an ongoing calculation.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.Rectangle
area
The area.protected java.lang.String
displayid
The display id.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 java.lang.Object
taskid
The 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 boolean
equals(java.lang.Object obj)
Test if two objects are equal.java.awt.Rectangle
getArea()
Get the area.java.lang.String
getDisplayId()
Get the displayid.int
getImageHeight()
Get the imageheight.int
getImageWidth()
Get the imagewidth.IComponentIdentifier
getProviderId()
Get the provider id.java.lang.Object
getTaskId()
Get the task id.int
hashCode()
Calculate the hash code.boolean
isFinished()
Check if calculation is finished.void
setArea(java.awt.Rectangle area)
Set the area.void
setDisplayId(java.lang.String displayid)
Set the displayid.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(java.lang.Object taskid)
Set the task id.java.lang.String
toString()
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if two objects are equal.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
String representation.- Overrides:
toString
in classjava.lang.Object
-
-