2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.satel.internal.event;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Event class describing current temperature in a zone.
20 * @author Krzysztof Goworek - Initial contribution
23 public class ZoneTemperatureEvent implements SatelEvent {
26 private float temperature;
29 * Constructs new event class.
31 * @param zoneNbr zone number
32 * @param temperature current temperature in the zone
34 public ZoneTemperatureEvent(int zoneNbr, float temperature) {
35 this.zoneNbr = zoneNbr;
36 this.temperature = temperature;
42 public int getZoneNbr() {
47 * @return temperature in the zone
49 public float getTemperature() {
54 public String toString() {
55 return String.format("ZoneTemperatureEvent: zoneNbr = %d, temperature = %.1f", this.zoneNbr, this.temperature);