streampipes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zehn...@apache.org
Subject [incubator-streampipes] branch dev updated: Add gyroscope to SP vocabulary
Date Wed, 08 Jan 2020 17:54:16 GMT
This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 234b445  Add gyroscope to SP vocabulary
234b445 is described below

commit 234b445e15d8a63f0ea4b8a4b4c937fd0045df62
Author: Philipp Zehnder <zehnder@fzi.de>
AuthorDate: Wed Jan 8 18:53:47 2020 +0100

    Add gyroscope to SP vocabulary
---
 .../connect/container/master/init/AdapterMasterContainer.java        | 2 +-
 .../main/java/org/apache/streampipes/sdk/helpers/EpProperties.java   | 2 +-
 .../src/main/java/org/apache/streampipes/vocabulary/SPSensor.java    | 5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/streampipes-connect-container-master/src/main/java/org/streampipes/connect/container/master/init/AdapterMasterContainer.java
b/streampipes-connect-container-master/src/main/java/org/streampipes/connect/container/master/init/AdapterMasterContainer.java
index 2df6871..b2297cb 100644
--- a/streampipes-connect-container-master/src/main/java/org/streampipes/connect/container/master/init/AdapterMasterContainer.java
+++ b/streampipes-connect-container-master/src/main/java/org/streampipes/connect/container/master/init/AdapterMasterContainer.java
@@ -30,7 +30,7 @@ import java.util.Collections;
 
 @Configuration
 @EnableAutoConfiguration
-@Import({ AdapterMasterContainerResourceConfig.class })
+@Import({ org.apache.streampipes.connect.container.master.init.AdapterMasterContainerResourceConfig.class
})
 public class AdapterMasterContainer {
 
   private static final Logger LOG = LoggerFactory.getLogger(AdapterMasterContainer.class);
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/EpProperties.java
b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/EpProperties.java
index 0e5b9e3..f03555a 100644
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/EpProperties.java
+++ b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/EpProperties.java
@@ -320,7 +320,7 @@ public class EpProperties {
     return ep;
   }
 
-  private static EventPropertyPrimitive ep(Label label, String runtimeType, String runtimeName,
String domainProperty) {
+  public static EventPropertyPrimitive ep(Label label, String runtimeType, String runtimeName,
String domainProperty) {
     return getPreparedProperty(label, new EventPropertyPrimitive(runtimeType, runtimeName,
"", Utils.createURI
             (domainProperty)));
   }
diff --git a/streampipes-vocabulary/src/main/java/org/apache/streampipes/vocabulary/SPSensor.java
b/streampipes-vocabulary/src/main/java/org/apache/streampipes/vocabulary/SPSensor.java
index c78aed8..35d6d09 100644
--- a/streampipes-vocabulary/src/main/java/org/apache/streampipes/vocabulary/SPSensor.java
+++ b/streampipes-vocabulary/src/main/java/org/apache/streampipes/vocabulary/SPSensor.java
@@ -24,6 +24,11 @@ public class SPSensor {
   public static final String ACCELERATION_Y = "http://streampipes.org/hmi/accelerationY";
   public static final String ACCELERATION_Z = "http://streampipes.org/hmi/accelerationZ";
 
+  public static final String GYROSCOPE_X = "http://streampipes.org/hmi/gyroscopeX";
+  public static final String GYROSCOPE_Y = "http://streampipes.org/hmi/gyroscopeY";
+  public static final String GYROSCOPE_Z = "http://streampipes.org/hmi/gyroscopeZ";
+
+
   public static final String AMBIENT_LIGHT = "http://streampipes.org/hmi/ambientLight";
 
   public static final String IMAGE = "https://image.com";


Mime
View raw message