[openrtm-commit:00336] r537 - branches/work/ForComponentObserverConsumer/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 8月 11日 (木) 15:54:51 JST
Author: fsi-katami
Date: 2011-08-11 15:54:51 +0900 (Thu, 11 Aug 2011)
New Revision: 537
Modified:
branches/work/ForComponentObserverConsumer/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ComponentObserverConsumer.java
Log:
Implemented ComponentObserverConsumer. refs #2051
Modified: branches/work/ForComponentObserverConsumer/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ComponentObserverConsumer.java
===================================================================
--- branches/work/ForComponentObserverConsumer/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ComponentObserverConsumer.java 2011-08-11 05:13:09 UTC (rev 536)
+++ branches/work/ForComponentObserverConsumer/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/ComponentObserverConsumer.java 2011-08-11 06:54:51 UTC (rev 537)
@@ -7,6 +7,7 @@
import OpenRTM.StatusKindHelper;
import OpenRTM.StatusKindHolder;
import OpenRTM.ComponentObserver;
+import OpenRTM.ComponentObserverHelper;
import RTC.ReturnCode_t;
@@ -31,7 +32,7 @@
*
*
*/
-public class ComponentObserverConsumer implements SdoServiceConsumerBase,CallbackFunction{
+public class ComponentObserverConsumer implements SdoServiceConsumerBase, CallbackFunction, ObjectCreator<SdoServiceConsumerBase>, ObjectDestructor{
/**
* {@.ja ctor of ComponentObserverConsumer}
* {@.en ctor of ComponentObserverConsumer}
@@ -718,7 +719,39 @@
};
+ /**
+ * <p> creator_ </p>
+ *
+ * @return Object Created instances
+ *
+ */
+ public SdoServiceConsumerBase creator_() {
+ return new ComponentObserverConsumer();
+ }
+ /**
+ * <p> destructor_ </p>
+ *
+ * @param obj The target instances for destruction
+ *
+ */
+ public void destructor_(Object obj) {
+ obj = null;
+ }
+ /**
+ * <p> ComponentObserverConsumerInit </p>
+ *
+ */
+ public static void ComponentObserverConsumerInit() {
+ final SdoServiceConsumerFactory<SdoServiceConsumerBase,String> factory
+ = SdoServiceConsumerFactory.instance();
+
+ factory.addFactory(ComponentObserverHelper.id(),
+ new ComponentObserverConsumer(),
+ new ComponentObserverConsumer());
+
+ }
+
private RTObject_impl m_rtobj;
private _SDOPackage.ServiceProfile m_profile;
private CorbaConsumer<OpenRTM.ComponentObserver> m_observer;
openrtm-commit メーリングリストの案内