|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface must be implemented by all monitor sensors.
Method Summary | |
void |
addFormat(SensorOutputDataFormat format)
Add a format to the list of Sensor's supported formats. |
void |
addSensorListener(SensorListener sIf)
Add a SensorListener interested to notifications regarding MonitorEvent s
of this Sensor. |
void |
destroySensor()
Destroy this Sensor. |
void |
execute()
Execute this Sensor. |
SensorOutputDataFormat |
getDefaultFormat()
Get the default format. |
SensorOutputDataFormat |
getFormat(java.lang.String name)
Get the SensorOutputDataFormat format specified by its name. |
SensorOutputDataFormat[] |
getFormats()
Get an array of all supported format. |
java.lang.String |
getName()
Get the sensor's name. |
SensorListener[] |
getSensorListeners()
Get the all SensorListener s registered to this Sensor. |
java.lang.String |
getType()
Get the sensor's type. |
void |
init()
Initialize this Sensor. |
boolean |
isFormatSupported(SensorOutputDataFormat format)
Check if specified format is supported by the Sensor i.e. |
boolean |
isFormatSupported(java.lang.String format)
Check if the SensorOutputDataFormat specified by its name is supported by the Sensor, i.e. |
void |
removeFormat(SensorOutputDataFormat format)
Remove a format from the list of Sensor's supported formats. |
void |
removeSensorListener(SensorListener sIf)
Remove a SensorListener from the list of listeners interested to notifications regarding MonitorEvent s
of this Sensor. |
void |
resumeSensor()
Resume the execution of this Sensor. |
void |
setDefaultFormat(SensorOutputDataFormat format)
Set the default format. |
void |
startSensor()
Start the execution of this Sensor. |
void |
suspendSensor()
Suspend the execution of this Sensor. |
Method Detail |
public java.lang.String getName()
public java.lang.String getType()
public SensorOutputDataFormat getFormat(java.lang.String name)
name
- The name of the SensorOutputDataFormat format.
public SensorOutputDataFormat[] getFormats()
public void addFormat(SensorOutputDataFormat format)
format
- The SensorOutputDataFormat to be added.public void removeFormat(SensorOutputDataFormat format)
format
- The SensorOutputDataFormat to be removed.public void setDefaultFormat(SensorOutputDataFormat format)
format
- Then SensorOutputDataFormat which is the format to be set as default.public SensorOutputDataFormat getDefaultFormat()
public boolean isFormatSupported(SensorOutputDataFormat format)
format
- The SensorOutputDataFormat
to check.
public boolean isFormatSupported(java.lang.String format)
SensorOutputDataFormat
specified by its name is supported by the Sensor, i.e. has already been added.
format
- The String representing the name of the SensorOutputDataFormat
to be checked.
public void addSensorListener(SensorListener sIf)
SensorListener
interested to notifications regarding MonitorEvent
s
of this Sensor.
sIf
- The SensorListener
to add.public void removeSensorListener(SensorListener sIf)
SensorListener
from the list of listeners interested to notifications regarding MonitorEvent
s
of this Sensor.
sIf
- The SensorListener
to be removed.public SensorListener[] getSensorListeners()
SensorListener
s registered to this Sensor.
SensorListener
s registered to this Sensor.public void init() throws SensorException
SensorException
public void startSensor()
public void suspendSensor()
public void resumeSensor()
public void destroySensor()
public void execute() throws SensorException
SensorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |