Package org.helm.notation2.calculation
Class ExtinctionCoefficient
java.lang.Object
org.helm.notation2.calculation.ExtinctionCoefficient
public final class ExtinctionCoefficient extends Object
ExtinctionCoefficient class to calculate the extinction coefficient
- Author:
- hecht
-
Field Summary
Fields Modifier and Type Field Description static intPEPTIDE_UNIT_TYPEstatic intRNA_UNIT_TYPE -
Method Summary
Modifier and Type Method Description floatcalculate(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to calculate the extinction coefficient for the whole HELM moleculefloatcalculate(org.helm.notation2.parser.notation.HELM2Notation helm2notation, int unitType)method to calculate the extinction coefficient for the whole HELM moleculeStringgetDefaultUnit()intgetDefaultUnitType()static ExtinctionCoefficientgetInstance()StringgetPeptideUnit()StringgetRnaUnit()StringgetUnit(int unitType)
-
Field Details
-
RNA_UNIT_TYPE
public static final int RNA_UNIT_TYPE- See Also:
- Constant Field Values
-
PEPTIDE_UNIT_TYPE
public static final int PEPTIDE_UNIT_TYPE- See Also:
- Constant Field Values
-
-
Method Details
-
getInstance
- Throws:
ExtinctionCoefficientException
-
getUnit
-
getRnaUnit
-
getPeptideUnit
-
getDefaultUnit
-
getDefaultUnitType
public int getDefaultUnitType() -
calculate
public float calculate(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws ExtinctionCoefficientException, ChemistryExceptionmethod to calculate the extinction coefficient for the whole HELM molecule- Parameters:
helm2notation- input HELM2Notation- Returns:
- extinction coefficient
- Throws:
ExtinctionCoefficientException- if the HELM contains HELM2 featuresChemistryException- if the Chemistry Engine can not be initialized
-
calculate
public float calculate(org.helm.notation2.parser.notation.HELM2Notation helm2notation, int unitType) throws ExtinctionCoefficientException, ChemistryExceptionmethod to calculate the extinction coefficient for the whole HELM molecule- Parameters:
helm2notation- input HELM2NotationunitType- Unit of the extinction coefficient- Returns:
- extinction coefficient
- Throws:
ExtinctionCoefficientException- if the HELM contains HELM2 featuresChemistryException- if the Chemistry Engine can not be initialized
-