javax.microedition.sensor
Interface SensorConnection

All Superinterfaces:
Connection
All Known Implementing Classes:
NXTSensorConnection

public interface SensorConnection
extends Connection

Standard JSR256 SensorConnection interface

Author:
Lawrie Griffiths

Field Summary
static int STATE_CLOSED
           
static int STATE_LISTENING
           
static int STATE_OPENED
           
 
Method Summary
 Channel getChannel(ChannelInfo channelInfo)
           
 Data[] getData(int bufferSize)
           
 Data[] getData(int bufferSize, long bufferingPeriod, boolean isTimestampIncluded, boolean isUncertaintyIncluded, boolean isValidityIncluded)
           
 SensorInfo getSensorInfo()
           
 int getState()
           
 void removeDataListener()
           
 void setDataListener(DataListener listener, int bufferSize)
           
 void setDataListener(DataListener listener, int bufferSize, long bufferingPeriod, boolean isTimestampIncluded, boolean isUncertaintyIncluded, boolean isValidityIncluded)
           
 
Methods inherited from interface javax.microedition.io.Connection
close
 

Field Detail

STATE_CLOSED

static final int STATE_CLOSED
See Also:
Constant Field Values

STATE_LISTENING

static final int STATE_LISTENING
See Also:
Constant Field Values

STATE_OPENED

static final int STATE_OPENED
See Also:
Constant Field Values
Method Detail

getChannel

Channel getChannel(ChannelInfo channelInfo)

getData

Data[] getData(int bufferSize)
               throws IOException
Throws:
IOException

getData

Data[] getData(int bufferSize,
               long bufferingPeriod,
               boolean isTimestampIncluded,
               boolean isUncertaintyIncluded,
               boolean isValidityIncluded)
               throws IOException
Throws:
IOException

getSensorInfo

SensorInfo getSensorInfo()

getState

int getState()

removeDataListener

void removeDataListener()

setDataListener

void setDataListener(DataListener listener,
                     int bufferSize)

setDataListener

void setDataListener(DataListener listener,
                     int bufferSize,
                     long bufferingPeriod,
                     boolean isTimestampIncluded,
                     boolean isUncertaintyIncluded,
                     boolean isValidityIncluded)