|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AnimProtocol
Defines a protocol for sending and receving animation packets. Packets are either joint data or they are timestamps.
Field Summary | |
private boolean |
debug
|
private boolean |
debug_nonet
|
private static int |
jointPayloadSize
The number of bytes in a Joint packet payload |
private static int |
minPacketSize
The number of bytes in the smallest packet |
private Net |
net
|
private static int |
packetHeaderSize
The number of bytes in a packet header |
private static int |
port
|
private short |
r_elbow_id
|
private short |
r_shoulder_id
|
private short |
r_wrist_id
|
private static int |
timePayloadSize
The number of bytes in a Timestamp packet payload |
private static short |
timeStampHeader
The time stamp header |
Constructor Summary | |
AnimProtocol()
This constructor is for the SERVER. |
Method Summary | |
void |
close()
Close the network connection. |
private short |
jointNametoID(java.lang.String name)
Translate from an hanim name to its numeric id. |
void |
NetReadData(java.io.DataInputStream in_stream)
Part of netListenerInterface. |
void |
sendJointData(java.lang.String name,
float x,
float y,
float z,
float a)
|
void |
sendTimeStamp(int ts)
Send out this time stamp over the net. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Net net
private static int port
private static int packetHeaderSize
private static int jointPayloadSize
private static int timePayloadSize
private static int minPacketSize
private static short timeStampHeader
private final short r_shoulder_id
private final short r_elbow_id
private final short r_wrist_id
private boolean debug
private final boolean debug_nonet
Constructor Detail |
public AnimProtocol()
Method Detail |
public void sendTimeStamp(int ts)
public void sendJointData(java.lang.String name, float x, float y, float z, float a)
private short jointNametoID(java.lang.String name)
public void close()
public void NetReadData(java.io.DataInputStream in_stream)
NetReadData
in interface NetListener
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |