public class OrganicMatterImpl extends MatterImpl implements OrganicMatter, java.lang.Cloneable
| Constructor and Description |
|---|
OrganicMatterImpl() |
OrganicMatterImpl(java.util.Map<Element,java.lang.Float> inMap) |
OrganicMatterImpl(OrganicMatter inInitialValue) |
| Modifier and Type | Method and Description |
|---|---|
OrganicMatterImpl |
add(Matter inValue,
int inCount) |
protected void |
calculateMassFromElementalComposition() |
void |
clearCalculatedProperties() |
OrganicMatterImpl |
clone() |
boolean |
equals(java.lang.Object inObj) |
java.lang.Double |
getOrganicAverageMass() |
protected boolean |
massesAreUserSet() |
OrganicMatterImpl |
remove(Matter inValue) |
OrganicMatterImpl |
remove(Matter inValue,
int inCount) |
OrganicMatterImpl |
setOrganicAverageMass(java.lang.Double inValue)
If the elemental composition is known, use setElementalComposition() and
the masses will be derived automatically; this method is for use in those
(hopefully) rare times when the mass is known but not the elemental composition.
|
add, addAtoms, addAtoms, addElementalComposition, addElementalComposition, clearElementalComposition, compareTo, fromChemicalFormula, getAverageMass, getChemicalFormula, getChemicalFormulaWithSubscripts, getElementalComposition, getMonoisotopicMass, hashCode, setAverageMass, setElementalComposition, setMonoisotopicMassfinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAverageMass, getElementalComposition, getMonoisotopicMasspublic OrganicMatterImpl()
public OrganicMatterImpl(java.util.Map<Element,java.lang.Float> inMap)
public OrganicMatterImpl(OrganicMatter inInitialValue)
public boolean equals(java.lang.Object inObj)
equals in class MatterImplpublic OrganicMatterImpl add(Matter inValue, int inCount)
add in class MatterImplpublic OrganicMatterImpl remove(Matter inValue)
remove in class MatterImplpublic OrganicMatterImpl remove(Matter inValue, int inCount)
remove in class MatterImplpublic OrganicMatterImpl setOrganicAverageMass(java.lang.Double inValue)
inValue - the mass to use as the organic average mass for this objectpublic java.lang.Double getOrganicAverageMass()
getOrganicAverageMass in interface OrganicMatterpublic OrganicMatterImpl clone()
clone in class MatterImplpublic void clearCalculatedProperties()
clearCalculatedProperties in class MatterImplprotected void calculateMassFromElementalComposition()
calculateMassFromElementalComposition in class MatterImplprotected boolean massesAreUserSet()
massesAreUserSet in class MatterImpl
jataylor@hairyfatguy.com