Package pal.util
Interface AlgorithmCallback
public interface AlgorithmCallback
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA Utility class that provides some simple implementations of AlgorithmCallback that can be used for manipulating callback results -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanShould be called intermittedly to check if algorithm should stop (should return null if has output)voidupdateProgress(double progress) voidupdateStatus(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
-