Package jadex.micro.mandelbrot.model
Class ProgressData
java.lang.Object
jadex.micro.mandelbrot.model.ProgressData
Object representing information about an ongoing calculation.
Internal data structure for java display.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBean constructor.ProgressData
(jadex.core.ComponentIdentifier providerid, Object taskid, Rectangle area, int progress, int imagewidth, int imageheight, String displayid) Create a new ProgressData. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Test if two objects are equal.getArea()
Get the area.Get the displayid.int
Get the imageheight.int
Get the imagewidth.int
jadex.core.ComponentIdentifier
Get the provider id.Get the task id.int
hashCode()
Calculate the hash code.boolean
void
Set the area.void
setDisplayId
(String displayid) Set the displayid.void
setImageHeight
(int imageheight) Set the imageheight.void
setImageWidth
(int imagewidth) Set the imagewidth.void
setProgress
(int progress) void
setProviderId
(jadex.core.ComponentIdentifier providerid) Set the provider id.void
Set the task id.toString()
String representation.
-
Field Details
-
providerid
protected jadex.core.ComponentIdentifier provideridThe provider id. -
taskid
The task id. -
area
The area. -
imagewidth
protected int imagewidthThe image width. -
imageheight
protected int imageheightThe image height. -
progress
protected int progressThe state (finished or not). -
displayid
The display id.
-
-
Constructor Details
-
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
Get the task id. -
setTaskId
Set the task id. -
getArea
Get the area. -
setArea
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
Get the displayid.- Returns:
- the displayid.
-
setDisplayId
Set the displayid.- Parameters:
displayid
- The displayid to set.
-
hashCode
public int hashCode()Calculate the hash code. -
equals
Test if two objects are equal. -
isFinished
public boolean isFinished() -
toString
String representation.
-