protected Void doInBackground() {
try {
if ((this.parentControl.getSelectionModel().getSelectedSegments() != null)) {
SignalProcessor processor = new SignalProcessor();
//Returns a signal composed by the selected segments
Segment segment = processor.process(this.parentControl.getSelectionModel().getSelectedSegments());
if ((segment != null) && (!segment.isEmpty())) {
if (!this.parentControl.isWaitingForClose()) {
this.doCharts(segment);
}
segment = segment.normalize();
finalSignal = processor.calcDerivatives(segment, new SimpleDerivative());
if (!this.parentControl.isWaitingForClose()) {
this.doDerivatives(segment);
}
//Calculo de parámetros