|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeakml.Annotatable
peakml.io.MeasurementInfo
public class MeasurementInfo
Central point for collecting all information about a measurement. For this a collection
of FileInfo instances is maintained, describing all the files associated to the
measurement. Furthermore, a list with ScanInfo instances is maintained, describing
all the scans.
IPeak
descendants maintain this id. A string representation would be too expensive in terms
of memory consumption.
| Constructor Summary | |
|---|---|
MeasurementInfo(int id,
MeasurementInfo other)
Copy-constructor which copies the contents of the given measurement information into this instance. |
|
MeasurementInfo(int id,
java.lang.String sampleid)
Constructs a new measurement information with the given id of the measurement and the given id of the sample. |
|
| Method Summary | |
|---|---|
void |
addFileInfo(FileInfo file)
Adds the file info instance to the list of file infos. |
void |
addFileInfos(java.util.Collection<FileInfo> files)
Adds the collection of file infos to the list of file infos. |
void |
addScanInfo(ScanInfo scan)
Adds the scan info instance to the list of scan infos. |
void |
addScanInfos(java.util.Collection<ScanInfo> scans)
Adds the collection of scan infos to the list of scan infos. |
FileInfo |
getFileInfo(int index)
Returns the file info instance at the given index. |
java.util.Vector<FileInfo> |
getFileInfos()
Returns all the file info instances maintained in this class. |
int |
getID()
Returns the id of the measurement. |
java.lang.String |
getLabel()
Returns the optional label for the measurement. |
double |
getMaxRetentionTime()
|
double |
getMinRetentionTime()
|
int |
getNrFileInfos()
Returns the number of file info instances maintained within this class. |
int |
getNrScanInfos()
Returns the number of scan info instances maintained within this class. |
java.lang.String |
getSampleID()
Returns the id of the sample associated to the measurement. |
ScanInfo |
getScanInfo(int index)
Returns the scan info instance at the given index. |
java.util.Vector<ScanInfo> |
getScanInfos()
Returns all the scan info instances maintained in this class. |
boolean |
getVisible()
For more information see setVisible(boolean). |
void |
setLabel(java.lang.String label)
Sets the optional label for the measurement. |
void |
setVisible(boolean b)
Convenience function for user interface applications to keep track off whether to show this measurement or not. |
| Methods inherited from class peakml.Annotatable |
|---|
addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotation, addAnnotations, getAnnotation, getAnnotations, removeAllAnnotations, removeAnnotation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MeasurementInfo(int id,
java.lang.String sampleid)
id - The id of the measurement.sampleid - The id of the associated sample.
public MeasurementInfo(int id,
MeasurementInfo other)
id - The id of the measurement.other - The measurement information to be copied.| Method Detail |
|---|
public int getID()
IPeak.getMeasurementID() returns the
id) and can be used to locate the measurement info instance in the Header.
public java.lang.String getSampleID()
Header.getSampleInfo(String) returns
the SampleInfo}.
public void setLabel(java.lang.String label)
label - The new label.public java.lang.String getLabel()
public void setVisible(boolean b)
b - Boolean indicating show or not.public boolean getVisible()
setVisible(boolean).
public void addFileInfo(FileInfo file)
file - The new file info instance.public void addFileInfos(java.util.Collection<FileInfo> files)
files - The collection of file infos.
public FileInfo getFileInfo(int index)
throws java.lang.IndexOutOfBoundsException
index - The index of the file info to be retrieved.
java.lang.IndexOutOfBoundsException - Thrown when the given index is not within the bounds of the list.public java.util.Vector<FileInfo> getFileInfos()
public int getNrFileInfos()
public void addScanInfo(ScanInfo scan)
scan - The new scan info instance.public void addScanInfos(java.util.Collection<ScanInfo> scans)
scans - The collection of scan infos.
public ScanInfo getScanInfo(int index)
throws java.lang.IndexOutOfBoundsException
index - The index of the scan info to be retrieved.
java.lang.IndexOutOfBoundsException - Thrown when the given index is not within the bounds of the list.public java.util.Vector<ScanInfo> getScanInfos()
public int getNrScanInfos()
public double getMinRetentionTime()
public double getMaxRetentionTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||