[openrtm-commit:03315] r1121 - in trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples: ConfigSample ExtTrigger GUIIn SeqIO SimpleService SinCosOut

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 3月 28日 (水) 15:16:15 JST


Author: t-katami
Date: 2018-03-28 15:16:15 +0900 (Wed, 28 Mar 2018)
New Revision: 1121

Modified:
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ConfigSample/ConfigSample.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleIn.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleOut.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIIn.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqIn.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqOut.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceConsumer.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceProvider.java
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SinCosOut/SinCosOut.java
Log:
[example,] Added registerModule.

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ConfigSample/ConfigSample.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ConfigSample/ConfigSample.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ConfigSample/ConfigSample.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class ConfigSample implements RtcNewFunc, RtcDeleteFunc {
 //  Module specification
@@ -38,4 +39,9 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, new ConfigSample(), new ConfigSample());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleIn.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleIn.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleIn.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class ConsoleIn implements RtcNewFunc, RtcDeleteFunc {
 
@@ -30,4 +31,9 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, new ConsoleIn(), new ConsoleIn());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleOut.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleOut.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/ExtTrigger/ConsoleOut.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class ConsoleOut implements RtcNewFunc, RtcDeleteFunc {
 
@@ -31,4 +32,9 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, new ConsoleOut(), new ConsoleOut());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIIn.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIIn.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/GUIIn/GUIIn.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -5,6 +5,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class GUIIn implements RtcNewFunc, RtcDeleteFunc {
 
@@ -32,4 +33,9 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, new GUIIn(), new GUIIn());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqIn.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqIn.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqIn.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class SeqIn implements RtcNewFunc, RtcDeleteFunc {
 //  Module specification
@@ -30,4 +31,9 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, new SeqIn(), new SeqIn());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqOut.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqOut.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SeqIO/SeqOut.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class SeqOut implements RtcNewFunc, RtcDeleteFunc {
 //  Module specification
@@ -30,4 +31,9 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, new SeqOut(), new SeqOut());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceConsumer.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceConsumer.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceConsumer.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class MyServiceConsumer implements RtcNewFunc, RtcDeleteFunc {
 
@@ -18,7 +19,7 @@
             "category",          "Generic",
             "activity_type",     "DataFlowComponent",
             "max_instance",      "10",
-            "language",          "C++",
+            "language",          "Java",
             "lang_type",         "compile",
             ""
             };
@@ -31,4 +32,12 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, 
+                                new MyServiceConsumer(), 
+                                new MyServiceConsumer());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceProvider.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceProvider.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleService/MyServiceProvider.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -4,6 +4,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class MyServiceProvider implements RtcNewFunc, RtcDeleteFunc {
 
@@ -18,7 +19,7 @@
             "category",          "Generic",
             "activity_type",     "DataFlowComponent",
             "max_instance",      "10",
-            "language",          "C++",
+            "language",          "Java",
             "lang_type",         "compile",
             ""
             };
@@ -31,4 +32,11 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, 
+                                new MyServiceProvider(), 
+                                new MyServiceProvider());
+    }
 }

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SinCosOut/SinCosOut.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SinCosOut/SinCosOut.java	2018-03-28 06:07:07 UTC (rev 1120)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/RTMExamples/SinCosOut/SinCosOut.java	2018-03-28 06:16:15 UTC (rev 1121)
@@ -5,6 +5,7 @@
 import jp.go.aist.rtm.RTC.RTObject_impl;
 import jp.go.aist.rtm.RTC.RtcDeleteFunc;
 import jp.go.aist.rtm.RTC.RtcNewFunc;
+import jp.go.aist.rtm.RTC.util.Properties;
 
 public class SinCosOut implements RtcNewFunc, RtcDeleteFunc {
 
@@ -32,4 +33,11 @@
     public void deleteRtc(RTObject_impl rtcBase) {
         rtcBase = null;
     }
+    public void registerModule() {
+        Properties prop = new Properties(component_conf);
+        final Manager manager = Manager.instance();
+        manager.registerFactory(prop, 
+                                new SinCosOut(), 
+                                new SinCosOut());
+    }
 }



openrtm-commit メーリングリストの案内