public class Composition
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Author: Alain Hebert, Ecole Polytechnique de Montreal (2002)
Modifier and Type | Class and Description |
---|---|
class |
Composition.CompoInner
This class defines a single mixture/material/medium component.
|
Modifier and Type | Field and Description |
---|---|
Composition |
alias
single Composition used to make the mixture/material/medium.
|
Composition.CompoInner[] |
isoCompo
definition of an array of components making the mixture/material/medium.
|
Isotope |
isotope
single Isotope used to make the mixture/material/medium.
|
float |
massDensity
massic density of the material/medium.
|
java.lang.String |
method
type of relative fractions.
|
boolean |
norm
set to true to normalize the relative fractions to 1.0.
|
float |
temperature
temperature in Celsius of the medium.
|
Constructor and Description |
---|
Composition(java.lang.String name)
use this constructor to define a composition of type "medium".
|
Composition(java.lang.String name,
java.lang.String type)
use this constructor to define a composition with a specific type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
implementation of the Cloneable interface.
|
java.lang.Object |
clone(java.lang.String name)
create a clone of a Composition object and rename it.
|
void |
setComposition(Composition[] compo,
float[] conc)
definition of Composition-type components.
|
void |
setComposition(float factor,
Isotope[] iso,
float[] conc)
definition of Isotope-type components.
|
void |
setComposition(Isotope[] iso,
float[] conc)
definition of Isotope-type components.
|
public float temperature
public float massDensity
public java.lang.String method
public boolean norm
public Composition alias
public Isotope isotope
public Composition.CompoInner[] isoCompo
public Composition(java.lang.String name, java.lang.String type)
name
- user-defined name of the compositiontype
- type of composition. This variable is chosen among the
following values:
public Composition(java.lang.String name)
name
- user-defined name of the compositionpublic void setComposition(Isotope[] iso, float[] conc)
iso
- set of Isotopes used as components.conc
- concentration of the components.public void setComposition(float factor, Isotope[] iso, float[] conc)
factor
- factor used to multiply the concentrations.iso
- set of Isotopes used as components.conc
- concentration of the components.public void setComposition(Composition[] compo, float[] conc)
compo
- set of Compositions used as components.conc
- concentration of the components.public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Object clone(java.lang.String name)
name
- user-defined name of the composition