]> git.basschouten.com Git - openhab-addons.git/blob
92cdcbff5e59ad5c400a67dd5ac671828bab014a
[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;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17
18 /**
19  * The {@link AstroBindingConstants} class defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Gerhard Riegler - Initial contribution
23  * @author Amit Kumar Mondal - Made non-Instantiable
24  */
25 @NonNullByDefault
26 public final class AstroBindingConstants {
27
28     /** Constructor */
29     private AstroBindingConstants() {
30         throw new IllegalAccessError("Non-instantiable");
31     }
32
33     public static final String BINDING_ID = "astro";
34
35     private static final String SUN = "sun";
36     private static final String MOON = "moon";
37     public static final String LOCAL = "local";
38
39     // things
40     public static final ThingTypeUID THING_TYPE_SUN = new ThingTypeUID(BINDING_ID, SUN);
41     public static final ThingTypeUID THING_TYPE_MOON = new ThingTypeUID(BINDING_ID, MOON);
42
43     // events
44     public static final String EVENT_START = "START";
45     public static final String EVENT_END = "END";
46
47     public static final String EVENT_PHASE_FIRST_QUARTER = "FIRST_QUARTER";
48     public static final String EVENT_PHASE_THIRD_QUARTER = "THIRD_QUARTER";
49     public static final String EVENT_PHASE_FULL = "FULL";
50     public static final String EVENT_PHASE_NEW = "NEW";
51
52     public static final String EVENT_PERIGEE = "PERIGEE";
53     public static final String EVENT_APOGEE = "APOGEE";
54
55     // event channelIds
56     public static final String EVENT_CHANNEL_ID_MOON_PHASE = "phase#event";
57     public static final String EVENT_CHANNEL_ID_ECLIPSE = "eclipse#event";
58     public static final String EVENT_CHANNEL_ID_PERIGEE = "perigee#event";
59     public static final String EVENT_CHANNEL_ID_APOGEE = "apogee#event";
60
61     public static final String EVENT_CHANNEL_ID_RISE = "rise#event";
62     public static final String EVENT_CHANNEL_ID_SET = "set#event";
63     public static final String EVENT_CHANNEL_ID_NOON = "noon#event";
64     public static final String EVENT_CHANNEL_ID_NIGHT = "night#event";
65     public static final String EVENT_CHANNEL_ID_MORNING_NIGHT = "morningNight#event";
66     public static final String EVENT_CHANNEL_ID_ASTRO_DAWN = "astroDawn#event";
67     public static final String EVENT_CHANNEL_ID_NAUTIC_DAWN = "nauticDawn#event";
68     public static final String EVENT_CHANNEL_ID_CIVIL_DAWN = "civilDawn#event";
69     public static final String EVENT_CHANNEL_ID_ASTRO_DUSK = "astroDusk#event";
70     public static final String EVENT_CHANNEL_ID_NAUTIC_DUSK = "nauticDusk#event";
71     public static final String EVENT_CHANNEL_ID_CIVIL_DUSK = "civilDusk#event";
72     public static final String EVENT_CHANNEL_ID_EVENING_NIGHT = "eveningNight#event";
73     public static final String EVENT_CHANNEL_ID_DAYLIGHT = "daylight#event";
74
75     public static final String CHANNEL_ID_SUN_PHASE_NAME = "phase#name";
76 }