Class TPHandler

java.lang.Object
  extended by TPHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class TPHandler
extends java.lang.Object
implements java.awt.event.ActionListener

Creates a popup dialog box to allow specification of T, P or H, P or S, P or T, V constraints on the system evolution path.

Version:
1.0 (August 2007)
Author:
Mark S. Ghiorso, OFM-Research Inc.

Field Summary
 javax.swing.JFormattedTextField dpdhFTF
          Text Field boxes to hold equivalent *Val entries.
 double dpdhVal
          Pressure-enthalpy gradient (bars/J).
 javax.swing.JFormattedTextField dpdsFTF
          Text Field boxes to hold equivalent *Val entries.
 double dpdsVal
          Pressure-entropy gradient (bars-K/J).
 javax.swing.JFormattedTextField dpdtFTF
          Text Field boxes to hold equivalent *Val entries.
 double dpdtVal
          Pressure-temperature gradient (bars/K).
 javax.swing.JFormattedTextField dtdvFTF
          Text Field boxes to hold equivalent *Val entries.
 double dtdvVal
          Temperature-volume gradient (K-bar/J).
 javax.swing.JFormattedTextField hIncFTF
          Text Field boxes to hold equivalent *Val entries.
 double hIncVal
          Enthalpy increment (J).
 javax.swing.JFormattedTextField hStartFTF
          Text Field boxes to hold equivalent *Val entries.
 double hStartVal
          Initial enthalpy (J).
 javax.swing.JFormattedTextField hStopFTF
          Text Field boxes to hold equivalent *Val entries.
 double hStopVal
          Final enthalpy (J).
 javax.swing.JFormattedTextField pIncFTF
          Text Field boxes to hold equivalent *Val entries.
 double pIncVal
          Pressure increment (bars).
 javax.swing.JFormattedTextField pStartFTF
          Text Field boxes to hold equivalent *Val entries.
 double pStartVal
          Initial pressure (bars).
 javax.swing.JFormattedTextField pStopFTF
          Text Field boxes to hold equivalent *Val entries.
 double pStopVal
          Final pressure (bars).
 javax.swing.JFormattedTextField sIncFTF
          Text Field boxes to hold equivalent *Val entries.
 double sIncVal
          Entropy increment (J/K).
 javax.swing.JFormattedTextField sStartFTF
          Text Field boxes to hold equivalent *Val entries.
 double sStartVal
          Initial entropy (J/K).
 javax.swing.JFormattedTextField sStopFTF
          Text Field boxes to hold equivalent *Val entries.
 double sStopVal
          Final entropy (J/K).
 javax.swing.JFormattedTextField tIncFTF
          Text Field boxes to hold equivalent *Val entries.
 double tIncVal
          Temperature increment (K).
 javax.swing.JFormattedTextField tStartFTF
          Text Field boxes to hold equivalent *Val entries.
 double tStartVal
          Initial temperature (K).
 javax.swing.JFormattedTextField tStopFTF
          Text Field boxes to hold equivalent *Val entries.
 double tStopVal
          Final temperature (K).
 javax.swing.JFormattedTextField vIncFTF
          Text Field boxes to hold equivalent *Val entries.
 double vIncVal
          Volume increment (J/bar).
 javax.swing.JFormattedTextField vStartFTF
          Text Field boxes to hold equivalent *Val entries.
 double vStartVal
          Initial volume (J/bar).
 javax.swing.JFormattedTextField vStopFTF
          Text Field boxes to hold equivalent *Val entries.
 double vStopVal
          Final volume (J/bar).
 
Constructor Summary
TPHandler(rock.dRock rockRef)
          Creates the GUI and initializes the class.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Displays the popup dialog box and populates text entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tStartVal

public double tStartVal
Initial temperature (K).


tStopVal

public double tStopVal
Final temperature (K).


tIncVal

public double tIncVal
Temperature increment (K).


pStartVal

public double pStartVal
Initial pressure (bars).


pStopVal

public double pStopVal
Final pressure (bars).


pIncVal

public double pIncVal
Pressure increment (bars).


dpdtVal

public double dpdtVal
Pressure-temperature gradient (bars/K).


hStartVal

public double hStartVal
Initial enthalpy (J).


hStopVal

public double hStopVal
Final enthalpy (J).


hIncVal

public double hIncVal
Enthalpy increment (J).


dpdhVal

public double dpdhVal
Pressure-enthalpy gradient (bars/J).


sStartVal

public double sStartVal
Initial entropy (J/K).


sStopVal

public double sStopVal
Final entropy (J/K).


sIncVal

public double sIncVal
Entropy increment (J/K).


dpdsVal

public double dpdsVal
Pressure-entropy gradient (bars-K/J).


vStartVal

public double vStartVal
Initial volume (J/bar).


vStopVal

public double vStopVal
Final volume (J/bar).


vIncVal

public double vIncVal
Volume increment (J/bar).


dtdvVal

public double dtdvVal
Temperature-volume gradient (K-bar/J).


tStartFTF

public javax.swing.JFormattedTextField tStartFTF
Text Field boxes to hold equivalent *Val entries.


tStopFTF

public javax.swing.JFormattedTextField tStopFTF
Text Field boxes to hold equivalent *Val entries.


tIncFTF

public javax.swing.JFormattedTextField tIncFTF
Text Field boxes to hold equivalent *Val entries.


pStartFTF

public javax.swing.JFormattedTextField pStartFTF
Text Field boxes to hold equivalent *Val entries.


pStopFTF

public javax.swing.JFormattedTextField pStopFTF
Text Field boxes to hold equivalent *Val entries.


pIncFTF

public javax.swing.JFormattedTextField pIncFTF
Text Field boxes to hold equivalent *Val entries.


dpdtFTF

public javax.swing.JFormattedTextField dpdtFTF
Text Field boxes to hold equivalent *Val entries.


hStartFTF

public javax.swing.JFormattedTextField hStartFTF
Text Field boxes to hold equivalent *Val entries.


hStopFTF

public javax.swing.JFormattedTextField hStopFTF
Text Field boxes to hold equivalent *Val entries.


hIncFTF

public javax.swing.JFormattedTextField hIncFTF
Text Field boxes to hold equivalent *Val entries.


dpdhFTF

public javax.swing.JFormattedTextField dpdhFTF
Text Field boxes to hold equivalent *Val entries.


sStartFTF

public javax.swing.JFormattedTextField sStartFTF
Text Field boxes to hold equivalent *Val entries.


sStopFTF

public javax.swing.JFormattedTextField sStopFTF
Text Field boxes to hold equivalent *Val entries.


sIncFTF

public javax.swing.JFormattedTextField sIncFTF
Text Field boxes to hold equivalent *Val entries.


dpdsFTF

public javax.swing.JFormattedTextField dpdsFTF
Text Field boxes to hold equivalent *Val entries.


vStartFTF

public javax.swing.JFormattedTextField vStartFTF
Text Field boxes to hold equivalent *Val entries.


vStopFTF

public javax.swing.JFormattedTextField vStopFTF
Text Field boxes to hold equivalent *Val entries.


vIncFTF

public javax.swing.JFormattedTextField vIncFTF
Text Field boxes to hold equivalent *Val entries.


dtdvFTF

public javax.swing.JFormattedTextField dtdvFTF
Text Field boxes to hold equivalent *Val entries.

Constructor Detail

TPHandler

public TPHandler(rock.dRock rockRef)
Creates the GUI and initializes the class.

Parameters:
rockRef - Instance of server-side rock object.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Displays the popup dialog box and populates text entries.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - Action event that triggered the display request.