org.scubatoolkit
Class Gas

java.lang.Object
  |
  +--org.scubatoolkit.Gas

public class Gas
extends java.lang.Object

Description of the Class

Version:
Author:

Field Summary
private  double fhe
          Description of the Field
private  double fn
          Description of the Field
private  double fo
          Description of the Field
 
Constructor Summary
(package private) Gas()
          Constructor for the Gas object
(package private) Gas(double o)
          Constructor for the Gas object
(package private) Gas(double o, double he)
          Constructor for the Gas object
(package private) Gas(double o, double he, double n)
          Constructor for the Gas object
 
Method Summary
static double calculateATA(double mod, double fo, UnitsSystem units)
           
static double calculatePercentOxygen(double mod, double ata, UnitsSystem units)
          Calculates the percentage of oxygen for a gas given the mod and the max ATA
 double getEND(double d, boolean m)
          Description of the Method
 double getFHE()
          Gets the fHE attribute of the Gas object
 double getFN()
          Gets the fN attribute of the Gas object
 double getFO()
          Gets the fO attribute of the Gas object
 double getMOD(double ATA, UnitsSystem units)
          Description of the Method
 double getPPO(double ATA)
          Description of the Method
 void setFHE(double f)
          Sets the fHE attribute of the Gas object
 void setFN(double f)
          Sets the fN attribute of the Gas object
 void setFO(double f)
          Sets the fO attribute of the Gas object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fn

private double fn
Description of the Field


fo

private double fo
Description of the Field


fhe

private double fhe
Description of the Field

Constructor Detail

Gas

Gas()
Constructor for the Gas object


Gas

Gas(double o)
Constructor for the Gas object

Parameters:
o - Description of the Parameter

Gas

Gas(double o,
    double he)
Constructor for the Gas object

Parameters:
o - Description of the Parameter
he - Description of the Parameter

Gas

Gas(double o,
    double he,
    double n)
Constructor for the Gas object

Parameters:
o - Description of the Parameter
he - Description of the Parameter
n - Description of the Parameter
Method Detail

getFN

public double getFN()
Gets the fN attribute of the Gas object

Returns:
The fN value

setFN

public void setFN(double f)
Sets the fN attribute of the Gas object

Parameters:
f - The new fN value

getFO

public double getFO()
Gets the fO attribute of the Gas object

Returns:
The fO value

setFO

public void setFO(double f)
Sets the fO attribute of the Gas object

Parameters:
f - The new fO value

getFHE

public double getFHE()
Gets the fHE attribute of the Gas object

Returns:
The fHE value

setFHE

public void setFHE(double f)
Sets the fHE attribute of the Gas object

Parameters:
f - The new fHE value

getPPO

public double getPPO(double ATA)
Description of the Method

Parameters:
ATA - Description of the Parameter
Returns:
Description of the Return Value

getMOD

public double getMOD(double ATA,
                     UnitsSystem units)
Description of the Method

Parameters:
ATA - Description of the Parameter
Returns:
Description of the Return Value

getEND

public double getEND(double d,
                     boolean m)
Description of the Method

Parameters:
d - Description of the Parameter
m - Description of the Parameter
Returns:
Description of the Return Value

calculatePercentOxygen

public static double calculatePercentOxygen(double mod,
                                            double ata,
                                            UnitsSystem units)
Calculates the percentage of oxygen for a gas given the mod and the max ATA

Parameters:
mod -
ata -
units -
Returns:

calculateATA

public static double calculateATA(double mod,
                                  double fo,
                                  UnitsSystem units)


Copyright © 2002 The Scuba Toolkit Team. All Rights Reserved.