metab
Class Stomach

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

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

The Stomach class simulates the Stomach compartment in the Compartmental model. The stomach's job is two-fold in that it both metabolizes and delays the transport of ethanol through the body. Gastric Alcohol Dehydrogenase (GADH) is responsible for the metabolism of some of the ethanol present in the stomach. At the same time, ethanol is exiting the stomach through the pyloric sphincter at a rate determined by the current ethanol concentration in the stomach. The ethanol being metabolized should be removed from the system by the user, just as in the LeanBodyMass class. Ethanol exiting through the pyloric sphincter should be transfered to an Intestine class by the user. Transfer and removal of ethanol and liquid should be handled by the user using the addLiquid and addContents methods of the class. To implement, the amount of ethanol (g) and the total liquid voluem (L) must be present. An optional description (label) can also be used to better differentiate the compartment.

Version:
1.40
Author:
Levi Blackstone, Matthew Woller
See Also:
Intestine, LeanBodyMass, NMSubject, Serialized Form

Field Summary
private  double amount
          Amount of ethanol (grams).
private static double Km
          Michaelis-Menton constant for GADH (mM).
private static double ks
          Ethanol transport rate constant from stomach to intestine (L/min).
private  java.lang.String label
          Optional label for compartment.
private  double liquid
          Amount of total liquid in the stomach (L).
private static double Vmax
          Maximum reaction rate for Gastric Alcohol Dehydrogenase (GADH) in mmol ethanol/min/L mucosa.
 
Constructor Summary
(package private) Stomach(double amount, double liquid)
          Constructor for stomach compartment.
(package private) Stomach(double amount, double liquid, java.lang.String label)
          Constructor for stomach compartment.
 
Method Summary
 void addContents(double newContents)
          Adds ethanol to the intestine compartment (can be a negative value).
 void addLiquid(double newLiquid)
          Adds liquid from the beverage(s) and gastric fluid.
 void clear()
          Resets compartment.
 double computeEthanolRelease()
          Computes amount of ethanol being released into intestine.
 double computeMMMetab()
          Computes amount of ethanol metabolized in stomach by GADH.
 double getContents()
          Retrieves amount of ethanol remaining in intestine.
 java.lang.String getLabel()
          Retrieves the optional label.
 double getLiquid()
          Retrieves amount of liquid remaining in intestine.
 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).


liquid

private double liquid
Amount of total liquid in the stomach (L).


Vmax

private static final double Vmax
Maximum reaction rate for Gastric Alcohol Dehydrogenase (GADH) in mmol ethanol/min/L mucosa.

See Also:
Constant Field Values

Km

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

See Also:
Constant Field Values

ks

private static final double ks
Ethanol transport rate constant from stomach to intestine (L/min).

See Also:
Constant Field Values

label

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

Constructor Detail

Stomach

Stomach(double amount,
        double liquid)
Constructor for stomach compartment.

Parameters:
amount - Amount of ethanol (g).
liquid - Amount of liquid including beverages and gastric fluid (L).
See Also:
Stomach(double , double , String)

Stomach

Stomach(double amount,
        double liquid,
        java.lang.String label)
Constructor for stomach compartment.

Parameters:
amount - Amount of ethanol (g).
liquid - Amount of liquid including beverages and gastric fluid (L).
label - Optional description for compartment.
See Also:
Stomach(double , double)
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).

addLiquid

public void addLiquid(double newLiquid)
Adds liquid from the beverage(s) and gastric fluid.

Parameters:
newLiquid - Amount of liquid being transfered (L).

clear

public void clear()
Resets compartment.


computeMMMetab

public double computeMMMetab()
Computes amount of ethanol metabolized in stomach by GADH.

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

computeEthanolRelease

public double computeEthanolRelease()
Computes amount of ethanol being released into intestine.

Returns:
double representing rate of release (g/min).

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.

getLiquid

public double getLiquid()
Retrieves amount of liquid remaining in intestine.

Returns:
double representing amount of liquid (L).

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.