brooklyn.event
Interface SensorEvent<T>


public interface SensorEvent<T>

A tuple representing a piece of data from a Sensor on an Entity.


Method Summary
 Sensor<T> getSensor()
          The Sensor describing the data.
 Entity getSource()
          The Entity where the data originated.
 long getTimestamp()
          The time this data was published, as a UTC time in milliseconds (e.g.
 T getValue()
          The value for the Sensor data.
 

Method Detail

getSource

Entity getSource()
The Entity where the data originated.


getSensor

Sensor<T> getSensor()
The Sensor describing the data.


getValue

T getValue()
The value for the Sensor data.


getTimestamp

long getTimestamp()
The time this data was published, as a UTC time in milliseconds (e.g. as returned by System.currentTimeMillis().



Copyright © 2013. All Rights Reserved.