|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmetab.LeanBodyMass
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.
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 |
private double amount
private double TBW
private static final double Vmax
private static final double Km
private int drinkingHistory
private java.lang.String label
| Constructor Detail |
LeanBodyMass(double amount,
double TBW,
int drinkingHistory)
amount - Amount of ethanol (g).TBW - Total water in body mass (L).drinkingHistory - Previous drinking habits of the subject.LeanBodyMass(double , double , int, String)
LeanBodyMass(double amount,
double TBW,
int drinkingHistory,
java.lang.String label)
amount - Amount of ethanol (g).TBW - Total water in body mass (L).drinkingHistory - Previous drinking habits of the subject.label - Optional description for compartment.LeanBodyMass(double, double, int)| Method Detail |
public void addContents(double newContents)
newContents - Amount of ethanol being transfered (g).public void clear()
public double computeMMMetab()
double representing amount of metabolized ethanol (mM).public double getContents()
double representing amount of ethanol (g).public java.lang.String getLabel()
String representing label.public boolean isEmpty()
boolean specifying if intestine is empty.public void setLabel(java.lang.String newLabel)
newLabel - String representing new label.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||