2 * Copyright (c) 2010-2023 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.jeelink.internal.revolt;
15 import org.openhab.binding.jeelink.internal.Reading;
18 * Reading of a Revolt Energy Meter sensor.
20 * @author Volker Bier - Initial contribution
22 public class RevoltReading implements Reading {
24 private float current;
25 private int frequency;
27 private float powerFact;
28 private float consumption;
29 private String sensorId;
31 public RevoltReading(String sensorId, int voltage, float current, int frequency, float power, float powerFactor,
33 this.sensorId = sensorId;
34 this.voltage = voltage;
35 this.current = current;
36 this.frequency = frequency;
38 this.powerFact = powerFactor;
39 this.consumption = consumption;
43 public String toString() {
44 return "sensorId=" + sensorId + ": voltage=" + voltage + ", current=" + current + ", frequency=" + frequency
45 + ", power=" + power + ", powerFact=" + powerFact + ", consumption=" + consumption;
49 public String getSensorId() {
53 public int getVoltage() {
57 public float getCurrent() {
61 public int getFrequency() {
65 public float getPower() {
69 public float getPowerFactor() {
73 public float getConsumption() {