com.sensorcon.sensordrone
Class DroneEventObject

java.lang.Object
  extended by java.util.EventObject
      extended by com.sensorcon.sensordrone.DroneEventObject
All Implemented Interfaces:
java.io.Serializable

public class DroneEventObject
extends java.util.EventObject

A custom class used for EventListener notifications (extends EventObject)

See Also:
Serialized Form

Nested Class Summary
static class DroneEventObject.droneEventType
          And enum of all the allowed event types.
 
Constructor Summary
DroneEventObject(DroneEventObject.droneEventType eventType)
          Our default Constructor; only allows items that are in the droneEventType enum
 
Method Summary
 boolean matches(DroneEventObject.droneEventType type)
          A method to quickly check if a triggered event matches a particular item in the droneEventType enum
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DroneEventObject

public DroneEventObject(DroneEventObject.droneEventType eventType)
Our default Constructor; only allows items that are in the droneEventType enum

Parameters:
eventType -
See Also:
DroneEventObject.droneEventType
Method Detail

matches

public boolean matches(DroneEventObject.droneEventType type)
A method to quickly check if a triggered event matches a particular item in the droneEventType enum

Parameters:
type -
Returns:
True if the triggered droneEventType matches the passed droneEventType, otherwise false;
See Also:
DroneEventObject.droneEventType