]> git.basschouten.com Git - openhab-addons.git/blob
7f707624811bae07fd1772b38d034a4a306ad904
[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.astro.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Base class for the rise and set ranges.
19  *
20  * @author Gerhard Riegler - Initial contribution
21  */
22 @NonNullByDefault
23 public abstract class RiseSet {
24     private Range rise = new Range();
25     private Range set = new Range();
26
27     /**
28      * Returns the rise range.
29      */
30     public Range getRise() {
31         return rise;
32     }
33
34     /**
35      * Sets the rise range.
36      */
37     public void setRise(Range rise) {
38         this.rise = rise;
39     }
40
41     /**
42      * Returns the set range.
43      */
44     public Range getSet() {
45         return set;
46     }
47
48     /**
49      * Sets the set range.
50      */
51     public void setSet(Range set) {
52         this.set = set;
53     }
54 }