Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[semantics] Added properties Distance and Angle #2021

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bundles/org.openhab.core.semantics/model/SemanticTags.csv
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Property,Opening,,Opening,,
Property,Timestamp,,Timestamp,,
Property,Ultraviolet,,Ultraviolet,UV,
Property,Vibration,,Vibration,,
Property,Distance,,Distance,Length,
Property,Angle,,Angle,Gradient,
Point,Alarm,,Alarm,,
Point,Control,,Control,,
Point,Switch,Control,Switch,,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright (c) 2010-2020 Contributors to the openHAB project
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an outdated license header (saying 2020 instead of 2021). Does our generator script need an update?

*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.core.semantics.model.property;

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.core.semantics.model.Property;
import org.openhab.core.semantics.model.TagInfo;

/**
* This class defines a Angle.
*
* @author Generated from generateTagClasses.groovy - Initial contribution
*/
@NonNullByDefault
@TagInfo(id = "Property_Angle", label = "Angle", synonyms = "Gradient", description = "")
public interface Angle extends Property {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.core.semantics.model.property;

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.core.semantics.model.Property;
import org.openhab.core.semantics.model.TagInfo;

/**
* This class defines a Distance.
*
* @author Generated from generateTagClasses.groovy - Initial contribution
*/
@NonNullByDefault
@TagInfo(id = "Property_Distance", label = "Distance", synonyms = "Length", description = "")
public interface Distance extends Property {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ public class Properties {

static {
PROPERTIES.add(Property.class);
PROPERTIES.add(Angle.class);
PROPERTIES.add(CO.class);
PROPERTIES.add(CO2.class);
PROPERTIES.add(ColorTemperature.class);
PROPERTIES.add(Current.class);
PROPERTIES.add(Distance.class);
PROPERTIES.add(Duration.class);
PROPERTIES.add(Energy.class);
PROPERTIES.add(Frequency.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Property_Opening=Opening
Property_Timestamp=Timestamp
Property_Ultraviolet=Ultraviolet,UV
Property_Vibration=Vibration
Property_Distance=Distance,Length
Property_Angle=Angle,Gradient
Point_Alarm=Alarm
Point_Control=Control
Point_Control_Switch=Switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Property_Opening=Er
Property_Timestamp=Zeitpunkt,Zeitpunkte
Property_Ultraviolet=Ultraviolett
Property_Vibration=Vibration,Vibrationen
Property_Distance=Entfernung,L�nge
Property_Angle=Winkel,Gradient
Point_Alarm=Alarm,Alarme
Point_Control=Regler,Bedienung,Steuerung
Point_Control_Switch=Schalter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Property_Opening=ouverture
Property_Timestamp=horodatage,heure
Property_Ultraviolet=Ultraviolet,UV
Property_Vibration=Vibration
Property_Distance=Distance
Property_Angle=Angle
Point_Alarm=alarme,alarmes
Point_Control=contr�le,contr�les
Point_Control_Switch=interrupteurs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Property_Opening=Openen
Property_Timestamp=Tijdstempel,Tijdsaanduiding
Property_Ultraviolet=Ultraviolet,UV
Property_Vibration=Vibratie
Property_Distance=Afstand
Property_Angle=Hoek
Point_Alarm=Alarm
Point_Control=Regelaar
Point_Control_Switch=Schakelaar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Property_Opening=xxx
Property_Timestamp=xxx
Property_Ultraviolet=xxx
Property_Vibration=xxx
Property_Distance=Avstand
Property_Angle=Vinkel
Point_Alarm=Alarm
Point_Control=Kontroll
Point_Control_Switch=Bryter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Property_Opening=xxx
Property_Timestamp=xxx
Property_Ultraviolet=xxx
Property_Vibration=xxx
Property_Distance=Dystans
Property_Angle=Kąt
Point_Alarm=Alarm,Alarmu,alarmowy
Point_Control=Kontrola,Zarządzanie
Point_Control_Switch=Przełącznik,Włącznik,Łącznik,Przycisk
Expand Down