|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
JavaGrinders.Variable
JavaGrinders.StrVariable
public class StrVariable
handles a variable of Strings. It sets or retrieves individual entries, and selects rows by comparing the entry to a given String.
| Field Summary |
|---|
| Fields inherited from class JavaGrinders.Variable |
|---|
autoExtracted, df, doWarnings, itsDescriptives, itsHighlitedColor, itsLineColor, itsLocationColor, rand |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
StrVariable(java.lang.String varName,
VariableOrganizer theOwner)
Standard constructor for the root string Variable class using a VariableOrganizer |
|
| Method Summary | |
|---|---|
Variable |
cloneSelectedRowsOnly()
returns a NumberVariable with only the selected rows |
void |
fillWithParser(DataFileParser aParser,
int varNum,
boolean firstRowAsLabels)
fills the variable with individual datavalues read from a textfile using a * DataFileParser object |
void |
selectRows(java.lang.String matchString,
boolean fromPrevSelected)
select all rows with a String that matches the one provided |
void |
sort(boolean ascending)
sorts the values for all rows (this is a place holder for all subclasses) |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public StrVariable(java.lang.String varName,
VariableOrganizer theOwner)
throws java.lang.Exception
varName - assigns a name to the variabletheOwner - an instance of VariableOrganizer
class coordinates a set of variables with respect to number of data points available
and the rows that are currently selected
java.lang.Exception| Method Detail |
|---|
public void fillWithParser(DataFileParser aParser,
int varNum,
boolean firstRowAsLabels)
throws java.lang.Exception
fillWithParser in class VariableaParser - the DataFileParser that was used to
read data values from a text file * @param varNum marks the number of the column to be filled into the variable * @param firstRowAsLabels whether the first row contains a variable labelvarNum - marks the number of the column to be filled into the variablefirstRowAsLabels - whether the first row contains a variable label
java.lang.Exception
public Variable cloneSelectedRowsOnly()
throws java.lang.Exception
java.lang.Exception
public void sort(boolean ascending)
throws java.lang.Exception
sort in class Variableascending - in ascending order
java.lang.Exception
public void selectRows(java.lang.String matchString,
boolean fromPrevSelected)
throws java.lang.Exception
matchString - lists the String to compare with * @param fromPrevSelected notes whether the search should only be performed on
currently selected rows
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||