|
|||||||||
| 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.spatial.CaptureVariable
JavaGrinders.spatial.MoveVariable
public class MoveVariable
handles a vector of information for a series of moves
| Field Summary | |
|---|---|
MoveDescriptives |
itsDescriptives
|
| Fields inherited from class JavaGrinders.spatial.CaptureVariable |
|---|
rand |
| Fields inherited from class JavaGrinders.Variable |
|---|
autoExtracted, df, doWarnings, itsHighlitedColor, itsLineColor, itsLocationColor |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
MoveVariable(java.lang.String varName,
VariableOrganizer theOrganizer)
Standard constructor for the MovesVariable class using a VariableOrganizer |
|
| Method Summary | |
|---|---|
void |
asCircularGraph()
Creates a presenter and plots the movement vectors as a circular graph |
void |
asSpatialMap()
Creates a presenter and plots the locations |
void |
asSpatialMap(boolean xDirection,
boolean yDirection)
Creates a presenter and plots the locations |
Variable |
cloneSelectedRowsOnly()
returns a NumberVariable with only the selected rows |
void |
fill(NumberVariable x,
NumberVariable y,
NumberVariable z,
IntegerVariable time)
fills the variable with moves starting from 0,0,0. |
void |
fillDescriptives()
fills the descriptive statistics for the variable, at the root level only a check for valid data points is performed |
AngleVariable |
getAngles()
returns an array of distances for the moves |
NumberVariable |
getDistances()
returns an array of distances for the moves |
NumberVariable |
getDurations()
returns an array of speeds for the moves |
MoveDescriptives |
getMoveDescriptives()
fills and returns the Descriptives |
MoveVector |
getMoveVector(int row)
returns the Move stored at a given row of the Vector |
MoveVector |
getNetMove()
returns the time difference between first and last capture |
double |
getNetTime()
returns the time difference between first and last capture |
NumberVariable |
getSpeeds()
returns an array of speeds for the moves |
java.lang.String |
getStringValue(int row)
returns the value from a given row in the array as a String object |
double |
getTimeSum()
returns the amount of time covered by the moves |
void |
invalidDescriptives()
an action has changed data, the descriptive stats thus need to be updated |
void |
listDescriptives()
lists the descriptive statistics for the variable using the currently selected set of rows |
void |
listMoveDescriptives()
lists the descriptive statistics for the variable using the currently selected set of rows |
void |
listSpeedDescriptives()
lists the speed statistics for the variable using the currently selected set of rows |
CaptureVariable |
toCapturesVariable()
returns the Move stored at a given row of the Vector |
| 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 |
| Field Detail |
|---|
public MoveDescriptives itsDescriptives
| Constructor Detail |
|---|
public MoveVariable(java.lang.String varName,
VariableOrganizer theOrganizer)
throws java.lang.Exception
varName - assigns a name (String) to the variabletheOrganizer - 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 MoveVector getMoveVector(int row)
row - marks the row in the vector
public void fill(NumberVariable x,
NumberVariable y,
NumberVariable z,
IntegerVariable time)
throws java.lang.Exception
fill in class CaptureVariablex - the x coordinatesy - the y coordinatesz - the y coordinates, set this to null if the moves are 2D onlytime - the time stamp for the capture
java.lang.Exception
public CaptureVariable toCapturesVariable()
throws java.lang.Exception
java.lang.Exception
public Variable cloneSelectedRowsOnly()
throws java.lang.Exception
cloneSelectedRowsOnly in class CaptureVariablejava.lang.Exceptionpublic java.lang.String getStringValue(int row)
getStringValue in class CaptureVariablerow - marks the row in the vector
public NumberVariable getDistances()
throws java.lang.Exception
java.lang.Exception
public AngleVariable getAngles()
throws java.lang.Exception
java.lang.Exception
public NumberVariable getSpeeds()
throws java.lang.Exception
getSpeeds in class CaptureVariablejava.lang.Exception
public NumberVariable getDurations()
throws java.lang.Exception
java.lang.Exception
public double getTimeSum()
throws java.lang.Exception
java.lang.Exception
public double getNetTime()
throws java.lang.Exception
getNetTime in class CaptureVariablejava.lang.Exception
public MoveVector getNetMove()
throws java.lang.Exception
getNetMove in class CaptureVariablejava.lang.Exceptionpublic void invalidDescriptives()
invalidDescriptives in class CaptureVariable
public MoveDescriptives getMoveDescriptives()
throws java.lang.Exception
getMoveDescriptives in class CaptureVariablejava.lang.Exception
public void fillDescriptives()
throws java.lang.Exception
java.lang.Exception
public void listDescriptives()
throws java.lang.Exception
listDescriptives in class CaptureVariablejava.lang.Exception
public void listMoveDescriptives()
throws java.lang.Exception
listMoveDescriptives in class CaptureVariablejava.lang.Exception
public void listSpeedDescriptives()
throws java.lang.Exception
java.lang.Exceptionpublic void asSpatialMap()
asSpatialMap in class CaptureVariable
public void asSpatialMap(boolean xDirection,
boolean yDirection)
asSpatialMap in class CaptureVariablexDirection - do x values increase from left to right?yDirection - do y values increase from top to bottom?public void asCircularGraph()
asCircularGraph in class CaptureVariable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||