Package pal.util
Interface AlgorithmCallback
public interface AlgorithmCallback
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A Utility class that provides some simple implementations of AlgorithmCallback that can be used for manipulating callback results -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Should be called intermittedly to check if algorithm should stop (should return null if has output)void
updateProgress
(double progress) void
updateStatus
(String statusString) Inform caller of current status
-
Method Details
-
isPleaseStop
boolean isPleaseStop()Should be called intermittedly to check if algorithm should stop (should return null if has output) -
updateProgress
void updateProgress(double progress) - Parameters:
progress
- between 0..1
-
clearProgress
void clearProgress() -
updateStatus
Inform caller of current status
-