dwvisser.nuclear
Class Gas

java.lang.Object
  |
  +--dwvisser.nuclear.Absorber
        |
        +--dwvisser.nuclear.Gas
All Implemented Interfaces:
java.io.Serializable

public class Gas
extends Absorber

Implementation of Absorber for gasses.

Author:
Dale W Visser
See Also:
Serialized Form

Field Summary
 
Fields inherited from class dwvisser.nuclear.Absorber
CM, density, fractions, MICROGRAM_CM2, MIL, MILLIGRAM_CM2, thickness, Z
 
Constructor Summary
Gas(double length, double pressure, java.lang.String[] components, int[] atomsInMolecule)
          Given thickness in millimeters, pressure in torr, element components, and the numbers of atoms for each element in the gas molecule, creates an instance of absorber.
Gas(double length, double pressure, java.lang.String component, int atomsInMolecule)
           
 
Method Summary
protected  java.lang.Object clone()
           
 double getDensity()
          Returns mass density of absorber in g/cm^3.
 Absorber getNewInstance(double factor)
          Returns new absorber identical to this one, with thickness multiplied by factor.
 double getThickness()
          Returns thickness in micrograms/cm^2.
static Gas Isobutane(double length, double pressure)
          Static factory method for isobutane gas absorber.
 
Methods inherited from class dwvisser.nuclear.Absorber
getElements, getFractions, setFractions, setThickness, setThickness
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gas

public Gas(double length,
           double pressure,
           java.lang.String[] components,
           int[] atomsInMolecule)
    throws NuclearException
Given thickness in millimeters, pressure in torr, element components, and the numbers of atoms for each element in the gas molecule, creates an instance of absorber.

Parameters:
length - in cm
pressure - in tor
components - elements symbols of molecular components

Gas

public Gas(double length,
           double pressure,
           java.lang.String component,
           int atomsInMolecule)
    throws NuclearException
Method Detail

getDensity

public double getDensity()
Description copied from class: Absorber
Returns mass density of absorber in g/cm^3.

Specified by:
getDensity in class Absorber

Isobutane

public static Gas Isobutane(double length,
                            double pressure)
                     throws NuclearException
Static factory method for isobutane gas absorber.

Parameters:
length - in cm
pressure - in torr
Returns:
isobutane gas absorber object
Throws:
NuclearException - if something goes wrong running Gas constructor

getThickness

public double getThickness()
Returns thickness in micrograms/cm^2.

Specified by:
getThickness in class Absorber

getNewInstance

public Absorber getNewInstance(double factor)
Description copied from class: Absorber
Returns new absorber identical to this one, with thickness multiplied by factor.

Specified by:
getNewInstance in class Absorber

clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object