[openrtm-commit:00527] r620 - branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 12月 28日 (水) 15:16:42 JST
Author: fsi-katami
Date: 2011-12-28 15:16:42 +0900 (Wed, 28 Dec 2011)
New Revision: 620
Added:
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserManagerAction.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserModuleAction.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserNamingAction.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserRtcLifeCycle.java
Modified:
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/ConsoleInComp.java
Log:
Add examples. refs #2301
Modified: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/ConsoleInComp.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/ConsoleInComp.java 2011-12-28 05:37:59 UTC (rev 619)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/ConsoleInComp.java 2011-12-28 06:16:42 UTC (rev 620)
@@ -69,6 +69,18 @@
// Initialize manager
final Manager manager = Manager.init(args);
+ UserRtcLifeCycle rtclife
+ = new UserRtcLifeCycle();
+ manager.addRtcLifecycleActionListener(rtclife);
+ UserManagerAction manageraction
+ = new UserManagerAction();
+ manager.addManagerActionListener(manageraction);
+ UserModuleAction moduleaction
+ = new UserModuleAction();
+ manager.addModuleActionListener(moduleaction);
+ UserNamingAction namingaction
+ = new UserNamingAction();
+ manager.addNamingActionListener(namingaction);
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
ConsoleInComp init = new ConsoleInComp();
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserManagerAction.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserManagerAction.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserManagerAction.java 2011-12-28 06:16:42 UTC (rev 620)
@@ -0,0 +1,27 @@
+package RTMExamples.SimpleIO;
+
+import jp.go.aist.rtm.RTC.ManagerActionListener;
+import jp.go.aist.rtm.RTC.RTObject_impl;
+import jp.go.aist.rtm.RTC.util.Properties;
+
+public class UserManagerAction extends ManagerActionListener{
+ public void operator() {
+ ;
+ }
+ public void preShutdown(){
+ System.out.println("UserManagerAction.preShutdown");
+ }
+ public void postShutdown() {
+ System.out.println("UserManagerAction.postShutdown");
+ }
+
+ public void preReinit(){
+ System.out.println("UserManagerAction.preReinit()");
+ }
+
+ public void postReinit() {
+ System.out.println("UserManagerAction.postReinit()");
+ }
+
+}
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserModuleAction.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserModuleAction.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserModuleAction.java 2011-12-28 06:16:42 UTC (rev 620)
@@ -0,0 +1,29 @@
+package RTMExamples.SimpleIO;
+
+import jp.go.aist.rtm.RTC.ModuleActionListener;
+import jp.go.aist.rtm.RTC.RTObject_impl;
+import jp.go.aist.rtm.RTC.util.Properties;
+
+public class UserModuleAction extends ModuleActionListener{
+ public void operator() {
+ ;
+ }
+ public void preLoad(String modname,
+ String funcname){
+ System.out.println("UserModuleAction.preLoad "+modname+" "+funcname);
+ }
+ public void postLoad(String modname,
+ String funcname) {
+ System.out.println("UserModuleAction.postLoad "+modname+" "+funcname);
+ }
+
+ public void preUnload(String modname){
+ System.out.println("UserModuleAction.preUnload() "+modname );
+ }
+
+ public void postUnload(String modname) {
+ System.out.println("UserModuleAction.postUnload() "+modname);
+ }
+
+}
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserNamingAction.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserNamingAction.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserNamingAction.java 2011-12-28 06:16:42 UTC (rev 620)
@@ -0,0 +1,31 @@
+package RTMExamples.SimpleIO;
+
+import jp.go.aist.rtm.RTC.NamingActionListener;
+import jp.go.aist.rtm.RTC.RTObject_impl;
+import jp.go.aist.rtm.RTC.util.Properties;
+
+public class UserNamingAction extends NamingActionListener{
+ public void operator() {
+ ;
+ }
+ public void preBind(RTObject_impl rtobj,
+ String[] name){
+ System.out.println("UserNamingAction.preBind");
+ }
+ public void postBind(RTObject_impl rtobj,
+ String[] name) {
+ System.out.println("UserNamingAction.postBind");
+ }
+
+ public void preUnbind(RTObject_impl rtobj,
+ String[] name){
+ System.out.println("UserNamingAction.preUnbind");
+ }
+
+ public void postUnbind(RTObject_impl rtobj,
+ String[] name){
+ System.out.println("UserNamingAction.postUnbind");
+ }
+
+}
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserRtcLifeCycle.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserRtcLifeCycle.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/RTMExamples/SimpleIO/UserRtcLifeCycle.java 2011-12-28 06:16:42 UTC (rev 620)
@@ -0,0 +1,42 @@
+package RTMExamples.SimpleIO;
+
+import jp.go.aist.rtm.RTC.RtcLifecycleActionListener;
+import jp.go.aist.rtm.RTC.RTObject_impl;
+import jp.go.aist.rtm.RTC.util.Properties;
+
+public class UserRtcLifeCycle extends RtcLifecycleActionListener{
+ public void operator() {
+ ;
+ }
+ public void preCreate(String args){
+ System.out.println("UserRtcLifeCycle.preCreate("+args+")");
+ }
+ public void postCreate(RTObject_impl rtobj) {
+ System.out.println("UserRtcLifeCycle.postCreate("+rtobj+")");
+ }
+
+ public void preConfigure(Properties prop){
+ String str = new String();
+ str = prop._dump(str,prop,0);
+ System.out.println("UserRtcLifeCycle.preConfigure()");
+ System.out.println(str);
+ }
+
+ public void postConfigure(Properties prop) {
+ String str = new String();
+ str = prop._dump(str,prop,0);
+ System.out.println("UserRtcLifeCycle.postConfigure()");
+ System.out.println(str);
+ }
+
+ public void preInitialize(){
+ System.out.println("UserRtcLifeCycle.preInitialize()");
+ ;
+ }
+
+ public void postInitialize(){
+ System.out.println("UserRtcLifeCycle.postInitialize()");
+ ;
+ }
+}
+
openrtm-commit メーリングリストの案内