|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.EPQLibrary.Composition
gov.nist.microanalysis.EPQLibrary.Material
public class Material
A simple class for managing a materials properties based on a Composition + density.
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Field Summary |
|---|
| Fields inherited from class gov.nist.microanalysis.EPQLibrary.Composition |
|---|
mHashCode, STOICIOMETRY, UNDETERMINED, WEIGHT_PCT |
| Constructor Summary | |
|---|---|
|
Material()
|
|
Material(Composition comp,
double density)
|
protected |
Material(Element[] elms,
double[] weightFracs,
double density,
java.lang.String name)
Material - Constructs a material with the specified weight fractions. |
| Method Summary | |
|---|---|
double |
atomsPerCubicMeter(Element elm)
atomsPerCubicMeter - Computes the numbers of atoms per cubic centimeter for the specified element based on the composition and density of this Material. |
void |
clear()
clear - Clear all consistuent elements. |
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object obj)
|
void |
defineByMaterialFraction(Composition[] compositions,
double[] matFracs)
defineByMaterialFraction - Extends defineByMaterialFraction to also compute the density based on the amount of each base material and the density of the base material. |
void |
defineByWeightFraction(java.util.Map map,
double den)
defineByWeightFraction - Define the composition of this material by weight fraction. |
java.lang.String |
descriptiveString(boolean normalize)
descriptiveId - A string describing this material terms of the constituent element's weight percent and the material density. |
boolean |
equals(java.lang.Object obj)
equals - Checks whether the value of this object exactly equals the value of the argument object. |
double |
getDensity()
getDensity - returns the density of the material in kg pre cubic meter. |
int |
hashCode()
|
protected void |
renormalize()
|
protected void |
replicate(Material mat)
|
void |
setDensity(double den)
setDensity - Sets the density of the material in kg pre cubic meter. |
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.Composition |
|---|
addElement, addElement, addElementByStoiciometry, containsElement, defineByMoleFraction, defineByWeightFraction, defineByWeightFraction, difference, elementSet, fromXML, getElementCount, getElementSet, getName, getNthElementByAtomicFraction, getNthElementByWeight, getOptimalRepresentation, massAbsorptionCoefficient, moleFraction, removeElement, replicate, setName, stoiciometryAvgAtomicNumber, sumWeightPercent, toString, toXML, weightAvgAtomicNumber, weightPercent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Material()
protected Material(Element[] elms,
double[] weightFracs,
double density,
java.lang.String name)
elms - Element[] - The elementsweightFracs - double[] - The associated weight fractionsdensity - double - In SIname - String - User friendly
public Material(Composition comp,
double density)
| Method Detail |
|---|
protected void renormalize()
renormalize in class Compositionpublic void setDensity(double den)
den - doublepublic double getDensity()
public void defineByWeightFraction(java.util.Map map,
double den)
map - Map - keys are either Integer, String or Element types, values
are Doubleden - double - in kg/m^3public void clear()
clear in class Compositionpublic int hashCode()
hashCode in class Compositionpublic double atomsPerCubicMeter(Element elm)
elm - Element
public void defineByMaterialFraction(Composition[] compositions,
double[] matFracs)
defineByMaterialFraction in class Compositioncompositions - Compositions[] - The base materials (ie SiO2, MgO,...)matFracs - double[] - The proportion of eachpublic boolean equals(java.lang.Object obj)
equals in class Compositionobj - Object
public java.lang.String descriptiveString(boolean normalize)
descriptiveString in class Compositionnormalize - Normalize weight percents to 100%?
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.ComparablecompareTo in class Compositionprotected void replicate(Material mat)
public java.lang.Object clone()
clone in class Composition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||