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.paradoxalarm.internal.model;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
19 * The {@link Entity} Entity - base abstract class for Paradox entities (Partitions, zones, etc).
20 * Extend this class and add entity specific data (states, troubles, etc).
22 * @author Konstantin Polihronov - Initial contribution
24 public abstract class Entity {
25 private final Logger logger = LoggerFactory.getLogger(Entity.class);
27 private ParadoxPanel panel;
31 public Entity(ParadoxPanel panel, int id, String label) {
34 this.label = label.trim();
35 logger.debug("Creating entity with label: {} and ID: {}", label, id);
42 public void setId(int id) {
46 public String getLabel() {
50 public void setLabel(String label) {
54 public ParadoxPanel getPanel() {
59 public String toString() {
60 return "Entity [id=" + id + ", label=" + label + "]";