|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient.PlayerDevice
public abstract class PlayerDevice
Abstract class for all Player interfaces.
Field Summary | |
---|---|
protected short |
device
|
protected int |
DIFFERENCE_SYNCH_FACTOR
|
protected short |
index
|
protected java.io.DataInputStream |
is
|
protected java.io.DataOutputStream |
os
|
protected PlayerClient |
pc
|
protected int |
PLAYER_MAX_REQREP_SIZE
|
protected short |
PLAYER_STXX
|
protected int |
reserved
|
protected int |
size
|
protected int |
t_sec
|
protected int |
t_usec
|
protected int |
ts_sec
|
protected int |
ts_usec
|
Constructor Summary | |
---|---|
PlayerDevice(PlayerClient plc)
Abstract constructor for each PlayerDevice. |
Method Summary | |
---|---|
int |
getTimeForDataSampled_sec()
|
int |
getTimeForDataSampled_usec()
|
long |
getTimeForDataSampled()
|
int |
getTimeForDataSent_sec()
|
int |
getTimeForDataSent_usec()
|
long |
getTimeForDataSent()
|
void |
handleEARMessage()
Abstract handleEARMessage method. |
void |
handleNARMessage()
Abstract handleNARMessage method. |
void |
handleResponse(int size)
Abstract handleResponse method (threaded mode). |
void |
readData()
Read up to size bytes of data. |
protected void |
readHeader()
Read the t_sec, t_usec, ts_sec, ts_usec, reserved and size values from the Player message header. |
protected void |
sendHeader(short type,
int size)
Sends a Player message header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final short PLAYER_STXX
protected final int PLAYER_MAX_REQREP_SIZE
protected final int DIFFERENCE_SYNCH_FACTOR
protected PlayerClient pc
protected java.io.DataInputStream is
protected java.io.DataOutputStream os
protected int t_sec
protected int t_usec
protected int ts_sec
protected int ts_usec
protected int reserved
protected int size
protected short device
protected short index
Constructor Detail |
---|
public PlayerDevice(PlayerClient plc)
plc
- a reference to the PlayerClient objectMethod Detail |
---|
public int getTimeForDataSampled_sec()
public int getTimeForDataSampled_usec()
public int getTimeForDataSent_sec()
public int getTimeForDataSent_usec()
public long getTimeForDataSampled()
public long getTimeForDataSent()
protected void readHeader()
protected void sendHeader(short type, int size)
type
- type of message (DATA, CMD, REQ, RESP_ACK, SYNCH, RESP_NACK, RESP_ERR)size
- size in bytes of the payload to followpublic void readData()
public void handleNARMessage()
public void handleEARMessage()
public void handleResponse(int size)
size
- size of the payload
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |