@TestClass(value="org.openscience.cdk.formula.IsotopeContainerTest") public class IsotopeContainer extends Object
Constructor and Description |
---|
IsotopeContainer()
Constructor of the IsotopeContainer object.
|
IsotopeContainer(double mass,
double intensity)
Constructor of the IsotopeContainer object setting a mass
and intensity value.
|
IsotopeContainer(IMolecularFormula formula,
double intensity)
Constructor of the IsotopeContainer object setting a IMolecularFormula
object and intensity value.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this IsotopeContainer object and its content.
|
IMolecularFormula |
getFormula()
Get the IMolecularFormula object of this container.
|
double |
getIntensity()
Get the intensity value of this container.
|
double |
getMass()
Get the mass value of this container.
|
void |
setFormula(IMolecularFormula formula)
Set IMolecularFormula object of this container.
|
void |
setIntensity(double intensity)
Set the intensity value of this container.
|
void |
setMass(double mass)
Set the mass value of this container.
|
public IsotopeContainer()
@TestMethod(value="testIsotopeContainer_IMolecularFormula_double") public IsotopeContainer(IMolecularFormula formula, double intensity)
formula
- The formula of this containerintensity
- The intensity of this container@TestMethod(value="testIsotopeContainer_double_double") public IsotopeContainer(double mass, double intensity)
mass
- The mass of this containerintensity
- The intensity of this container@TestMethod(value="testSetFormula_IMolecularFormula") public void setFormula(IMolecularFormula formula)
formula
- The IMolecularFormula of the this container@TestMethod(value="testSetMass_double") public void setMass(double mass)
mass
- The mass of the this container@TestMethod(value="testSetIntensity_double") public void setIntensity(double intensity)
intensity
- The intensity of the this container@TestMethod(value="testGetFormula") public IMolecularFormula getFormula()
@TestMethod(value="testGetMass") public double getMass()
@TestMethod(value="testGetIntensity") public double getIntensity()
@TestMethod(value="testClone") public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException