]> git.basschouten.com Git - openhab-addons.git/blob
c0feeffa1b1938ad0d387f1e7b785116bf8a49f2
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.action;
14
15 import java.time.ZonedDateTime;
16
17 import javax.measure.quantity.Angle;
18
19 import org.eclipse.jdt.annotation.NonNullByDefault;
20 import org.eclipse.jdt.annotation.Nullable;
21 import org.openhab.core.library.types.QuantityType;
22
23 /**
24  * The {@link IAstroActions} defines the interface for all thing actions supported by the binding.
25  *
26  * @author GaĆ«l L'hopital - Initial contribution
27  */
28 @NonNullByDefault
29 public interface IAstroActions {
30     public @Nullable ZonedDateTime getEventTime(String phaseName, @Nullable ZonedDateTime date,
31             @Nullable String moment);
32
33     public @Nullable QuantityType<Angle> getAzimuth(@Nullable ZonedDateTime date);
34
35     public @Nullable QuantityType<Angle> getElevation(@Nullable ZonedDateTime date);
36 }