|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwpi.timesequence.TSUtility
This class contains methods for manipulating time sequence attributes and events.
Field Summary | |
private static int |
debug
Specifies debug info level 0: no debug info 1: input to methods 2: and output from methods 3: and all sorts of stuff |
static double |
DISTANCE_TOLERANCE
Distance at which two points in time can be considered the same. |
static char |
SET_BEGIN
|
static char |
SET_DELIMITER
The delimiters to use for sets of events |
static char |
SET_END
|
static java.lang.String |
TIME_LINE_NAME
The name of the data set attribute representing the time line for an instance. |
static char |
TIME_SEQUENCE_DELIMITER
The delimiters to use for time sequence values |
Constructor Summary | |
TSUtility()
|
Method Summary | |
static java.lang.String[] |
getEvents(java.lang.String v)
Parses a time sequence event set attribute's value into individual values (events). |
static java.lang.String[] |
getNominalValues(java.lang.String v)
Parses a time sequence attribute's value into individual nominal values. |
static double[] |
getValues(java.lang.String v)
Parses a time sequence attribute's value into individual values. |
static boolean |
isTimeSequence(java.lang.String v)
Tests if the value is a time sequence. |
static boolean |
isTimeSequenceEvent(java.lang.String v)
Tests if the value is a time sequence event. |
static boolean |
isTimeSequenceEventSet(java.lang.String v)
Tests if the value is a set of time sequence events. |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static char TIME_SEQUENCE_DELIMITER
public static char SET_DELIMITER
public static char SET_BEGIN
public static char SET_END
public static java.lang.String TIME_LINE_NAME
public static double DISTANCE_TOLERANCE
private static final int debug
Constructor Detail |
public TSUtility()
Method Detail |
public static java.lang.String[] getNominalValues(java.lang.String v)
v
- the instance from which the value will come
public static double[] getValues(java.lang.String v)
v
- the instance from which the value will come
public static java.lang.String[] getEvents(java.lang.String v)
v
- the string value to parse
public static boolean isTimeSequence(java.lang.String v)
v
- the value to test
public static boolean isTimeSequenceEvent(java.lang.String v)
v
- the value to test
public static boolean isTimeSequenceEventSet(java.lang.String v)
v
- the value to test
public static void main(java.lang.String[] argv)
argv
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |