|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectextThopt.Util
public abstract class Util
Abstract class defining a number of useful methods
This class should not be modified
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static java.lang.String |
aff_b(boolean b)
displays a boolean affichage d'un booléen |
static java.lang.String |
aff_d(double d)
utility method displays a double affiche un double |
static java.lang.String |
aff_d(double d,
int dec)
displays a double méthode de classe d'affichage d'un double sous forme de chaîne de caractère avec dec décimales |
static java.lang.String |
aff_i(int i)
utility method displays an integer affiche un entier |
static boolean |
contains(java.util.Vector vComp,
java.lang.String pureGas)
utility method returns true if gas pureGas iis included in Vector vComp |
static rg.corps.Corps |
createIdealGas(java.lang.String nomGaz)
utility method creates an ideal gas |
static double |
dicho_T(Inversable inv,
double value,
double param,
java.lang.String function,
double valMin,
double valMax,
double epsilon)
generic function inversion method by dichotomy procédure générique d'inversion de fonction de T par dichotomie |
static java.lang.String |
extr_value(java.lang.String s)
utility method extracts the String at the right of the '=' character |
static java.lang.String |
extr_value(java.lang.String ligne_data,
java.lang.String search)
utility method extracts the String at the right of the '=' character corresponding to the String search at the left of '=' from a spreadsheet line (tab separator) |
static double |
getMax(double[] array)
|
static double |
getMin(double[] array)
|
static boolean |
lit_b(java.lang.String s)
utility method reads a boolean lecture d'un booléen |
static double |
lit_d(java.lang.String s)
utility method reads a double lecture d'un double |
static int |
lit_i(java.lang.String s)
utility method reads an integer lecture d'un entier |
static double |
molarComp(java.util.Vector vComp,
java.lang.String pureGas)
utility method extracts molar fraction relating to gas pureGas from composition Vector vComp |
static int |
solveCubic(double[] eqn,
double[] res)
|
static void |
updateMolarComp(java.util.Vector vComp,
java.lang.String pureGas,
double newFractMol)
utility method updates the molar fraction relating to gas pureGas in composition Vector vComp |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.String aff_i(int i)
displays an integer
affiche un entier
i
- integer
public static int lit_i(java.lang.String s)
reads an integer
lecture d'un entier
s
- String
public static java.lang.String aff_b(boolean b)
affichage d'un booléen
b
- boolean
public static java.lang.String aff_d(double d)
displays a double
affiche un double
d
- double
public static java.lang.String aff_d(double d, int dec)
méthode de classe d'affichage d'un double sous forme de chaîne de caractère avec dec décimales
d
- doubledec
- number of decimalspublic static double lit_d(java.lang.String s)
reads a double
lecture d'un double
s
- String
public static boolean lit_b(java.lang.String s)
reads a boolean
lecture d'un booléen
s
- "true" or "false"
public static java.lang.String extr_value(java.lang.String s)
s
- original String "value=3.4"
public static java.lang.String extr_value(java.lang.String ligne_data, java.lang.String search)
ligne_data
- original data linesearch
- String "value"
public static double dicho_T(Inversable inv, double value, double param, java.lang.String function, double valMin, double valMax, double epsilon)
procédure générique d'inversion de fonction de T par dichotomie
value
- doubleparam
- doublefunction
- StringvalMin
- doublevalMax
- doubleepsilon
- double
public static rg.corps.Corps createIdealGas(java.lang.String nomGaz)
nomGas
- String
public static double getMax(double[] array)
public static double getMin(double[] array)
public static double molarComp(java.util.Vector vComp, java.lang.String pureGas)
vComp
- VectorpureGas
- String
public static void updateMolarComp(java.util.Vector vComp, java.lang.String pureGas, double newFractMol)
vComp
- VectorpureGas
- StringnewFractMol
- doublepublic static boolean contains(java.util.Vector vComp, java.lang.String pureGas)
vComp
- VectorpureGas
- Stringpublic static int solveCubic(double[] eqn, double[] res)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |