com.sensorcon.sensordrone
Interface DroneEventListener

All Superinterfaces:
java.util.EventListener

public interface DroneEventListener
extends java.util.EventListener

The DroneEventListener is used to perform actions when the Sensordrone has successfully made a measurement. It has a block of numerous status events to be triggered. If you only want to work with a few particular events, feel free to check out DroneEventHandler instead

Since:
1.1.1
See Also:
DroneEventHandler

Method Summary
 void adcMeasured(DroneEventObject event)
          Things to do when the External ADC measurement is ready.
 void altitudeMeasured(DroneEventObject event)
          Things to do when the Altitude measurement is ready.
 void capacitanceMeasured(DroneEventObject event)
          Things to do when the Capacitance measurement is ready.
 void connectEvent(DroneEventObject event)
          Things to do when a Sensordrone connection is made.
 void connectionLostEvent(DroneEventObject event)
          Things to do when a Sensordrone connection is lost.
 void customEvent(DroneEventObject event)
          A catch for a custom event if you need one
 void disconnectEvent(DroneEventObject event)
          Things to do when a Sensordrone is disconnected.
 void humidityMeasured(DroneEventObject event)
          Things to do when the Humidity measurement is ready.
 void i2cRead(DroneEventObject event)
          Things to do when the I2C is read
 void irTemperatureMeasured(DroneEventObject event)
          Things to do when the IR Temperature measurement is ready.
 void oxidizingGasMeasured(DroneEventObject event)
          Things to do when the (Oxidizing) General Gas measurement is ready.
 void precisionGasMeasured(DroneEventObject event)
          Things to do when the Precision Gas measurement is ready.
 void pressureMeasured(DroneEventObject event)
          Things to do when the Pressure measurement is ready.
 void reducingGasMeasured(DroneEventObject event)
          Things to do when the (Reducing) General Gas measurement is ready.
 void rgbcMeasured(DroneEventObject event)
          Things to do when the RGBC measurement is ready.
 void temperatureMeasured(DroneEventObject event)
          Things to do when the Temperature measurement is ready.
 void uartRead(DroneEventObject event)
          Things to do when the UART is read
 void unknown(DroneEventObject event)
          This is only used if the event is unknown (i.e.
 void usbUartRead(DroneEventObject event)
          Things to do when the USB UART is read
 

Method Detail

capacitanceMeasured

void capacitanceMeasured(DroneEventObject event)
Things to do when the Capacitance measurement is ready.

Parameters:
event -
Since:
1.1.1

adcMeasured

void adcMeasured(DroneEventObject event)
Things to do when the External ADC measurement is ready.

Parameters:
event -
Since:
1.1.1

rgbcMeasured

void rgbcMeasured(DroneEventObject event)
Things to do when the RGBC measurement is ready.

Parameters:
event -
Since:
1.1.1

pressureMeasured

void pressureMeasured(DroneEventObject event)
Things to do when the Pressure measurement is ready.

Parameters:
event -
Since:
1.1.1

altitudeMeasured

void altitudeMeasured(DroneEventObject event)
Things to do when the Altitude measurement is ready.

Parameters:
event -
Since:
1.1.1

irTemperatureMeasured

void irTemperatureMeasured(DroneEventObject event)
Things to do when the IR Temperature measurement is ready.

Parameters:
event -
Since:
1.1.1

humidityMeasured

void humidityMeasured(DroneEventObject event)
Things to do when the Humidity measurement is ready.

Parameters:
event -
Since:
1.1.1

temperatureMeasured

void temperatureMeasured(DroneEventObject event)
Things to do when the Temperature measurement is ready.

Parameters:
event -
Since:
1.1.1

reducingGasMeasured

void reducingGasMeasured(DroneEventObject event)
Things to do when the (Reducing) General Gas measurement is ready.

Parameters:
event -
Since:
1.1.1

oxidizingGasMeasured

void oxidizingGasMeasured(DroneEventObject event)
Things to do when the (Oxidizing) General Gas measurement is ready.

Parameters:
event -
Since:
1.1.1

precisionGasMeasured

void precisionGasMeasured(DroneEventObject event)
Things to do when the Precision Gas measurement is ready.

Parameters:
event -
Since:
1.1.1

uartRead

void uartRead(DroneEventObject event)
Things to do when the UART is read

Parameters:
event -
Since:
1.1.1

i2cRead

void i2cRead(DroneEventObject event)
Things to do when the I2C is read

Parameters:
event -
Since:
1.1.1

usbUartRead

void usbUartRead(DroneEventObject event)
Things to do when the USB UART is read

Parameters:
event -
Since:
1.1.1

customEvent

void customEvent(DroneEventObject event)
A catch for a custom event if you need one

Parameters:
event -
Since:
1.1.1

connectEvent

void connectEvent(DroneEventObject event)
Things to do when a Sensordrone connection is made.

Parameters:
event -
Since:
1.1.1

disconnectEvent

void disconnectEvent(DroneEventObject event)
Things to do when a Sensordrone is disconnected.

Parameters:
event -
Since:
1.1.1

connectionLostEvent

void connectionLostEvent(DroneEventObject event)
Things to do when a Sensordrone connection is lost.

Parameters:
event -
Since:
1.1.1

unknown

void unknown(DroneEventObject event)
This is only used if the event is unknown (i.e. a typo, or other error). Can be useful for checking if customEvent is working properly

Parameters:
event -
Since:
1.1.1