|
||||||||||
| 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.BMFile
public class BMFile
File that stores a list of best matches.
| Field Summary | |
|---|---|
protected int |
cols
Number of columns from header. |
protected static org.apache.log4j.Logger |
log
Log4j logging. |
protected int |
rows
Number of rows from header. |
| 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 | |
|---|---|
BMFile()
Standard constructor |
|
BMFile(java.lang.String filename)
Constructor with a filename |
|
| Method Summary | |
|---|---|
protected void |
buildHeader()
Generate header. |
protected void |
checkHeader()
Check consistency of header information. |
protected void |
fillBMMatrix()
|
int |
getBMIndexByCoordinates(int x,
int y)
|
Bestmatch |
getByIndex(int index)
Get a best match by its index. |
cern.colt.list.IntArrayList |
getColData()
|
int |
getCols()
Get the value of cols. |
static FileType |
getFileType()
Get the type of file. |
cern.colt.list.IntArrayList |
getIndices()
|
cern.colt.list.IntArrayList |
getRowData()
|
int |
getRows()
Get the number of rows in the map |
boolean |
keysMatch(cern.colt.list.IntArrayList keys)
|
protected void |
parseHeader()
Parse the header. |
protected void |
parseLine(int row,
java.lang.String line)
Parse a line. |
void |
setCols(int v)
Set the value of cols. |
void |
setRows(int v)
Set the number of rows in the map |
| Methods inherited from class databionics.io.MapFile |
|---|
add, getMap, remove, remove, setData, setMap |
| Methods inherited from class databionics.io.ListFile |
|---|
buildLine, getData, getSize |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
protected int rows
protected int cols
| Constructor Detail |
|---|
public BMFile()
public BMFile(java.lang.String filename)
filename - Name of the file| Method Detail |
|---|
protected void parseHeader()
parseHeader in class BaseFile
protected void parseLine(int row,
java.lang.String line)
parseLine in class BaseFilerow - Number of current line.line - Current line.protected void checkHeader()
checkHeader in class BaseFileprotected void buildHeader()
buildHeader in class BaseFilepublic Bestmatch getByIndex(int index)
index - Index field of itempublic int getRows()
public void setRows(int v)
v - Value to assign to rows.public int getCols()
public void setCols(int v)
v - Value to assign to cols.public cern.colt.list.IntArrayList getRowData()
public cern.colt.list.IntArrayList getColData()
public static FileType getFileType()
public cern.colt.list.IntArrayList getIndices()
public boolean keysMatch(cern.colt.list.IntArrayList keys)
public int getBMIndexByCoordinates(int x,
int y)
protected void fillBMMatrix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||