|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaltcms.datastructures.caches.SparseScanLineCache
public class SparseScanLineCache
This class is a dataholder for mass spectra. This class will cache all mass
spectra which were read an hold a SoftReference
to it.
TODO: Change to AScanLineCache
Method Summary | |
---|---|
void |
clear()
|
void |
configure(org.apache.commons.configuration.Configuration cfg)
|
int |
getBinsSize()
Getter. |
boolean |
getCacheModulation()
Getter. |
int |
getLastIndex()
Getter. |
Array |
getMassSpectra(int x,
int y)
Getter for one mass spectra. |
Array |
getMassSpectra(Point p)
This Method is a wrapper for getMassPectra(int, int). |
int |
getScanLineCount()
Getter. |
List<Array> |
getScanlineMS(int x)
Getter. |
List<cross.datastructures.tuple.Tuple2D<Array,Array>> |
getScanlineSparseMS(int x)
|
int |
getScansPerModulation()
Getter. |
cross.datastructures.tuple.Tuple2D<Array,Array> |
getSparseMassSpectra(int x,
int y)
|
cross.datastructures.tuple.Tuple2D<Array,Array> |
getSparseMassSpectra(Point p)
|
Point |
mapIndex(int scanIndex)
Map a global scan index to a Point of x,y coordinates. |
int |
mapPoint(int x,
int y)
Map two coordinates x,y to a global scan index. |
int |
mapPoint(Point p)
Map a Point to a global scan index. |
void |
setBinSize(int size)
Setter. |
void |
setCacheModulations(boolean cacheMod)
Setter. |
void |
setLastIndex(int index)
Setter. |
void |
showStat()
Will view some statistical information about the cache usage. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void configure(org.apache.commons.configuration.Configuration cfg)
configure
in interface cross.IConfigurable
public int getBinsSize()
getBinsSize
in interface IScanLine
public boolean getCacheModulation()
getCacheModulation
in interface IScanLine
public int getLastIndex()
getLastIndex
in interface IScanLine
public Array getMassSpectra(int x, int y)
getMassSpectra
in interface IScanLine
x
- scanline numbery
- mass spectra inside this scanline
public Array getMassSpectra(Point p)
getMassSpectra
in interface IScanLine
p
- point of requested mass spectra
public int getScanLineCount()
getScanLineCount
in interface IScanLine
public List<Array> getScanlineMS(int x)
getScanlineMS
in interface IScanLine
x
- scan line number
public int getScansPerModulation()
getScansPerModulation
in interface IScanLine
public void setBinSize(int size)
setBinSize
in interface IScanLine
size
- bin sizepublic void setCacheModulations(boolean cacheMod)
true
.
setCacheModulations
in interface IScanLine
cacheMod
- true
if all modulations should be cachedpublic void setLastIndex(int index)
setLastIndex
in interface IScanLine
index
- last indexpublic void showStat()
showStat
in interface IScanLine
public List<cross.datastructures.tuple.Tuple2D<Array,Array>> getScanlineSparseMS(int x)
getScanlineSparseMS
in interface IScanLine
public cross.datastructures.tuple.Tuple2D<Array,Array> getSparseMassSpectra(int x, int y)
getSparseMassSpectra
in interface IScanLine
public cross.datastructures.tuple.Tuple2D<Array,Array> getSparseMassSpectra(Point p)
getSparseMassSpectra
in interface IScanLine
public Point mapIndex(int scanIndex)
IScanLine
mapIndex
in interface IScanLine
public int mapPoint(int x, int y)
IScanLine
mapPoint
in interface IScanLine
public int mapPoint(Point p)
IScanLine
mapPoint
in interface IScanLine
public void clear()
clear
in interface IScanLine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |