All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brooklyn.event.SensorEvent Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
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