18 package misc.temperature;
35 private float m_timestamp;
45 m_timestamp = (float) System.currentTimeMillis() / 1000f;
74 private double m_temperature;
81 public TemperatureEvent(
int rack_id,
double temperature)
84 m_temperature = temperature;
91 public double getTemperature()
97 public String toString()
111 private double m_voltage;
118 public PowerEvent(
int rack_id,
double voltage)
128 public double getVoltage()
134 public String toString()
Parent class of all the input events in this example.
int getRackID()
Gets the event's rack ID.
MonitoringEvent(int rack_id)
Creates a new monitoring event.
float getTimestamp()
Gets the event's timestamp.