]> git.basschouten.com Git - openhab-addons.git/blob
514ec282b76d15fc952b01ee072788c6e4f68a13
[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.plclogo.internal.config;
14
15 import static org.openhab.binding.plclogo.internal.PLCLogoBindingConstants.ANALOG_ITEM;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * The {@link PLCAnalogConfiguration} is a class for configuration
21  * of Siemens LOGO! PLC analog input/outputs blocks.
22  *
23  * @author Alexander Falkenstern - Initial contribution
24  */
25 @NonNullByDefault
26 public class PLCAnalogConfiguration extends PLCDigitalConfiguration {
27
28     private Integer threshold = 0;
29
30     /**
31      * Get Siemens LOGO! blocks update threshold.
32      *
33      * @return Configured Siemens LOGO! update threshold
34      */
35     public Integer getThreshold() {
36         return threshold;
37     }
38
39     /**
40      * Set Siemens LOGO! blocks update threshold.
41      *
42      * @param threshold
43      */
44     public void setThreshold(final Integer threshold) {
45         this.threshold = threshold;
46     }
47
48     @Override
49     public String getChannelType() {
50         return ANALOG_ITEM;
51     }
52 }