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.nibeheatpump.internal.models;
16 * Class for VariableInformation
18 * @author Pauli Anttila - Initial contribution
20 public class VariableInformation {
22 public enum NibeDataType {
37 public NibeDataType dataType;
39 public String variable;
41 public VariableInformation() {
44 public VariableInformation(int factor, NibeDataType dataType, Type type, String variable) {
46 this.dataType = dataType;
48 this.variable = variable;
51 public static VariableInformation getVariableInfo(PumpModel model, int key) {
54 return F1X45.getVariableInfo(key);
56 return F1X55.getVariableInfo(key);
58 return SMO40.getVariableInfo(key);
60 return F750.getVariableInfo(key);
62 return F470.getVariableInfo(key);
69 public String toString() {
72 str += "Factor = " + factor;
73 str += ", DataType = " + dataType;
74 str += ", Type = " + type;
75 str += ", VariableName = " + variable;