]> git.basschouten.com Git - openhab-addons.git/blob
15e381f902882b27cf8d11c8d95ab675d561790c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.paradoxalarm.internal.parsers;
14
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;
19
20 /**
21  * The {@link IParadoxParser} Interface for Paradox Parsers implementations
22  *
23  * @author Konstantin Polihronov - Initial contribution
24  */
25 public interface IParadoxParser {
26     PartitionState calculatePartitionState(byte[] partitionFlags);
27
28     ZoneState calculateZoneState(int id, ZoneStateFlags zoneStateFlags);
29
30     Version parseApplicationVersion(byte[] panelInfoBytes);
31
32     Version parseHardwareVersion(byte[] panelInfoBytes);
33
34     Version parseBootloaderVersion(byte[] panelInfoBytes);
35 }