diff -r 000000000000 -r 6fefd4afe506 front_processing/extern/TUIO_JAVA/doc/TUIO/TuioTime.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/front_processing/extern/TUIO_JAVA/doc/TUIO/TuioTime.html Fri Mar 09 14:52:11 2012 +0100 @@ -0,0 +1,584 @@ + + + +
+ +
+
+
|
++ + | +|||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||
+java.lang.Object ++TUIO.TuioTime +
public class TuioTime
+The TuioTime class is a simple structure that is used to reprent the time that has elapsed since the session start. + The time is internally represented as seconds and fractions of microseconds which should be more than sufficient for gesture related timing requirements. + Therefore at the beginning of a typical TUIO session the static method initSession() will set the reference time for the session. + Another important static method getSessionTime will return a TuioTime object representing the time elapsed since the session start. + The class also provides various addtional convience method, which allow some simple time arithmetics. +
+ +
+
| +Constructor Summary | +|
|---|---|
TuioTime()
+
++ The default constructor takes no arguments and sets + the Seconds and Microseconds attributes of the newly created TuioTime both to zero. |
+|
TuioTime(long msec)
+
++ This constructor takes the provided time represented in total Milliseconds + and assigs this value to the newly created TuioTime. |
+|
TuioTime(long sec,
+ long usec)
+
++ This constructor takes the provided time represented in Seconds and Microseconds + and assigs these value to the newly created TuioTime. |
+|
TuioTime(TuioTime ttime)
+
++ This constructor takes the provided TuioTime + and assigs its Seconds and Microseconds values to the newly created TuioTime. |
+|
| +Method Summary | +|
|---|---|
+ TuioTime |
+add(long us)
+
++ Sums the provided time value represented in total Microseconds to this TuioTime. |
+
+ TuioTime |
+add(TuioTime ttime)
+
++ Sums the provided TuioTime to the private Seconds and Microseconds attributes. |
+
+ boolean |
+equals(TuioTime ttime)
+
++ Takes a TuioTime argument and compares the provided TuioTime to the private Seconds and Microseconds attributes. |
+
+ long |
+getMicroseconds()
+
++ Returns the TuioTime Microseconds component. |
+
+ long |
+getSeconds()
+
++ Returns the TuioTime Seconds component. |
+
+static TuioTime |
+getSessionTime()
+
++ Returns the present TuioTime representing the time since session start. |
+
+static TuioTime |
+getStartTime()
+
++ Returns the absolut TuioTime representing the session start. |
+
+static TuioTime |
+getSystemTime()
+
++ Returns the absolut TuioTime representing the current system time. |
+
+ long |
+getTotalMilliseconds()
+
++ Returns the total TuioTime in Milliseconds. |
+
+static void |
+initSession()
+
++ This static method globally resets the TUIO session time. |
+
+ void |
+reset()
+
++ Resets the seconds and micro_seconds attributes to zero. |
+
+ TuioTime |
+subtract(long us)
+
++ Subtracts the provided time represented in Microseconds from the private Seconds and Microseconds attributes. |
+
+ TuioTime |
+subtract(TuioTime ttime)
+
++ Subtracts the provided TuioTime from the private Seconds and Microseconds attributes. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public TuioTime()+
+
+public TuioTime(long msec)+
+
msec - the total time in Millseconds+public TuioTime(long sec, + long usec)+
+
sec - the total time in secondsusec - the microseconds time component+public TuioTime(TuioTime ttime)+
+
ttime - the TuioTime used to copy| +Method Detail | +
|---|
+public TuioTime add(long us)+
+
us - the total time to add in Microseconds
++public TuioTime add(TuioTime ttime)+
+
ttime - the TuioTime to add
++public TuioTime subtract(long us)+
+
us - the total time to subtract in Microseconds
++public TuioTime subtract(TuioTime ttime)+
+
ttime - the TuioTime to subtract
++public boolean equals(TuioTime ttime)+
+
ttime - the TuioTime to compare
++public void reset()+
+
+public long getSeconds()+
+
+public long getMicroseconds()+
+
+public long getTotalMilliseconds()+
+
+public static void initSession()+
+
+public static TuioTime getSessionTime()+
+
+public static TuioTime getStartTime()+
+
+public static TuioTime getSystemTime()+
+
+
+
|
++ + | +|||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||