|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.PhaseVarSet
public class PhaseVarSet
Field Summary | |
---|---|
java.lang.String |
fileName
|
boolean |
isDirty
|
java.lang.String |
name
|
Constructor Summary | |
---|---|
PhaseVarSet()
Default constructor |
|
PhaseVarSet(PhaseVar[] vars)
Contructs a new set with specified variables |
|
PhaseVarSet(java.lang.String nam)
Contructs a new set with specified name |
|
PhaseVarSet(java.lang.String nam,
PhaseVar[] vars)
Contructs a new set with specified name and variables |
Method Summary | |
---|---|
void |
add(PhaseVar var)
|
double[] |
getMeans()
Returns a vector with the means of all elements |
int |
indexOfName(java.lang.String s)
Returns the index in the det of the variables with the specified name |
java.lang.String |
newUniqueVarName(java.lang.String proposedName)
Builds a unique name for a variable from a proposed name |
int |
numVars()
Returns the number of variables in the set |
static PhaseVarSet |
open(java.lang.String fileName)
Reads a .sed file with the information of a set |
static PhaseVarSet |
openTxt(java.lang.String fileName)
Reads a .txt file with the information of a set |
void |
remove(PhaseVar var)
Remove the specified variable |
int |
remove(java.lang.String varName)
Removes the variable with specified name |
void |
save()
|
void |
save(java.lang.String fileName)
|
boolean |
saveTxt()
Saves the set information in a file |
boolean |
saveTxt(java.lang.String fileName)
Saves the set information in a file |
java.lang.String |
toString()
|
PhaseVar |
varAt(int i)
Returns the variable at index i |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public java.lang.String fileName
public boolean isDirty
Constructor Detail |
---|
public PhaseVarSet()
public PhaseVarSet(java.lang.String nam)
nam
- Set namepublic PhaseVarSet(PhaseVar[] vars)
vars
- Set variablespublic PhaseVarSet(java.lang.String nam, PhaseVar[] vars)
nam
- Set namevars
- Set variablesMethod Detail |
---|
public java.lang.String newUniqueVarName(java.lang.String proposedName)
proposedName
- proposed name
public void add(PhaseVar var)
var
- public PhaseVar varAt(int i)
i
- Index of the required variables
public int indexOfName(java.lang.String s)
s
- Name to be evaluated
public int numVars()
public int remove(java.lang.String varName)
varName
- name of the varible to remove
public void remove(PhaseVar var)
var
- variable to removepublic double[] getMeans()
public static PhaseVarSet open(java.lang.String fileName) throws java.lang.Exception
fileName
- File with the variable set
java.lang.Exception
- IOExceptionpublic static PhaseVarSet openTxt(java.lang.String fileName) throws java.lang.Exception
fileName
- File with the variable set
java.lang.Exception
- IOExceptionpublic void save() throws java.io.IOException
java.io.IOException
public void save(java.lang.String fileName) throws java.io.IOException
fileName
-
java.io.IOException
public boolean saveTxt() throws java.io.IOException
java.io.IOException
public boolean saveTxt(java.lang.String fileName) throws java.io.IOException
fileName
- File name
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |