metab
Class LeanBodyMass

java.lang.Object
  extended bymetab.LeanBodyMass
All Implemented Interfaces:
java.io.Serializable

public class LeanBodyMass
extends java.lang.Object
implements java.io.Serializable

The LeanBodyMass class simulates the Lean Body Mass compartment in the Compartmental model. The Lean Body Mass handles the majority of the actual metabolism of ethanol in the human body, mainly through the liver. Once the ethanol has been metabolized, the user should remove it from the system using the addContents method. No addLiquid method is necessary for this class because the liquid is the aqueous portion of the subject's body. This Total Body Water is a required argument during class construction. The TBW must be calculated or measured outside of the class (externally). Also required during construction is the amount of ethanol (g), the subject's previous drinking history (an integer value consisting of one of the constants defined in NMSubject, and, optionally, a description (label) of the compartment.

Version:
1.61
Author:
Levi Blackstone, Matthew Woller
See Also:
Stomach, Intestine, NMSubject, Serialized Form

Field Summary
private  double amount
          Amount of ethanol (grams).
private  int drinkingHistory
          Standard representation of the subject's drinking history.
private static double Km
          Michaelis-Menton constant for LADH (mM).
private  java.lang.String label
          Optional label for compartment.
private  double TBW
          Total Body Water (TBW) present in individual.
private static double Vmax
          Liver Alcohol Dehydrogenase (LADH) maximum reaction rate (mmol ethanol/min /L Body Water).
 
Constructor Summary
(package private) LeanBodyMass(double amount, double TBW, int drinkingHistory)
          Constructor for lean body mass compartment.
(package private) LeanBodyMass(double amount, double TBW, int drinkingHistory, java.lang.String label)
          Constructor for lean body mass compartment.
 
Method Summary
 void addContents(double newContents)
          Adds ethanol to the intestine compartment (can be a negative value).
 void clear()
          Resets compartment.
 double computeMMMetab()
          Computes amount of ethanol metabolized in lean body mass by LADH.
 double getContents()
          Retrieves amount of ethanol remaining in intestine.
 java.lang.String getLabel()
          Retrieves the optional label.
 boolean isEmpty()
          Checks to see if any ethanol remains in intestine.
 void setLabel(java.lang.String newLabel)
          Sets optional label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

private double amount
Amount of ethanol (grams).


TBW

private double TBW
Total Body Water (TBW) present in individual.


Vmax

private static final double Vmax
Liver Alcohol Dehydrogenase (LADH) maximum reaction rate (mmol ethanol/min /L Body Water).

See Also:
Constant Field Values

Km

private static final double Km
Michaelis-Menton constant for LADH (mM).

See Also:
Constant Field Values

drinkingHistory

private int drinkingHistory
Standard representation of the subject's drinking history.


label

private java.lang.String label
Optional label for compartment.

Constructor Detail

LeanBodyMass

LeanBodyMass(double amount,
             double TBW,
             int drinkingHistory)
Constructor for lean body mass compartment.

Parameters:
amount - Amount of ethanol (g).
TBW - Total water in body mass (L).
drinkingHistory - Previous drinking habits of the subject.
See Also:
LeanBodyMass(double , double , int, String)

LeanBodyMass

LeanBodyMass(double amount,
             double TBW,
             int drinkingHistory,
             java.lang.String label)
Constructor for lean body mass compartment.

Parameters:
amount - Amount of ethanol (g).
TBW - Total water in body mass (L).
drinkingHistory - Previous drinking habits of the subject.
label - Optional description for compartment.
See Also:
LeanBodyMass(double, double, int)
Method Detail

addContents

public void addContents(double newContents)
Adds ethanol to the intestine compartment (can be a negative value).

Parameters:
newContents - Amount of ethanol being transfered (g).

clear

public void clear()
Resets compartment.


computeMMMetab

public double computeMMMetab()
Computes amount of ethanol metabolized in lean body mass by LADH.

Returns:
double representing amount of metabolized ethanol (mM).

getContents

public double getContents()
Retrieves amount of ethanol remaining in intestine.

Returns:
double representing amount of ethanol (g).

getLabel

public java.lang.String getLabel()
Retrieves the optional label.

Returns:
String representing label.

isEmpty

public boolean isEmpty()
Checks to see if any ethanol remains in intestine.

Returns:
boolean specifying if intestine is empty.

setLabel

public void setLabel(java.lang.String newLabel)
Sets optional label.

Parameters:
newLabel - String representing new label.