public class PeakInvestigatorScanExtractingMethod extends Object implements MSDKMethod<List<MsSpectrum>>
PeakInvestigatorMsSpectrum
, which decorates a
SimpleMsSpectrum.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel a running algorithm.
|
List<MsSpectrum> |
execute()
Performs the algorithm.
|
Float |
getFinishedPercentage()
Returns a number in the interval 0 to 1.0, representing the portion of the task that has
completed, or null if the algorithm has not yet started.
|
List<MsSpectrum> |
getResult()
Returns the result of this algorithm, or null.
|
protected MsSpectrum |
parseMsSpectrum(BufferedReader reader)
This function assumes that the data is either formatted as two columns or five columns,
separated by whitespace.
|
public Float getFinishedPercentage()
getFinishedPercentage
in interface MSDKMethod<List<MsSpectrum>>
public List<MsSpectrum> execute() throws MSDKException
execute
in interface MSDKMethod<List<MsSpectrum>>
MSDKException
- On any errorpublic List<MsSpectrum> getResult()
getResult
in interface MSDKMethod<List<MsSpectrum>>
public void cancel()
cancel
in interface MSDKMethod<List<MsSpectrum>>
protected MsSpectrum parseMsSpectrum(BufferedReader reader) throws IOException
MSDKObjectBuilder.getMsSpectrum()
. If five columns, the simple MsSpectrum is decorated
using the PeakInvestigatorMsSpectrum
.reader
- a BufferedReader
object.MsSpectrum
object.IOException
- if any.Copyright © 2019. All rights reserved.