|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmauda.evaluation.TimeStampRecorder
public class TimeStampRecorder
Records the time-stamps for each operation during recording to a jedas-animation.
| Field Summary | |
|---|---|
static long |
timeExtend
|
| Constructor Summary | |
|---|---|
TimeStampRecorder(Exercise exercise)
Creates a TimeStampRecorder |
|
| Method Summary | |
|---|---|
void |
calculateSeqTimeStamps()
Calculates from the eventually out-of-order-time-stamps sequential time-stamps. |
void |
exerciseUpdate(ExerciseUpdateEvent e)
Invoked when an Event occures |
OpTimeStamp |
getActOpTimeStamp()
Gets the actual time-stamp. |
OpTimeStamp |
getEntry(int offset)
Gets a specific entry in the time-stamp-recorder. |
OpTimeStamp |
getSeqEntry(int offset)
Gets a specific entry in the sequential-time-stamps. |
java.util.Vector |
getSeqTimeStamps()
Gets the by the TimeStampRecorder.calculateSeqTimeStamps calculated time-stamps. |
java.util.Vector |
getTimeStamps()
Gets the real time-stamps corresponding to the animation. |
void |
load(java.util.Vector v)
Converts a vector that contains the time-stamps readed from a xml-file, and converts it for the internal representation. |
void |
printSeqTimeStamps()
Prints out the entries of the sequential time-stamps. |
java.util.Vector |
save()
Converts the time-stamps in an appropriate format, that can be saved to an xml-file |
void |
setPlayerMode(boolean b)
Sets the player-mode of the timestamp-recorder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long timeExtend
| Constructor Detail |
|---|
public TimeStampRecorder(Exercise exercise)
exercise - Exercise| Method Detail |
|---|
public void setPlayerMode(boolean b)
b - true for player-mode, false otherwise.public void exerciseUpdate(ExerciseUpdateEvent e)
ExerciseUpdateListener
exerciseUpdate in interface ExerciseUpdateListenere - The eventpublic OpTimeStamp getEntry(int offset)
offset - The position of the entry to be returned
public OpTimeStamp getSeqEntry(int offset)
offset - The position of the entry to be returned
calculateSeqTimeStamps()public OpTimeStamp getActOpTimeStamp()
public void calculateSeqTimeStamps()
getSeqTimeStamps()public java.util.Vector getTimeStamps()
public java.util.Vector getSeqTimeStamps()
calculateSeqTimeStamps()public void printSeqTimeStamps()
public java.util.Vector save()
public void load(java.util.Vector v)
v - The vector from the xml-file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||