Class ImageGenerator
java.lang.Object
ch.nolix.base.programcontrol.future.AbstractFuture
ch.nolix.tech.math.fractal.ImageGenerator
- All Implemented Interfaces:
IFuture, FinishRequestable, IImageGenerator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ImageGeneratorforFractal(IFractal fractal) getError()booleanvoidLets the currentIFuturewait until it is finished.voidwaitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.Methods inherited from class AbstractFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfullyMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FinishRequestable
isRunningMethods inherited from interface IFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfully
-
Method Details
-
forFractal
-
caughtError
public boolean caughtError()- Specified by:
caughtErrorin interfaceIFuture- Returns:
- true if the current
IFuturecaught an error, false otherwise.
-
getError
-
getStoredImage
- Specified by:
getStoredImagein interfaceIImageGenerator
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceFinishRequestable- Returns:
- true if the current
FinishRequestableis finished, false otherwise.
-
waitUntilIsFinished
public void waitUntilIsFinished()Lets the currentIFuturewait until it is finished.- Specified by:
waitUntilIsFinishedin interfaceIFuture
-
waitUntilIsFinished
public void waitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.- Specified by:
waitUntilIsFinishedin interfaceIFuture- Parameters:
timeoutInMilliseconds-
-