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 TypeMethodDescriptionbooleanTest if two objects are equal.getArea()Get the area.Get the displayid.intGet the imageheight.intGet the imagewidth.intjadex.core.ComponentIdentifierGet the provider id.Get the task id.inthashCode()Calculate the hash code.booleanvoidSet the area.voidsetDisplayId(String displayid) Set the displayid.voidsetImageHeight(int imageheight) Set the imageheight.voidsetImageWidth(int imagewidth) Set the imagewidth.voidsetProgress(int progress) voidsetProviderId(jadex.core.ComponentIdentifier providerid) Set the provider id.voidSet 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.
-