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, setMonoisotopicMass
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAverageMass, getElementalComposition, getMonoisotopicMass
public 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 MatterImpl
public OrganicMatterImpl add(Matter inValue, int inCount)
add
in class MatterImpl
public OrganicMatterImpl remove(Matter inValue)
remove
in class MatterImpl
public OrganicMatterImpl remove(Matter inValue, int inCount)
remove
in class MatterImpl
public 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 OrganicMatter
public OrganicMatterImpl clone()
clone
in class MatterImpl
public void clearCalculatedProperties()
clearCalculatedProperties
in class MatterImpl
protected void calculateMassFromElementalComposition()
calculateMassFromElementalComposition
in class MatterImpl
protected boolean massesAreUserSet()
massesAreUserSet
in class MatterImpl