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.parsers;
15 import org.openhab.binding.paradoxalarm.internal.model.PartitionState;
16 import org.openhab.binding.paradoxalarm.internal.model.Version;
17 import org.openhab.binding.paradoxalarm.internal.model.ZoneState;
18 import org.openhab.binding.paradoxalarm.internal.model.ZoneStateFlags;
21 * The {@link IParadoxParser} Interface for Paradox Parsers implementations
23 * @author Konstantin Polihronov - Initial contribution
25 public interface IParadoxParser {
26 PartitionState calculatePartitionState(byte[] partitionFlags);
28 ZoneState calculateZoneState(int id, ZoneStateFlags zoneStateFlags);
30 Version parseApplicationVersion(byte[] panelInfoBytes);
32 Version parseHardwareVersion(byte[] panelInfoBytes);
34 Version parseBootloaderVersion(byte[] panelInfoBytes);