|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Object | +--PlaybackServer
Does one thing which is to read a file and send it to the client.
Things to fix: o make the file to read from modifiable.
| Field Summary | |
private int |
animationFrameLength
The length of time between frames that we want to send. |
private boolean |
debug
|
private int |
defaultAnimationFrameLength
The default length of time between frames in ms |
private static java.lang.String |
defaultFilename
The file the animation is read from. |
private int |
duration
The number of seconds of data |
private java.lang.String |
filename
|
private int |
gestureFrameLength
The length of time between frames given in the file |
private int |
gestureTime
A time index into the gesture. |
private int |
measurements
The number of measurements each sensor made |
private AnimProtocol |
net
|
private int |
njoints
The number of sensors providing data |
private Quat |
q
|
private int |
rate
The measurement rate the birds report |
private java.io.StreamTokenizer |
tokReader
|
private int |
triggerTime
Keeps track of the next time that we want to sent a frame out |
| Constructor Summary | |
(package private) |
PlaybackServer()
|
(package private) |
PlaybackServer(java.lang.String filename)
Sends untransformed sensor data to the vrml file. |
| Method Summary | |
void |
finalize()
|
static void |
main(java.lang.String[] args)
|
(package private) void |
printOrientation(int bird,
float x,
float y,
float z,
float ax)
|
(package private) void |
printOrientation(java.lang.String joint,
float x,
float y,
float z,
float ax)
|
(package private) void |
printTimeStamp()
|
void |
readHeader()
Read the header of an animation file. |
void |
run()
Read each line from the file and send information over the network. |
void |
setFrameRate(int fr)
Sets the framerate of the animation. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static java.lang.String defaultFilename
private java.lang.String filename
private AnimProtocol net
private java.io.StreamTokenizer tokReader
private Quat q
private int njoints
private int rate
private int gestureFrameLength
private int measurements
private int duration
private int gestureTime
private int animationFrameLength
private final int defaultAnimationFrameLength
private int triggerTime
private boolean debug
| Constructor Detail |
PlaybackServer()
throws java.io.FileNotFoundException
PlaybackServer(java.lang.String filename)
throws java.io.FileNotFoundException
The - name of the file to read from.| Method Detail |
public void setFrameRate(int fr)
fr - The new framerate in Hz.
public void readHeader()
throws java.io.IOException
public void finalize()
finalize in class java.lang.Objectpublic void run()
run in interface java.lang.Runnable
void printOrientation(int bird,
float x,
float y,
float z,
float ax)
void printOrientation(java.lang.String joint,
float x,
float y,
float z,
float ax)
void printTimeStamp()
public static void main(java.lang.String[] args)
|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||