brooklyn.event.SensorEvent Maven / Gradle / Ivy
package brooklyn.event;
import brooklyn.entity.Entity;
/**
* A tuple representing a piece of data from a {@link Sensor} on an {@link Entity}.
*/
public interface SensorEvent {
/**
* The {@link Entity} where the data originated.
*/
Entity getSource();
/**
* The {@link Sensor} describing the data.
*/
Sensor getSensor();
/**
* The value for the {@link Sensor} data.
*/
T getValue();
/**
* The time this data was published, as a UTC time in milliseconds (e.g. as returned
* by {@link System#currentTimeMillis()}.
*/
long getTimestamp();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy