Implement cancel feature for Spectral Deconvolution
@@ -41,7 +41,6 @@ import javax.annotation.Nonnull;
*/
public class ADAP3DecompositionV2Task extends AbstractTask {
- static final int DEFAULT_MIN_CLUSTER_SIZE = 5;
// Logger.
private static final Logger LOG = Logger.getLogger(ADAP3DecompositionV2Task.class.getName());
@@ -283,4 +282,10 @@ public class ADAP3DecompositionV2Task extends AbstractTask {
Range.closed(peak.getMZ() - 0.01, peak.getMZ() + 0.01),
Range.closed(0.0, peak.getIntensity()));
}
+
+ @Override
+ public void cancel() {
+ decomposition.cancel();
+ super.cancel();
+ }
}
