Package org.helm.notation2.calculation
Class MoleculePropertyCalculator
java.lang.Object
org.helm.notation2.calculation.MoleculePropertyCalculator
public final class MoleculePropertyCalculator extends Object
MoleculeInformation, class to
- Author:
- hecht
-
Method Summary
Modifier and Type Method Description static doublegetExactMass(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to get the ExactMass for the whole HELMstatic StringgetMolecularFormular(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to get the MolecularFormular for the whole HELMstatic doublegetMolecularWeight(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to get the molecular weight for the whole HELMstatic MoleculePropertygetMoleculeProperties(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to get all molecule properties for one HELM2Notation
-
Method Details
-
getMolecularWeight
public static double getMolecularWeight(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryExceptionmethod to get the molecular weight for the whole HELM- Parameters:
helm2notation- input HELM2Notation- Returns:
- MolecularWeight of the whole HELM
- Throws:
BuilderMoleculeException- if the whole molecule can not be builtorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitChemistryException- if the Chemistry Engine can not be initialized
-
getExactMass
public static double getExactMass(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryExceptionmethod to get the ExactMass for the whole HELM- Parameters:
helm2notation- input HELM2Notation- Returns:
- ExactMass of the whole HELM
- Throws:
BuilderMoleculeException- if the whole molecule can not be builtorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitChemistryException- if the Chemistry Engine can not be initialized
-
getMolecularFormular
public static String getMolecularFormular(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryExceptionmethod to get the MolecularFormular for the whole HELM- Parameters:
helm2notation- input HELM2Notation- Returns:
- MolecularFormular of the whole HELM
- Throws:
BuilderMoleculeException- if the whole molecule can not be builtorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitChemistryException- if the Chemistry Engine can not be initialized
-
getMoleculeProperties
public static MoleculeProperty getMoleculeProperties(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ExtinctionCoefficientException, ChemistryExceptionmethod to get all molecule properties for one HELM2Notation- Parameters:
helm2notation- given HELM2 object- Returns:
- List of molecule properties: molecular formula, molecular weight, exact mass, extinction coefficient
- Throws:
BuilderMoleculeException- if helm molecule can not be builtorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitExtinctionCoefficientException- if the extinction coefficient can not be calculatedChemistryException- if the Chemistry Engine can not be initialized
-