|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.io.BaseFile
databionics.io.ListFile
databionics.io.MapFile
databionics.io.ClsFile
databionics.io.DiagnosisFile
public class DiagnosisFile
File that stores possibly multiple classification of data points or best matches.
Field Summary | |
---|---|
protected java.util.List |
allClasses
Column with class numbers |
protected static org.apache.log4j.Logger |
log
Log4j logging. |
Fields inherited from class databionics.io.ClsFile |
---|
boldClasses, classColors, classes, key2pos, keys |
Fields inherited from class databionics.io.MapFile |
---|
map |
Fields inherited from class databionics.io.ListFile |
---|
data |
Fields inherited from class databionics.io.BaseFile |
---|
allowEmptyLines, comment, commentPrefix, delimiter, delimiters, file, header, headerPrefix, loc, nf |
Constructor Summary | |
---|---|
DiagnosisFile()
Standard constructor |
|
DiagnosisFile(java.lang.String filename)
Constructor with a filename |
Method Summary | |
---|---|
void |
add(int index,
int cls)
Add an index - class number pair |
void |
add(int index,
java.lang.String cls)
Add an index - class number pair |
protected java.lang.String |
buildLine(int row)
Construct a line for saving. |
protected void |
checkHeader()
Check consistency of header information. |
cern.colt.list.IntArrayList |
getAll(int pos)
Get all class numbers of a classification by its position in the list |
cern.colt.list.IntArrayList |
getAllByIndex(int index)
Get all class numbers of a classification by its index |
java.util.List |
getAllClasses()
Get list of IntArrayLists with all class numbers. |
static FileType |
getFileType()
Get the type of file. |
protected void |
parseLine(int row,
java.lang.String line)
Parse a line. |
void |
setAllClasses(java.util.List allClasses)
Set list of IntArrayLists with all class numbers. |
Methods inherited from class databionics.io.ClsFile |
---|
add2bold, addClass, addClass, buildHeader, changeIndex, clear, clone, getBoldClasses, getByIndex, getClass, getClassByIndex, getClasses, getHighestClassIndex, getKeys, getQuick, getSize, hasClass, parseHeader, remove, remove, removeFromBold, removeOne, set, setBoldClasses, setBoldClasses, setClasses, setClasses, setKeys, setKeys, setKeys, size, size, sort |
Methods inherited from class databionics.io.MapFile |
---|
add, getMap, remove, setData, setMap |
Methods inherited from class databionics.io.ListFile |
---|
getData |
Methods inherited from class databionics.io.BaseFile |
---|
checkHeaderAgainstSize, getComment, getFile, getFilename, getHeader, getLocale, getNumberFormat, init, isHeader, isNaN, isNumber, load, load, parseError, save, save, setComment, setFilename, setLocale, writeStringList, writeStringList |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected java.util.List allClasses
Constructor Detail |
---|
public DiagnosisFile()
public DiagnosisFile(java.lang.String filename)
filename
- Name of the fileMethod Detail |
---|
protected void parseLine(int row, java.lang.String line)
parseLine
in class ClsFile
row
- Number of current line.line
- Current line.protected void checkHeader()
checkHeader
in class ClsFile
protected java.lang.String buildLine(int row)
buildLine
in class ClsFile
row
- Number of current line.
public void add(int index, int cls)
add
in class ClsFile
index
- of data point or best matchcls
- class numberpublic void add(int index, java.lang.String cls) throws java.lang.NumberFormatException
index
- of data point or best matchcls
- class number
java.lang.NumberFormatException
public cern.colt.list.IntArrayList getAll(int pos)
position
- of classificationpublic cern.colt.list.IntArrayList getAllByIndex(int index)
index
- index of the data pointpublic java.util.List getAllClasses()
public void setAllClasses(java.util.List allClasses)
public static FileType getFileType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |