|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient.PlayerDevice
javaclient.LogInterface
public class LogInterface
The log interface provides start/stop control of data logging/playback.
The log interface produces no data and accepts no commands.
Field Summary | |
---|---|
protected static short |
PLAYER_LOG_GET_STATE_REQ
|
protected static short |
PLAYER_LOG_SET_FILENAME
|
protected static short |
PLAYER_LOG_SET_READ_REWIND_REQ
|
protected static short |
PLAYER_LOG_SET_READ_STATE_REQ
|
protected static short |
PLAYER_LOG_SET_WRITE_STATE_REQ
|
protected static short |
PLAYER_LOG_TYPE_READ
|
protected static short |
PLAYER_LOG_TYPE_WRITE
|
Fields inherited from class javaclient.PlayerDevice |
---|
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
Constructor Summary | |
---|---|
LogInterface(PlayerClient pc,
short indexOfDevice)
Constructor for LogInterface. |
Method Summary | |
---|---|
byte |
getState()
Get the logging/playback state. |
byte |
getType()
Get the type of log device. |
void |
handleResponse(int size)
Handle acknowledgement response messages (threaded mode). |
boolean |
isStateReady()
Check if state data is available. |
void |
readState()
Configuration request: Get state. |
void |
rewindPlayback()
Configuration request: Rewind playback. |
void |
setFileName(java.lang.String fileName)
Configuration request: Set filename. |
void |
setLoggingState(int state)
Configuration request: Set logging state. |
void |
setPlaybackState(int state)
Configuration request: Set playback state. |
Methods inherited from class javaclient.PlayerDevice |
---|
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, readData, readHeader, sendHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final short PLAYER_LOG_SET_WRITE_STATE_REQ
protected static final short PLAYER_LOG_SET_READ_STATE_REQ
protected static final short PLAYER_LOG_GET_STATE_REQ
protected static final short PLAYER_LOG_SET_READ_REWIND_REQ
protected static final short PLAYER_LOG_SET_FILENAME
protected static final short PLAYER_LOG_TYPE_READ
protected static final short PLAYER_LOG_TYPE_WRITE
Constructor Detail |
---|
public LogInterface(PlayerClient pc, short indexOfDevice)
pc
- a reference to the PlayerClient objectindexOfDevice
- the index of the deviceMethod Detail |
---|
public void setLoggingState(int state)
state
- 0=disabled, 1=enabledpublic void setPlaybackState(int state)
state
- 0=disabled, 1=enabledpublic void rewindPlayback()
public void readState()
public void setFileName(java.lang.String fileName)
fileName
- the name of the file (max 255 chars + terminating NULL)public void handleResponse(int size)
handleResponse
in class PlayerDevice
size
- size of the payloadpublic byte getType()
public byte getState()
public boolean isStateReady()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |