cat.sensor.event
Class NewSensorEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycat.sensor.event.SensorEvent
          extended bycat.sensor.event.NewSensorEvent
All Implemented Interfaces:
java.io.Serializable

public class NewSensorEvent
extends SensorEvent

New Sensor Event is generated when a new sensor is added into CAT. It only contains the Sensor ID. More information regarding the sensor can be gotten from the SensorManager.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NewSensorEvent(java.lang.String id)
          This constructor sets the id of the new sensor.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewSensorEvent

public NewSensorEvent(java.lang.String id)
This constructor sets the id of the new sensor.

Parameters:
id - The unique id of the new sensor.