06.2026
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package sparseviewer.model;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ScanDataset {
|
||||
|
||||
private final String[] channelNames;
|
||||
private final double[][] columns;
|
||||
private final int rowCount;
|
||||
|
||||
private final List<File> sourceFiles = new ArrayList<File>();
|
||||
private final int[] fileIndex;
|
||||
|
||||
public ScanDataset(String[] channelNames,
|
||||
double[][] columns,
|
||||
int rowCount,
|
||||
int[] fileIndex,
|
||||
List<File> sourceFiles) {
|
||||
this.channelNames = channelNames;
|
||||
this.columns = columns;
|
||||
this.rowCount = rowCount;
|
||||
this.fileIndex = fileIndex;
|
||||
|
||||
if (sourceFiles != null) {
|
||||
this.sourceFiles.addAll(sourceFiles);
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getChannelNames() {
|
||||
return channelNames;
|
||||
}
|
||||
|
||||
public int getChannelCount() {
|
||||
return channelNames.length;
|
||||
}
|
||||
|
||||
public int getRowCount() {
|
||||
return rowCount;
|
||||
}
|
||||
|
||||
public double[] getColumn(int index) {
|
||||
return columns[index];
|
||||
}
|
||||
|
||||
public String getChannelName(int index) {
|
||||
return channelNames[index];
|
||||
}
|
||||
|
||||
public int[] getFileIndex() {
|
||||
return fileIndex;
|
||||
}
|
||||
|
||||
public List<File> getSourceFiles() {
|
||||
return sourceFiles;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user