frog
Class AccelEvent

java.lang.Object
  extended by frog.AccelEvent

public class AccelEvent
extends Object

AccelEvents represent a single acceleration that has come from a device. An AccelEvent contains the source device as well as the value of this acceleration.

Author:
Team Better Recognize
See Also:
DeviceListener

Constructor Summary
AccelEvent(Device device, Accel3D a)
          Creates an AccelEvent with a source device and acceleration value.
 
Method Summary
 Accel3D getAcceleration()
          Returns the acceleration contained in this AccelEvent.
 Device getDevice()
          Get the Device that performed the acceleration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccelEvent

public AccelEvent(Device device,
                  Accel3D a)
Creates an AccelEvent with a source device and acceleration value.

Parameters:
device - the source of the acceleration sample
a - a single acceleration sampling
Method Detail

getAcceleration

public Accel3D getAcceleration()
Returns the acceleration contained in this AccelEvent.

Returns:
the acceleration reading of this event

getDevice

public Device getDevice()
Get the Device that performed the acceleration.

Returns:
the Device that performed the gesture