mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Echo offline detection
Fix up affected datablocks for offline echo detection
This commit is contained in:
parent
f55311ea36
commit
75d349e33c
@ -24,7 +24,7 @@ public class EchoDetectionTask extends OfflineTask<ClickDetection> {
|
||||
this.clickControl = clickControl;
|
||||
echoDetectionSystem = clickControl.getEchoDetectionSystem();
|
||||
setParentDataBlock(clickControl.getClickDataBlock());
|
||||
// addAffectedDataBlock(clickControl.getClickDataBlock());
|
||||
addAffectedDataBlock(clickControl.getClickDataBlock());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -302,6 +302,21 @@ public abstract class OfflineTask<T extends PamDataUnit> {
|
||||
return affectedDataBlocks.get(iBlock);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a formatted string list of affected data blocks
|
||||
* @return
|
||||
*/
|
||||
public String getAffectedBlocksList() {
|
||||
if (affectedDataBlocks == null || affectedDataBlocks.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
String blocks = affectedDataBlocks.get(0).getDataName();
|
||||
for (int i = 1; i < affectedDataBlocks.size(); i++) {
|
||||
blocks += "; " + affectedDataBlocks.get(i).getDataName();
|
||||
}
|
||||
return blocks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether or not the task SHOULD be run - i.e. if it is selected in
|
||||
* the dialog, etc...
|
||||
|
Loading…
Reference in New Issue
Block a user