[openrtm-commit:00513] r610 - branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 12月 22日 (木) 15:28:45 JST
Author: fsi-katami
Date: 2011-12-22 15:28:44 +0900 (Thu, 22 Dec 2011)
New Revision: 610
Added:
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListener.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListenerHolder.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListener.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListenerHolder.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListeners.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListener.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListenerHolder.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListener.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListenerHolder.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListener.java
branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListenerHolder.java
Log:
Implemented LocalService. refs #2301
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListener.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListener.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListener.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,81 @@
+package jp.go.aist.rtm.RTC;
+
+import jp.go.aist.rtm.RTC.util.Properties;
+
+ /**
+ * {@.ja LocalServiceActionListener クラス}
+ * {@.en LocalServiceActionListener class}
+ * <p>
+ * {@.ja 各アクションに対応するユーザーコードが呼ばれる直前のタイミング
+ * でコールされるリスなクラスの基底クラス。
+ *
+ * - ADD_PORT:
+ * - REMOVE_PORT:}
+ * {@.en This class is abstract base class for listener classes that
+ * provides callbacks for various events in rtobject.}
+ */
+public class LocalServiceActionListener {
+ /**
+ * {@.ja preServiceRegister コールバック関数}
+ * {@.en preServiceRegister callback function}
+ */
+ public void preServiceRegister(String service_name) {
+ }
+
+ /**
+ * {@.ja postServiceRegister コールバック関数}
+ * {@.en postServiceRegister callback function}
+ */
+ public void postServiceRegister(String service_name,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja preServiceInit コールバック関数}
+ * {@.en preServiceInit callback function}
+ */
+ public void preServiceInit(Properties prop,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja postServiceInit コールバック関数}
+ * {@.en postServiceInit callback function}
+ */
+ public void postServiceInit(Properties prop,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja preServiceReinit コールバック関数}
+ * {@.en preServiceReinit callback function}
+ */
+ public void preServiceReinit(Properties prop,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja postServiceReinit コールバック関数}
+ * {@.en postServiceReinit callback function}
+ */
+ public void postServiceReinit(Properties prop,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja postServiceFinalize コールバック関数}
+ * {@.en postServiceFinalize callback function}
+ */
+ public void postServiceFinalize(String service_name,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja preServiceFinalize コールバック関数}
+ * {@.en preServiceFinalize callback function}
+ */
+ public void preServiceFinalize(String service_name,
+ LocalServiceBase service){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListenerHolder.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListenerHolder.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/LocalServiceActionListenerHolder.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,83 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Observable;
+
+import jp.go.aist.rtm.RTC.util.Properties;
+
+ /**
+ * {@.ja LocalServiceActionListenerHolder クラス}
+ * {@.en LocalServiceActionListenerHolder class}
+ * <p>
+ * {@.ja 各アクションに対応するユーザーコードが呼ばれる直前のタイミング
+ * でコールされるリスなクラスの基底クラス。
+ *
+ * - ADD_PORT:
+ * - REMOVE_PORT:}
+ * {@.en This class is abstract base class for listener classes that
+ * provides callbacks for various events in rtobject.}
+ *
+ */
+public class LocalServiceActionListenerHolder extends Observable {
+
+ // registration instance of service to svc admin
+ /**
+ * {@.ja preServiceRegister コールバック関数}
+ * {@.en preServiceRegister callback function}
+ */
+ public void preServiceRegister(String service_name){
+ }
+
+ /**
+ * {@.ja postServiceRegister コールバック関数}
+ * {@.en postServiceRegister callback function}
+ */
+ public void postServiceRegister(String service_name,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja preServiceInit コールバック関数}
+ * {@.en preServiceInit callback function}
+ */
+ public void preServiceInit(Properties prop,
+ LocalServiceBase service){
+ }
+ /**
+ * {@.ja postServiceInit コールバック関数}
+ * {@.en postServiceInit callback function}
+ */
+ public void postServiceInit(Properties prop,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja preServiceReinit コールバック関数}
+ * {@.en preServiceReinit callback function}
+ */
+ public void preServiceReinit(Properties prop,
+ LocalServiceBase service){
+ }
+ /**
+ * {@.ja postServiceReinit コールバック関数}
+ * {@.en postServiceReinit callback function}
+ */
+ public void postServiceReinit(Properties prop,
+ LocalServiceBase service){
+ }
+
+ /**
+ * {@.ja postServiceFinalize コールバック関数}
+ * {@.en postServiceFinalize callback function}
+ */
+ public void postServiceFinalize(String service_name,
+ LocalServiceBase service){
+ }
+ /**
+ * {@.ja preServiceFinalize コールバック関数}
+ * {@.en preServiceFinalize callback function}
+ */
+ public void preServiceFinalize(String service_name,
+ LocalServiceBase service){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListener.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListener.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListener.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,43 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Observable;
+import java.util.Observer;
+ /**
+ * {@.ja ManagerActionListener}
+ * {@.en ManagerActionListener}
+ * <p>
+ * {@.ja - マネージャShutdownの直前: void onPreShutdown()
+ * - マネージャShutdownの直後: void onPostShutdown()
+ * - マネージャの再初期化直前: void onPreReinit()
+ * - マネージャの再初期化直後: void onPostReinit()}
+ *
+ */
+public abstract class ManagerActionListener implements Observer{
+ /**
+ * {@.ja preShutdown コールバック関数}
+ * {@.en preShutdown callback function}
+ */
+ public void preShutdown() {
+ }
+
+ /**
+ * {@.ja postShutdown コールバック関数}
+ * {@.en postShutdown callback function}
+ */
+ public void postShutdown(){
+ }
+
+ /**
+ * {@.ja preReinit コールバック関数}
+ * {@.en preReinit callback function}
+ */
+ public void preReinit(){
+ }
+
+ /**
+ * {@.ja postReinit コールバック関数}
+ * {@.en postReinit callback function}
+ */
+ public void postReinit(){
+ }
+}
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListenerHolder.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListenerHolder.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListenerHolder.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,42 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Observable;
+import java.util.Observer;
+
+
+ /**
+ * {@.ja ManagerActionListenerHolder クラス}
+ * {@.en ManagerActionListenerHolder class}
+ */
+public class ManagerActionListenerHolder extends Observable {
+
+ /**
+ * {@.ja preShutdown コールバック関数}
+ * {@.en preShutdown callback function}
+ */
+ public void preShutdown(){
+ }
+
+ /**
+ * {@.ja postShutdown コールバック関数}
+ * {@.en postShutdown callback function}
+ */
+ public void postShutdown() {
+ }
+
+ /**
+ * {@.ja preReinit コールバック関数}
+ * {@.en preReinit callback function}
+ */
+ public void preReinit(){
+ }
+
+ /**
+ * {@.ja postReinit コールバック関数}
+ * {@.en postReinit callback function}
+ */
+ public void postReinit(){
+ }
+ };
+
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListeners.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListeners.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ManagerActionListeners.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,14 @@
+package jp.go.aist.rtm.RTC;
+ /**
+ * {@.ja ManagerActionListeners クラス}
+ * {@.en ManagerActionListeners class}
+ */
+ class ManagerActionListeners
+ {
+ public ManagerActionListenerHolder manager_;
+ public ModuleActionListenerHolder module_;
+ public RtcLifecycleActionListenerHolder rtclifecycle_;
+ public NamingActionListenerHolder naming_;
+ public LocalServiceActionListenerHolder localservice_;
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListener.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListener.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListener.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,39 @@
+package jp.go.aist.rtm.RTC;
+ /**
+ * {@.ja ModuleActionListener クラス}
+ * {@.en ModuleActionListener class}
+ *
+ */
+public class ModuleActionListener {
+
+ /**
+ * {@.ja preLoad コールバック関数}
+ * {@.en preLoad callback function}
+ */
+ public void preLoad(String modname,
+ String funcname){
+ }
+
+ /**
+ * {@.ja postLoad コールバック関数}
+ * {@.en postLoad callback function}
+ */
+ public void postLoad(String modname,
+ String funcname){
+ }
+
+ /**
+ * {@.ja preUnload コールバック関数}
+ * {@.en preUnload callback function}
+ */
+ public void preUnload(String modname){
+ }
+
+ /**
+ * {@.ja postUnload コールバック関数}
+ * {@.en postUnload callback function}
+ */
+ public void postUnload(String modname){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListenerHolder.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListenerHolder.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ModuleActionListenerHolder.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,42 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Observable;
+import java.util.Observer;
+
+import jp.go.aist.rtm.RTC.util.Properties;
+ /**
+ * {@.ja ModuleActionListenerHolder クラス}
+ * {@.en ModuleActionListenerHolder class}
+ *
+ */
+public class ModuleActionListenerHolder extends Observable {
+ /**
+ * {@.ja preLoad コールバック関数}
+ * {@.en preLoad callback function}
+ */
+ public void preLoad(String modname,
+ String funcname){
+ }
+
+ /**
+ * {@.ja postLoad コールバック関数}
+ * {@.en postLoad callback function}
+ */
+ public void postLoad(String modname,
+ String funcname){
+ }
+ /**
+ * {@.ja preUnload コールバック関数}
+ * {@.en preUnload callback function}
+ */
+ public void preUnload(String modname){
+ }
+
+ /**
+ * {@.ja postUnload コールバック関数}
+ * {@.en postUnload callback function}
+ */
+ public void postUnload(String modname){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListener.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListener.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListener.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,60 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Vector;
+
+ /**
+ * {@.ja NamingActionListener クラス}
+ * {@.en NamingActionListener class}
+ * <p>
+ * {@.ja 各アクションに対応するユーザーコードが呼ばれる直前のタイミング
+ * でコールされるリスなクラスの基底クラス。
+ *
+ * Registration系
+ * - PRE_NS_REGISTER: RTCの名前の登録の直前 bool (coil::vstring&)
+ * - POST_NS_REGISTER: RTCの名前の登録の直後 bool (coil::vstring&)
+ * - PRE_NS_UNREGISTER: RTCの名前の登録の直前 bool (coil::vstring&)
+ * - POST_NS_UNREGISTER: RTCの名前の登録の直後 bool (coil::vstring&)
+ *
+ * - ADD_PORT:
+ * - REMOVE_PORT:}
+ *
+ *
+ * {@.en This class is abstract base class for listener classes that
+ * provides callbacks for various events in rtobject.}
+ *
+ */
+public class NamingActionListener {
+
+ /**
+ * {@.ja preBind コールバック関数}
+ * {@.en preBind callback function}
+ */
+ public void preBind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+ /**
+ * {@.ja postBind コールバック関数}
+ * {@.en postBind callback function}
+ */
+ public void postBind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+
+ /**
+ * {@.ja preUnbind コールバック関数}
+ * {@.en preUnbind callback function}
+ */
+ public void preUnbind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+
+
+ /**
+ * {@.ja postUnbind コールバック関数}
+ * {@.en postUnbind callback function}
+ */
+ public void postUnbind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListenerHolder.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListenerHolder.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/NamingActionListenerHolder.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,49 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Observable;
+import java.util.Observer;
+
+import java.util.Vector;
+
+ /**
+ * {@.ja NamingActionListenerHolder クラス}
+ * {@.en NamingActionListenerHolder class}
+ * <p>
+ * {@.en This class is abstract base class for listener classes that
+ * provides callbacks for various events in rtobject.}
+ *
+ */
+public class NamingActionListenerHolder extends Observable {
+
+ /**
+ * {@.ja preBind コールバック関数}
+ * {@.en preBind callback function}
+ */
+ public void preBind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+ /**
+ * {@.ja postBind コールバック関数}
+ * {@.en postBind callback function}
+ */
+ public void postBind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+
+ /**
+ * {@.ja preUnbind コールバック関数}
+ * {@.en preUnbind callback function}
+ */
+ public void preUnbind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+
+ /**
+ * {@.ja postUnbind コールバック関数}
+ * {@.en postUnbind callback function}
+ */
+ public void postUnbind(RTObject_impl rtobj,
+ Vector<String> name){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListener.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListener.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListener.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,70 @@
+package jp.go.aist.rtm.RTC;
+
+import jp.go.aist.rtm.RTC.util.Properties;
+
+ /**
+ * {@.ja RtcLifecycleActionListener クラス}
+ * {@.en RtcLifecycleActionListener class}
+ * <p>
+ * {@.ja RTC系
+ * - RTC生成の直前 bool (std::string&)
+ * void preCreate(std::string& args) = 0;
+ * - RTC生成の直後 bool (RTObject_impl*)
+ * void postCreate(RTObject_impl*) = 0;
+ * - RTCのコンフィグ直前 bool (coil::Properties& prop)
+ * void preConfigure(coil::Properties& prop) = 0;
+ * - RTCのコンフィグ直後 bool (coil::Properties& prop)
+ * void postConfigure(coil::Properties& prop) = 0;
+ * - RTCの初期化の直前 bool (void)
+ * void preInitialize(void) = 0;
+ * - RTCの初期化の直後 bool (void)
+ * void postInitialize(void) = 0;}
+ * {@.en This class is abstract base class for listener classes that
+ * provides callbacks for various events in rtobject.}
+ *
+ *
+ */
+public class RtcLifecycleActionListener {
+ /**
+ * {@.ja preCreate コールバック関数}
+ * {@.en preCreate callback function}
+ */
+ public void preCreate(String args){
+ }
+
+ /**
+ * {@.ja postCreate コールバック関数}
+ * {@.en postCreate callback function}
+ */
+ public void postCreate(RTObject_impl rtobj){
+ }
+
+ /**
+ * {@.ja preConfigure コールバック関数}
+ * {@.en preConfigure callback function}
+ */
+ public void preConfigure(Properties prop){
+ }
+
+ /**
+ * {@.ja postConfigure コールバック関数}
+ * {@.en postConfigure callback function}
+ */
+ public void postConfigure(Properties prop){
+ }
+
+ /**
+ * {@.ja preInitialize コールバック関数}
+ * {@.en preInitialize callback function}
+ */
+ public void preInitialize(){
+ }
+
+ /**
+ * {@.ja postInitialize コールバック関数}
+ * {@.en postInitialize callback function}
+ */
+ public void postInitialize(){
+ }
+ };
+
Added: branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListenerHolder.java
===================================================================
--- branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListenerHolder.java (rev 0)
+++ branches/work/ForLocalService/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/RtcLifecycleActionListenerHolder.java 2011-12-22 06:28:44 UTC (rev 610)
@@ -0,0 +1,59 @@
+package jp.go.aist.rtm.RTC;
+
+import java.util.Observable;
+import java.util.Observer;
+
+import jp.go.aist.rtm.RTC.util.Properties;
+
+ /**
+ * {@.ja RtcLifecycleActionListenerHolder クラス}
+ * {@.en RtcLifecycleActionListenerHolder class}
+ * <p>
+ * {@.en This class is abstract base class for listener classes that
+ * provides callbacks for various events in rtobject.}
+ *
+ */
+public class RtcLifecycleActionListenerHolder extends Observable {
+ /**
+ * {@.ja preCreate コールバック関数}
+ * {@.en preCreate callback function}
+ */
+ public void preCreate(String args){
+ }
+
+ /**
+ * {@.ja postCreate コールバック関数}
+ * {@.en postCreate callback function}
+ */
+ public void postCreate(RTObject_impl rtobj){
+ }
+
+ /**
+ * {@.ja preConfigure コールバック関数}
+ * {@.en preConfigure callback function}
+ */
+ public void preConfigure(Properties prop){
+ }
+
+ /**
+ * {@.ja postConfigure コールバック関数}
+ * {@.en postConfigure callback function}
+ */
+ public void postConfigure(Properties prop){
+ }
+
+ /**
+ * {@.ja preInitialize コールバック関数}
+ * {@.en preInitialize callback function}
+ */
+ public void preInitialize(){
+ }
+
+ /**
+ * {@.ja postInitialize コールバック関数}
+ * {@.en postInitialize callback function}
+ */
+ public void postInitialize(){
+ }
+ };
+
openrtm-commit メーリングリストの案内