Echo offline detection

Fix up affected datablocks for offline echo detection
This commit is contained in:
Douglas Gillespie 2023-12-14 18:52:17 +00:00
parent f55311ea36
commit 75d349e33c
2 changed files with 16 additions and 1 deletions

View File

@ -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

View File

@ -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