public abstract class MzmlSpectrumCheck extends Object implements ConsistencyCheck
| Constructor and Description |
|---|
MzmlSpectrumCheck() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
assertConsistent(double expected,
double observed,
float delta) |
boolean |
checkConsistency(MsnSpectrum msnSpectrum,
uk.ac.ebi.jmzml.model.mzml.Spectrum mzXmlSpectrum,
float delta)
Check consistency
|
protected com.google.common.base.Optional<Double> |
getExpectedValue(uk.ac.ebi.jmzml.model.mzml.Spectrum mzmlSpectrum,
String param) |
String |
onFailSendWarning(MsnSpectrum observedValueContainer,
uk.ac.ebi.jmzml.model.mzml.Spectrum expectedValueContainer)
Send warning when check fails
|
ConsistencyCheckException |
onFailThrowException(MsnSpectrum observedValueContainer,
uk.ac.ebi.jmzml.model.mzml.Spectrum expectedValueContainer)
Throw a ConsistencyCheckException when check fails
|
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpectedValue, getObservedValuepublic void setName(String name)
public boolean checkConsistency(MsnSpectrum msnSpectrum, uk.ac.ebi.jmzml.model.mzml.Spectrum mzXmlSpectrum, float delta)
ConsistencyCheckcheckConsistency in interface ConsistencyCheckmsnSpectrum - spectrum mscheck value frommzXmlSpectrum - container to mscheck value withdelta - the maximum delta between expected and actual for which both numbers are still considered equal.public boolean assertConsistent(double expected,
double observed,
float delta)
public String onFailSendWarning(MsnSpectrum observedValueContainer, uk.ac.ebi.jmzml.model.mzml.Spectrum expectedValueContainer)
ConsistencyCheckonFailSendWarning in interface ConsistencyCheckpublic ConsistencyCheckException onFailThrowException(MsnSpectrum observedValueContainer, uk.ac.ebi.jmzml.model.mzml.Spectrum expectedValueContainer)
ConsistencyCheckonFailThrowException in interface ConsistencyCheckCopyright © 2016. All Rights Reserved.