mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-21 22:52:22 +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
|
||||
|
@ -301,6 +301,21 @@ public abstract class OfflineTask<T extends PamDataUnit> {
|
||||
public PamDataBlock getAffectedDataBlock(int iBlock) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user