java.lang.Object
org.openscience.compchem.MFAnalyser
- public class MFAnalyser
- extends java.lang.Object
MFAnalyser.java
Analyses a molecular formula given in String format and builds set
of org.openscience.compchem.Node's reflecting the elements as given
by the molecular formula.
|
Constructor Summary |
MFAnalyser(java.lang.String MF)
Construct an instance of MFAnalyser, initialized with a molecular
formula string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MF
public java.lang.String MF
setOfNodes
public Node[] setOfNodes
MFAnalyser
public MFAnalyser(java.lang.String MF)
- Construct an instance of MFAnalyser, initialized with a molecular
formula string. The string is immediatly analysed and a set of Nodes
is built based on this analysis
getSetOfNodes
public Node[] getSetOfNodes()
- returns the complete set of Nodes, as implied by the molecular
formula, inlcuding all the hydrogens.
getSetOfHeavyNodes
public Node[] getSetOfHeavyNodes()
- Returns a set of nodes excluding all the hydrogens
analyseMF
private Node[] analyseMF(java.lang.String MF)
- Method that actually does the work of analysing the molecular
formula