[openrtm-commit:03213] r806 - in trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java: resource/100/ConfigSet/AIST6/src resource/100/ConfigSet/AIST7/src resource/100/ConfigSet/ConfigSetType/src resource/100/ConfigSet/configset1/src resource/100/ConfigSet/configset2/src resource/100/ConfigSet/configset3/src resource/100/Multi/ConMulti/src resource/100/Multi/ProConMulti/src resource/100/Multi/ProMulti/src resource/100/base/inport1/src resource/100/base/inport2/src resource/100/base/name/src resource/100/base/outport1/src resource/100/base/outport2/src resource/100/base/service1/src resource/100/base/service2/src resource/100/build/cmake1/src resource/100/build/cmake2/src resource/100/idlinherit/inherit1/src resource/100/idlinherit/inherit2/src resource/100/idltype/type1/src resource/100/idltype/type2/src resource/100/module/serviceCon/src resource/100/module/serviceM/src resource/100/module/serviceMC/src src/jp/go/aist/rtm/rtcbuilder/java/template/java
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 3月 3日 (土) 23:15:57 JST
Author: ga
Date: 2018-03-03 23:15:57 +0900 (Sat, 03 Mar 2018)
New Revision: 806
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleName.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleName.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyService2SVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/DAQServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyService2SVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceChildSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyService2SVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceChildSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeChildSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/ComFkSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/test.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/test.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/MyServiceSVC_impl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/foo.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooComp.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooImpl.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_Comp.java.vsl
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC.java.vsl
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_SVC.java.vsl
Log:
Modified generated Codes. #4474
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleName.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleName.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleName.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class ModuleName
- * @brief ModuleDescription
+/**
+ * ModuleName
+ * <p>
+ * ModuleDescription
*/
public class ModuleName implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "ModuleName",
- "type_name", "ModuleName",
- "description", "ModuleDescription",
- "version", "1.0.0",
- "vendor", "VenderName",
- "category", "Category",
- "activity_type", "DataFlowComponent",
- "max_instance", "1",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "ModuleName",
+ "type_name", "ModuleName",
+ "description", "ModuleDescription",
+ "version", "1.0.0",
+ "vendor", "VenderName",
+ "category", "Category",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "1",
+ "language", "Java",
+ "lang_type", "compile",
// Configuration variables
"conf.default.int_param0", "0",
"conf.default.vector_param", "1.0,2.0,3.0",
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class ModuleNameComp
- * @brief Standalone component Class
+/**
+ * ModuleNameComp
+ * <p>
+ * Standalone component Class
*
*/
public class ModuleNameComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(ModuleName.component_conf);
mgr.registerFactory(prop, new ModuleName(), new ModuleName());
-
// Create a component
RTObject_impl comp = mgr.createComponent("ModuleName");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
ModuleNameComp init = new ModuleNameComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST6/src/ModuleNameImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -10,17 +10,18 @@
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.util.IntegerHolder;
import RTC.ReturnCode_t;
-/*!
- * @class ModuleNameImpl
- * @brief ModuleDescription
+/**
+ * ModuleNameImpl
+ * <p>
+ * ModuleDescription
*
*/
public class ModuleNameImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public ModuleNameImpl(Manager manager) {
+ public ModuleNameImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
@@ -27,8 +28,8 @@
}
/*!
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -43,10 +44,10 @@
bindParameter("vector_param", m_vector_param, "1.0,2.0,3.0");
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -56,7 +57,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -71,7 +72,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -86,7 +87,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -101,7 +102,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -116,7 +117,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -131,7 +132,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -146,7 +147,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -161,7 +162,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -176,7 +177,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -191,7 +192,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -222,6 +223,8 @@
*/
protected VectorHolder m_vector_param = new VectorHolder();
// </rtc-template>
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleName.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleName.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleName.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class ModuleName
- * @brief ModuleDescription
+/**
+ * ModuleName
+ * <p>
+ * ModuleDescription
*/
public class ModuleName implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "ModuleName",
- "type_name", "ModuleName",
- "description", "ModuleDescription",
- "version", "1.0.0",
- "vendor", "VenderName",
- "category", "Category",
- "activity_type", "DataFlowComponent",
- "max_instance", "1",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "ModuleName",
+ "type_name", "ModuleName",
+ "description", "ModuleDescription",
+ "version", "1.0.0",
+ "vendor", "VenderName",
+ "category", "Category",
+ "activity_type", "DataFlowComponent",
+ "max_instance", "1",
+ "language", "Java",
+ "lang_type", "compile",
// Configuration variables
"conf.default.test", "0",
// Widget
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class ModuleNameComp
- * @brief Standalone component Class
+/**
+ * ModuleNameComp
+ * <p>
+ * Standalone component Class
*
*/
public class ModuleNameComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(ModuleName.component_conf);
mgr.registerFactory(prop, new ModuleName(), new ModuleName());
-
// Create a component
RTObject_impl comp = mgr.createComponent("ModuleName");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
ModuleNameComp init = new ModuleNameComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/AIST7/src/ModuleNameImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -10,17 +10,18 @@
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.util.DoubleHolder;
import RTC.ReturnCode_t;
-/*!
- * @class ModuleNameImpl
- * @brief ModuleDescription
+/**
+ * ModuleNameImpl
+ * <p>
+ * ModuleDescription
*
*/
public class ModuleNameImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public ModuleNameImpl(Manager manager) {
+ public ModuleNameImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
@@ -27,8 +28,8 @@
}
/*!
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -42,10 +43,10 @@
bindParameter("test", m_test, "0");
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -55,7 +56,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -70,7 +71,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -85,7 +86,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -100,7 +101,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -115,7 +116,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -130,7 +131,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -145,7 +146,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -160,7 +161,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -175,7 +176,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -190,7 +191,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -215,6 +216,8 @@
*/
protected DoubleHolder m_test = new DoubleHolder();
// </rtc-template>
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.3",
- "vendor", "TA2",
- "category", "manip2",
- "activity_type", "STATIC2",
- "max_instance", "3",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.3",
+ "vendor", "TA2",
+ "category", "manip2",
+ "activity_type", "STATIC2",
+ "max_instance", "3",
+ "language", "Java",
+ "lang_type", "compile",
// Configuration variables
"conf.default.short_param", "0",
"conf.default.int_param", "1",
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -10,9 +10,10 @@
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
@@ -22,8 +23,8 @@
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/ConfigSetType/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -15,17 +15,18 @@
import jp.go.aist.rtm.RTC.util.DoubleHolder;
import jp.go.aist.rtm.RTC.util.StringHolder;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
@@ -32,8 +33,8 @@
}
/*!
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -53,10 +54,10 @@
bindParameter("str_param1", m_str_param1, "dara");
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -66,7 +67,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -81,7 +82,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -96,7 +97,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -111,7 +112,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -126,7 +127,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -141,7 +142,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -156,7 +157,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -171,7 +172,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -186,7 +187,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -201,7 +202,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -262,6 +263,8 @@
*/
protected StringHolder m_str_param1 = new StringHolder();
// </rtc-template>
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.3",
- "vendor", "TA2",
- "category", "manip2",
- "activity_type", "STATIC2",
- "max_instance", "3",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.3",
+ "vendor", "TA2",
+ "category", "manip2",
+ "activity_type", "STATIC2",
+ "max_instance", "3",
+ "language", "Java",
+ "lang_type", "compile",
// Configuration variables
"conf.default.int_param0", "0",
// Widget
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset1/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.util.IntegerHolder;
import RTC.ReturnCode_t;
-
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
-
}
-
/*!
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -47,11 +43,10 @@
bindParameter("int_param0", m_int_param0, "0");
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -61,8 +56,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -77,8 +71,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -93,8 +86,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -109,8 +101,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -125,8 +116,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -141,8 +131,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -157,8 +146,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -173,8 +161,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -189,8 +176,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -205,8 +191,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -231,31 +216,26 @@
*/
protected IntegerHolder m_int_param0 = new IntegerHolder();
// </rtc-template>
-
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.3",
- "vendor", "TA2",
- "category", "manip2",
- "activity_type", "STATIC2",
- "max_instance", "3",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.3",
+ "vendor", "TA2",
+ "category", "manip2",
+ "activity_type", "STATIC2",
+ "max_instance", "3",
+ "language", "Java",
+ "lang_type", "compile",
// Configuration variables
"conf.default.int_param0", "0",
"conf.default.int_param1", "1",
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset2/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.util.IntegerHolder;
import RTC.ReturnCode_t;
-
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
-
}
-
/*!
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -48,11 +44,10 @@
bindParameter("int_param1", m_int_param1, "1");
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -62,8 +57,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -78,8 +72,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -94,8 +87,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -110,8 +102,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -126,8 +117,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -142,8 +132,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -158,8 +147,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -174,8 +162,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -190,8 +177,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -206,8 +192,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -238,31 +223,26 @@
*/
protected IntegerHolder m_int_param1 = new IntegerHolder();
// </rtc-template>
-
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.3",
- "vendor", "TA2",
- "category", "manip2",
- "activity_type", "STATIC2",
- "max_instance", "3",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.3",
+ "vendor", "TA2",
+ "category", "manip2",
+ "activity_type", "STATIC2",
+ "max_instance", "3",
+ "language", "Java",
+ "lang_type", "compile",
// Configuration variables
"conf.default.int_param0", "0",
"conf.default.int_param1", "1",
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/ConfigSet/configset3/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,7 +6,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.util.IntegerHolder;
@@ -13,28 +12,26 @@
import jp.go.aist.rtm.RTC.util.DoubleHolder;
import jp.go.aist.rtm.RTC.util.StringHolder;
import RTC.ReturnCode_t;
-
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
}
-
/*!
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -52,11 +49,10 @@
bindParameter("str_param1", m_str_param1, "dara");
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -66,8 +62,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -82,8 +77,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -98,8 +92,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -114,8 +107,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -130,8 +122,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -146,8 +137,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -162,8 +152,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -178,8 +167,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -194,8 +182,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -210,8 +197,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -260,31 +246,26 @@
*/
protected StringHolder m_str_param1 = new StringHolder();
// </rtc-template>
-
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief test module
+/**
+ * foo
+ * <p>
+ * test module
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "test module",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "sample",
- "activity_type", "STATIC",
- "max_instance", "2",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "test module",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "sample",
+ "activity_type", "STATIC",
+ "max_instance", "2",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ConMulti/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -21,17 +21,18 @@
import jp.go.aist.rtm.RTC.port.CorbaConsumer;
import jp.go.aist.rtm.RTC.port.CorbaPort;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief test module
+/**
+ * fooImpl
+ * <p>
+ * test module
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_in1_val = new TimedShort();
@@ -47,8 +48,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -74,10 +75,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -87,7 +88,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -102,7 +103,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -117,7 +118,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -132,7 +133,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -147,7 +148,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -162,7 +163,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -177,7 +178,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -192,7 +193,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -207,7 +208,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -222,7 +223,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -238,6 +239,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_in1_val;
@@ -282,55 +285,55 @@
protected DAQService m_myservice2;
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyService2SVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyService2SVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyService2SVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService2.idl
*
*/
-/*!
- * @class MyService2SVC_impl
+/**
+ * MyService2SVC_impl
+ * <p>
* Example class implementing IDL interface MyService2
*/
public class MyService2SVC_impl extends MyService2POA{
@@ -13,7 +14,6 @@
public MyService2SVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setKpGain(float gainkp)>"
}
-
public float getKpGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getKpGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief test module
+/**
+ * foo
+ * <p>
+ * test module
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "test module",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "sample",
- "activity_type", "STATIC",
- "max_instance", "2",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "test module",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "sample",
+ "activity_type", "STATIC",
+ "max_instance", "2",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProConMulti/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -24,17 +24,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief test module
+/**
+ * fooImpl
+ * <p>
+ * test module
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_in1_val = new TimedShort();
@@ -52,8 +53,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -71,8 +72,8 @@
// Set service provider to Ports
try {
- m_MySVProPort.registerProvider("myserviceP1", "MyService", m_myserviceP1);
- m_MySVPro2Port.registerProvider("myserviceP2", "MyService2", m_myserviceP2);
+ m_MySVProPort.registerProvider("myserviceP1", "MyService", m_myserviceP1);
+ m_MySVPro2Port.registerProvider("myserviceP2", "MyService2", m_myserviceP2);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -93,10 +94,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -106,7 +107,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -121,7 +122,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -136,7 +137,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -151,7 +152,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -166,7 +167,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -181,7 +182,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -196,7 +197,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -211,7 +212,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -226,7 +227,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -241,7 +242,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -257,6 +258,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_in1_val;
@@ -313,55 +316,55 @@
protected DAQService m_myservice2;
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/DAQServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/DAQServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/DAQServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of DAQService.idl
*
*/
-/*!
- * @class DAQServiceSVC_impl
+/**
+ * DAQServiceSVC_impl
+ * <p>
* Example class implementing IDL interface DAQService
*/
public class DAQServiceSVC_impl extends DAQServicePOA{
@@ -13,7 +14,6 @@
public DAQServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -22,12 +22,10 @@
// TODO "Code missing in function <int setCommand(int com, double par)>"
return 0;
}
-
public short getCommand() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <short getCommand()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief test module
+/**
+ * foo
+ * <p>
+ * test module
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "test module",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "sample",
- "activity_type", "STATIC",
- "max_instance", "2",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "test module",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "sample",
+ "activity_type", "STATIC",
+ "max_instance", "2",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/Multi/ProMulti/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -23,17 +23,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief test module
+/**
+ * fooImpl
+ * <p>
+ * test module
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_in1_val = new TimedShort();
@@ -49,8 +50,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -68,8 +69,8 @@
// Set service provider to Ports
try {
- m_MySVProPort.registerProvider("myservice0", "MyService", m_myservice0);
- m_MySVPro2Port.registerProvider("myservice2", "DAQService", m_myservice2);
+ m_MySVProPort.registerProvider("myservice0", "MyService", m_myservice0);
+ m_MySVPro2Port.registerProvider("myservice2", "DAQService", m_myservice2);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -86,10 +87,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -99,7 +100,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -114,7 +115,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -129,7 +130,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -144,7 +145,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -159,7 +160,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -174,7 +175,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -189,7 +190,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -204,7 +205,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -219,7 +220,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -234,7 +235,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -250,6 +251,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_in1_val;
@@ -292,55 +295,55 @@
// <rtc-template block="consumer_declare">
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport1/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -17,17 +17,18 @@
import jp.go.aist.rtm.RTC.port.InPort;
import jp.go.aist.rtm.RTC.util.DataRef;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -38,8 +39,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -54,10 +55,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -67,7 +68,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -82,7 +83,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -97,7 +98,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -112,7 +113,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -127,7 +128,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -142,7 +143,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -157,7 +158,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -172,7 +173,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -187,7 +188,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -202,7 +203,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -218,6 +219,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -243,55 +246,55 @@
// <rtc-template block="consumer_declare">
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/inport2/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -18,17 +18,18 @@
import jp.go.aist.rtm.RTC.port.InPort;
import jp.go.aist.rtm.RTC.util.DataRef;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -43,8 +44,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -60,10 +61,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -73,7 +74,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -88,7 +89,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -103,7 +104,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -118,7 +119,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -133,7 +134,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -148,7 +149,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -163,7 +164,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -178,7 +179,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -193,7 +194,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -208,7 +209,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -224,6 +225,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -254,55 +257,55 @@
// <rtc-template block="consumer_declare">
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/name/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,31 +6,28 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
-
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
// </rtc-template>
}
-
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -43,11 +40,10 @@
// </rtc-template>
// return super.onInitialize();
// }
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -57,8 +53,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -73,8 +68,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -89,8 +83,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -105,8 +98,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -121,8 +113,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -137,8 +128,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -153,8 +143,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -169,8 +158,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -185,8 +173,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -201,8 +188,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -218,30 +204,26 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport1/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -19,17 +19,18 @@
import jp.go.aist.rtm.RTC.port.OutPort;
import jp.go.aist.rtm.RTC.util.DataRef;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -47,8 +48,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -67,10 +68,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -80,7 +81,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -95,7 +96,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -110,7 +111,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -125,7 +126,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -140,7 +141,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -155,7 +156,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -170,7 +171,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -185,7 +186,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -200,7 +201,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -215,7 +216,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -231,6 +232,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -266,55 +269,55 @@
// <rtc-template block="consumer_declare">
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/outport2/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -20,17 +20,18 @@
import jp.go.aist.rtm.RTC.port.OutPort;
import jp.go.aist.rtm.RTC.util.DataRef;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -51,8 +52,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -72,10 +73,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -85,7 +86,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -100,7 +101,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -115,7 +116,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -130,7 +131,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -145,7 +146,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -160,7 +161,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -175,7 +176,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -190,7 +191,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -205,7 +206,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -220,7 +221,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -236,6 +237,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -276,55 +279,55 @@
// <rtc-template block="consumer_declare">
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service1/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -24,17 +24,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -56,8 +57,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -77,7 +78,7 @@
// Set service provider to Ports
try {
- m_svPortPort.registerProvider("acc", "MyService", m_acc);
+ m_svPortPort.registerProvider("acc", "MyService", m_acc);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -93,10 +94,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -106,7 +107,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -121,7 +122,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -136,7 +137,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -151,7 +152,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -166,7 +167,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -181,7 +182,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -196,7 +197,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -211,7 +212,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -226,7 +227,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -241,7 +242,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -257,6 +258,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -303,55 +306,55 @@
// <rtc-template block="consumer_declare">
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/base/service2/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -25,17 +25,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -58,8 +59,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -79,7 +80,7 @@
// Set service provider to Ports
try {
- m_svPortPort.registerProvider("acc", "MyService", m_acc);
+ m_svPortPort.registerProvider("acc", "MyService", m_acc);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -97,10 +98,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -110,7 +111,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -125,7 +126,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -140,7 +141,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -155,7 +156,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -170,7 +171,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -185,7 +186,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -200,7 +201,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -215,7 +216,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -230,7 +231,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -245,7 +246,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -261,6 +262,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -314,55 +317,55 @@
protected DAQService m_rate;
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake1/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -26,17 +26,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_InP1_val = new TimedShort();
@@ -59,8 +60,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -80,7 +81,7 @@
// Set service provider to Ports
try {
- m_svPortPort.registerProvider("acc", "MyService", m_acc);
+ m_svPortPort.registerProvider("acc", "MyService", m_acc);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -98,10 +99,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -111,7 +112,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -126,7 +127,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -141,7 +142,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -156,7 +157,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -171,7 +172,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -186,7 +187,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -201,7 +202,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -216,7 +217,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -231,7 +232,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -246,7 +247,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -262,6 +263,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
protected TimedShort m_InP1_val;
@@ -315,55 +318,55 @@
protected DAQService m_rate;
// </rtc-template>
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,38 +11,34 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief MDesc
+/**
+ * foo
+ * <p>
+ * MDesc
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "MDesc",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "Manip",
- "activity_type", "STATIC2",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "MDesc",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "Manip",
+ "activity_type", "STATIC2",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
-
public void registerModule() {
Properties prop = new Properties(component_conf);
final Manager manager = Manager.instance();
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/build/cmake2/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -14,17 +14,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class fooImpl
- * @brief MDesc
+/**
+ * fooImpl
+ * <p>
+ * MDesc
*
*/
public class fooImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_MyServiceProviderPort = new CorbaPort("MyServiceProvider");
@@ -33,8 +34,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -47,8 +48,8 @@
// Set service provider to Ports
try {
- m_MyServiceProviderPort.registerProvider("MyServiceProvider", "MyServiceChild", m_MyServiceProvider);
- m_MyServiceProviderPort.registerProvider("MyServiceProvider2", "MyServiceWithTypeChild", m_MyServiceProvider2);
+ m_MyServiceProviderPort.registerProvider("MyServiceProvider", "MyServiceChild", m_MyServiceProvider);
+ m_MyServiceProviderPort.registerProvider("MyServiceProvider2", "MyServiceWithTypeChild", m_MyServiceProvider2);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -67,10 +68,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -80,7 +81,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -95,7 +96,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -110,7 +111,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -125,7 +126,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -140,7 +141,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -155,7 +156,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -170,7 +171,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -185,7 +186,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -200,7 +201,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -215,7 +216,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -231,6 +232,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyService2SVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyService2SVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyService2SVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyService2SVC_impl
+/**
+ * MyService2SVC_impl
+ * <p>
* Example class implementing IDL interface MyService2
*/
public class MyService2SVC_impl extends MyService2POA{
@@ -13,7 +14,6 @@
public MyService2SVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceChildSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceChildSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceChildSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyServiceChildSVC_impl
+/**
+ * MyServiceChildSVC_impl
+ * <p>
* Example class implementing IDL interface MyServiceChild
*/
public class MyServiceChildSVC_impl extends MyServiceChildPOA{
@@ -13,7 +14,6 @@
public MyServiceChildSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,35 +21,29 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setPos(float pos)>"
}
-
public String[] getPos() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList1 getPos()>"
return null;
}
-
public String[] get_echo_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList1 get_echo_history()>"
return null;
}
-
public float[] get_value_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <ValueList1 get_value_history()>"
return null;
}
-
public void setGain(float gain) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -27,6 +27,5 @@
// TODO "Code missing in function <ValueList1 get_value_history()>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,34 +11,31 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief test module
+/**
+ * foo
+ * <p>
+ * test module
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "test module",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "sample",
- "activity_type", "STATIC",
- "max_instance", "2",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "test module",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "sample",
+ "activity_type", "STATIC",
+ "max_instance", "2",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit1/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,7 +6,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.port.CorbaConsumer;
@@ -15,31 +14,28 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-
-/*!
- * @class fooImpl
- * @brief test module
+/**
+ * fooImpl
+ * <p>
+ * test module
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_MyServiceProviderPort = new CorbaPort("MyServiceProvider");
m_MyServiceRequirePort = new CorbaPort("MyServiceRequire");
// </rtc-template>
-
}
-
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -52,7 +48,7 @@
// Set service provider to Ports
try {
- m_MyServiceProviderPort.registerProvider("MyServiceProvider", "MyServiceChild", m_MyServiceProvider);
+ m_MyServiceProviderPort.registerProvider("MyServiceProvider", "MyServiceChild", m_MyServiceProvider);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -70,11 +66,10 @@
// </rtc-template>
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -84,8 +79,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -100,8 +94,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -116,8 +109,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -132,8 +124,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -148,8 +139,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -164,8 +154,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -180,8 +169,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -196,8 +184,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -212,8 +199,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -228,8 +214,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -245,16 +230,16 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
/*!
@@ -265,7 +250,6 @@
protected CorbaPort m_MyServiceRequirePort;
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
/*!
@@ -273,7 +257,6 @@
protected MyServiceChildSVC_impl m_MyServiceProvider = new MyServiceChildSVC_impl();
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
protected CorbaConsumer<MyServiceChild> m_MyServiceRequireBase = new CorbaConsumer<MyServiceChild>(MyServiceChild.class);
@@ -282,6 +265,4 @@
protected MyServiceChild m_MyServiceRequire;
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyService2SVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyService2SVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyService2SVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyService2SVC_impl
+/**
+ * MyService2SVC_impl
+ * <p>
* Example class implementing IDL interface MyService2
*/
public class MyService2SVC_impl extends MyService2POA{
@@ -13,7 +14,6 @@
public MyService2SVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,12 +21,10 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceChildSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceChildSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceChildSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyServiceChildSVC_impl
+/**
+ * MyServiceChildSVC_impl
+ * <p>
* Example class implementing IDL interface MyServiceChild
*/
public class MyServiceChildSVC_impl extends MyServiceChildPOA{
@@ -13,7 +14,6 @@
public MyServiceChildSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,35 +21,29 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setPos(float pos)>"
}
-
public String[] getPos() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList1 getPos()>"
return null;
}
-
public String[] get_echo_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList1 get_echo_history()>"
return null;
}
-
public float[] get_value_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <ValueList1 get_value_history()>"
return null;
}
-
public void setGain(float gain) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setGain(float gain)>"
}
-
public float getGain() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float getGain()>"
return 0;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildMulti.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -27,6 +27,5 @@
// TODO "Code missing in function <ValueList1 get_value_history()>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeChildSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeChildSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeChildSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildWithType.idl
*
*/
-/*!
- * @class MyServiceWithTypeChildSVC_impl
+/**
+ * MyServiceWithTypeChildSVC_impl
+ * <p>
* Example class implementing IDL interface MyServiceWithTypeChild
*/
public class MyServiceWithTypeChildSVC_impl extends MyServiceWithTypeChildPOA{
@@ -13,7 +14,6 @@
public MyServiceWithTypeChildSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -21,24 +21,20 @@
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void setPos(float pos)>"
}
-
public String[] getPos() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList getPos()>"
return null;
}
-
public String[] get_echo_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList get_echo_history()>"
return null;
}
-
public float[] get_value_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <ValueList get_value_history()>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/MyServiceWithTypeSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyServiceChildWithType.idl
*
*/
-/*!
- * @class MyServiceWithTypeSVC_impl
+/**
+ * MyServiceWithTypeSVC_impl
+ * <p>
* Example class implementing IDL interface MyServiceWithType
*/
public class MyServiceWithTypeSVC_impl extends MyServiceWithTypePOA{
@@ -13,7 +14,6 @@
public MyServiceWithTypeSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -22,12 +22,10 @@
// TODO "Code missing in function <EchoList get_echo_history()>"
return null;
}
-
public float[] get_value_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <ValueList get_value_history()>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,34 +11,31 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief test module
+/**
+ * foo
+ * <p>
+ * test module
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "test module",
- "version", "1.0.1",
- "vendor", "TA",
- "category", "sample",
- "activity_type", "STATIC",
- "max_instance", "2",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "test module",
+ "version", "1.0.1",
+ "vendor", "TA",
+ "category", "sample",
+ "activity_type", "STATIC",
+ "max_instance", "2",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idlinherit/inherit2/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,7 +6,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.port.CorbaConsumer;
@@ -15,19 +14,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-
-/*!
- * @class fooImpl
- * @brief test module
+/**
+ * fooImpl
+ * <p>
+ * test module
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_MyServiceProviderPort = new CorbaPort("MyServiceProvider");
@@ -34,11 +32,10 @@
m_MyServiceRequirePort = new CorbaPort("MyServiceRequire");
// </rtc-template>
}
-
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -51,8 +48,8 @@
// Set service provider to Ports
try {
- m_MyServiceProviderPort.registerProvider("MyServiceProvider", "MyServiceChild", m_MyServiceProvider);
- m_MyServiceProviderPort.registerProvider("MyServiceProvider2", "MyServiceWithTypeChild", m_MyServiceProvider2);
+ m_MyServiceProviderPort.registerProvider("MyServiceProvider", "MyServiceChild", m_MyServiceProvider);
+ m_MyServiceProviderPort.registerProvider("MyServiceProvider2", "MyServiceWithTypeChild", m_MyServiceProvider2);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -71,11 +68,10 @@
// </rtc-template>
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -85,8 +81,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -101,8 +96,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -117,8 +111,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -133,8 +126,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -149,8 +141,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -165,8 +156,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -181,8 +171,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -197,8 +186,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -213,8 +201,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -229,8 +216,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -246,16 +232,16 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
/*!
@@ -266,7 +252,6 @@
protected CorbaPort m_MyServiceRequirePort;
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
/*!
@@ -277,7 +262,6 @@
protected MyServiceWithTypeChildSVC_impl m_MyServiceProvider2 = new MyServiceWithTypeChildSVC_impl();
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
protected CorbaConsumer<MyServiceChild> m_MyServiceRequireBase = new CorbaConsumer<MyServiceChild>(MyServiceChild.class);
@@ -290,6 +274,4 @@
protected MyServiceWithTypeChild m_MyServiceRequire2;
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/ComFkSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/ComFkSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/ComFkSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of TestIDL.idl
*
*/
-/*!
- * @class ComFkSVC_impl
+/**
+ * ComFkSVC_impl
+ * <p>
* Example class implementing IDL interface ComFk
*/
public class ComFkSVC_impl extends ComFkPOA{
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/test.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/test.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/test.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class test
- * @brief test component
+/**
+ * test
+ * <p>
+ * test component
*/
public class test implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "test",
- "type_name", "test",
- "description", "test component",
- "version", "1.0.0",
- "vendor", "S.Kurihara",
- "category", "exmple",
- "activity_type", "STATIC",
- "max_instance", "1",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "test",
+ "type_name", "test",
+ "description", "test component",
+ "version", "1.0.0",
+ "vendor", "S.Kurihara",
+ "category", "exmple",
+ "activity_type", "STATIC",
+ "max_instance", "1",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class testComp
- * @brief Standalone component Class
+/**
+ * testComp
+ * <p>
+ * Standalone component Class
*
*/
public class testComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(test.component_conf);
mgr.registerFactory(prop, new test(), new test());
-
// Create a component
RTObject_impl comp = mgr.createComponent("test");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
testComp init = new testComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type1/src/testImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -13,17 +13,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class testImpl
- * @brief test component
+/**
+ * testImpl
+ * <p>
+ * test component
*
*/
public class testImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public testImpl(Manager manager) {
+ public testImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_sV1Port = new CorbaPort("sV1");
@@ -31,8 +32,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -45,7 +46,7 @@
// Set service provider to Ports
try {
- m_sV1Port.registerProvider("sIF1", "ComFk", m_sIFv);
+ m_sV1Port.registerProvider("sIF1", "ComFk", m_sIFv);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -61,10 +62,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -74,7 +75,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -89,7 +90,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -104,7 +105,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -119,7 +120,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -134,7 +135,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -149,7 +150,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -164,7 +165,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -179,7 +180,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -194,7 +195,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -209,7 +210,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -225,6 +226,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -4,8 +4,9 @@
* @brief Service implementation code of MyService.idl
*
*/
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -13,7 +14,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -22,96 +22,80 @@
// TODO "Code missing in function <short echo01(short ss, org.omg.CORBA.ShortHolder ss2, org.omg.CORBA.ShortHolder ss3)>"
return 0;
}
-
public int echo02(int ss, org.omg.CORBA.IntHolder ss2, org.omg.CORBA.IntHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <int echo02(int ss, org.omg.CORBA.IntHolder ss2, org.omg.CORBA.IntHolder ss3)>"
return 0;
}
-
public long echo03(long ss, org.omg.CORBA.LongHolder ss2, org.omg.CORBA.LongHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <long echo03(long ss, org.omg.CORBA.LongHolder ss2, org.omg.CORBA.LongHolder ss3)>"
return 0;
}
-
public int echo04(int ss, org.omg.CORBA.IntHolder ss2, org.omg.CORBA.IntHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <int echo04(int ss, org.omg.CORBA.IntHolder ss2, org.omg.CORBA.IntHolder ss3)>"
return 0;
}
-
public long echo05(long ss, org.omg.CORBA.LongHolder ss2, org.omg.CORBA.LongHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <long echo05(long ss, org.omg.CORBA.LongHolder ss2, org.omg.CORBA.LongHolder ss3)>"
return 0;
}
-
public short echo06(short ss, org.omg.CORBA.ShortHolder ss2, org.omg.CORBA.ShortHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <short echo06(short ss, org.omg.CORBA.ShortHolder ss2, org.omg.CORBA.ShortHolder ss3)>"
return 0;
}
-
public float echo07(float ss, org.omg.CORBA.FloatHolder ss2, org.omg.CORBA.FloatHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float echo07(float ss, org.omg.CORBA.FloatHolder ss2, org.omg.CORBA.FloatHolder ss3)>"
return 0;
}
-
public double echo08(double ss, org.omg.CORBA.DoubleHolder ss2, org.omg.CORBA.DoubleHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <double echo08(double ss, org.omg.CORBA.DoubleHolder ss2, org.omg.CORBA.DoubleHolder ss3)>"
return 0;
}
-
public double echo09(double ss, org.omg.CORBA.DoubleHolder ss2, org.omg.CORBA.DoubleHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <double echo09(double ss, org.omg.CORBA.DoubleHolder ss2, org.omg.CORBA.DoubleHolder ss3)>"
return 0;
}
-
public char echo10(char ss, org.omg.CORBA.CharHolder ss2, org.omg.CORBA.CharHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <char echo10(char ss, org.omg.CORBA.CharHolder ss2, org.omg.CORBA.CharHolder ss3)>"
return 0;
}
-
public char echo11(char ss, org.omg.CORBA.CharHolder ss2, org.omg.CORBA.CharHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <char echo11(char ss, org.omg.CORBA.CharHolder ss2, org.omg.CORBA.CharHolder ss3)>"
return 0;
}
-
public byte echo12(byte ss, org.omg.CORBA.ByteHolder ss2, org.omg.CORBA.ByteHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <byte echo12(byte ss, org.omg.CORBA.ByteHolder ss2, org.omg.CORBA.ByteHolder ss3)>"
return 0;
}
-
public boolean echo13(boolean ss, org.omg.CORBA.BooleanHolder ss2, org.omg.CORBA.BooleanHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <boolean echo13(boolean ss, org.omg.CORBA.BooleanHolder ss2, org.omg.CORBA.BooleanHolder ss3)>"
return false;
}
-
public String echo14(String ss, org.omg.CORBA.StringHolder ss2, org.omg.CORBA.StringHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <String echo14(String ss, org.omg.CORBA.StringHolder ss2, org.omg.CORBA.StringHolder ss3)>"
return null;
}
-
public String echo15(String ss, org.omg.CORBA.StringHolder ss2, org.omg.CORBA.StringHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <String echo15(String ss, org.omg.CORBA.StringHolder ss2, org.omg.CORBA.StringHolder ss3)>"
return null;
}
-
public org.omg.CORBA.Any echo16(org.omg.CORBA.Any ss, org.omg.CORBA.AnyHolder ss2, org.omg.CORBA.AnyHolder ss3) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <org.omg.CORBA.Any echo16(org.omg.CORBA.Any ss, org.omg.CORBA.AnyHolder ss2, org.omg.CORBA.AnyHolder ss3)>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/test.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/test.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/test.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -11,24 +11,25 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class test
- * @brief test component
+/**
+ * test
+ * <p>
+ * test component
*/
public class test implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "test",
- "type_name", "test",
- "description", "test component",
- "version", "1.0.0",
- "vendor", "S.Kurihara",
- "category", "exmple",
- "activity_type", "STATIC",
- "max_instance", "1",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "test",
+ "type_name", "test",
+ "description", "test component",
+ "version", "1.0.0",
+ "vendor", "S.Kurihara",
+ "category", "exmple",
+ "activity_type", "STATIC",
+ "max_instance", "1",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class testComp
- * @brief Standalone component Class
+/**
+ * testComp
+ * <p>
+ * Standalone component Class
*
*/
public class testComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(test.component_conf);
mgr.registerFactory(prop, new test(), new test());
-
// Create a component
RTObject_impl comp = mgr.createComponent("test");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
testComp init = new testComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/idltype/type2/src/testImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -13,17 +13,18 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-/*!
- * @class testImpl
- * @brief test component
+/**
+ * testImpl
+ * <p>
+ * test component
*
*/
public class testImpl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public testImpl(Manager manager) {
+ public testImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_MySVProPort = new CorbaPort("MySVPro");
@@ -31,8 +32,8 @@
}
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -45,7 +46,7 @@
// Set service provider to Ports
try {
- m_MySVProPort.registerProvider("myservice", "MyService", m_myservice);
+ m_MySVProPort.registerProvider("myservice", "MyService", m_myservice);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -61,10 +62,10 @@
// </rtc-template>
return super.onInitialize();
}
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -74,7 +75,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -89,7 +90,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -104,7 +105,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -119,7 +120,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -134,7 +135,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -149,7 +150,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -164,7 +165,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -179,7 +180,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -194,7 +195,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -209,7 +210,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -225,6 +226,8 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,34 +11,31 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief ModuleDescription
+/**
+ * foo
+ * <p>
+ * ModuleDescription
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "ModuleDescription",
- "version", "1.0.0",
- "vendor", "VenderName",
- "category", "Category",
- "activity_type", "STATIC",
- "max_instance", "1",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "ModuleDescription",
+ "version", "1.0.0",
+ "vendor", "VenderName",
+ "category", "Category",
+ "activity_type", "STATIC",
+ "max_instance", "1",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceCon/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,7 +6,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.port.CorbaConsumer;
@@ -13,30 +12,27 @@
import jp.go.aist.rtm.RTC.port.CorbaPort;
import RTC.ReturnCode_t;
import SimpleService.MyService;
-
-/*!
- * @class fooImpl
- * @brief ModuleDescription
+/**
+ * fooImpl
+ * <p>
+ * ModuleDescription
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_sv_namePort = new CorbaPort("sv_name");
// </rtc-template>
-
}
-
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -55,11 +51,10 @@
// </rtc-template>
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -69,8 +64,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -85,8 +79,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -101,8 +94,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -117,8 +109,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -133,8 +124,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -149,8 +139,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -165,8 +154,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -181,8 +169,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -197,8 +184,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -213,8 +199,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -230,16 +215,16 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
/*!
@@ -247,12 +232,10 @@
protected CorbaPort m_sv_namePort;
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
protected CorbaConsumer<MyService> m_if_nameBase = new CorbaConsumer<MyService>(MyService.class);
@@ -261,6 +244,4 @@
protected MyService m_if_name;
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,17 +5,16 @@
*
*/
import SimpleService.MyServicePOA;
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface SimpleService::MyService
*/
-
public class MyServiceSVC_impl extends MyServicePOA{
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -24,29 +23,24 @@
// TODO "Code missing in function <String echo(String msg)>"
return null;
}
-
public String[] get_echo_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList get_echo_history()>"
return null;
}
-
public void set_value(float value) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void set_value(float value)>"
}
-
public float get_value() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float get_value()>"
return 0;
}
-
public float[] get_value_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <ValueList get_value_history()>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,34 +11,31 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief ModuleDescription
+/**
+ * foo
+ * <p>
+ * ModuleDescription
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "ModuleDescription",
- "version", "1.0.0",
- "vendor", "VenderName",
- "category", "Category",
- "activity_type", "UNIQUE",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "ModuleDescription",
+ "version", "1.0.0",
+ "vendor", "VenderName",
+ "category", "Category",
+ "activity_type", "UNIQUE",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceM/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,7 +6,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.port.CorbaPort;
@@ -14,30 +13,27 @@
import org.omg.PortableServer.POAPackage.ServantAlreadyActive;
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
-
-/*!
- * @class fooImpl
- * @brief ModuleDescription
+/**
+ * fooImpl
+ * <p>
+ * ModuleDescription
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_sv_namePort = new CorbaPort("sv_name");
// </rtc-template>
-
}
-
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -50,7 +46,7 @@
// Set service provider to Ports
try {
- m_sv_namePort.registerProvider("if_name", "SimpleService.MyService", m_if_name);
+ m_sv_namePort.registerProvider("if_name", "SimpleService.MyService", m_if_name);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -66,11 +62,10 @@
// </rtc-template>
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -80,8 +75,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -96,8 +90,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -112,8 +105,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -128,8 +120,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -144,8 +135,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -160,8 +150,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -176,8 +165,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -192,8 +180,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -208,8 +195,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -224,8 +210,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -241,16 +226,16 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
/*!
@@ -258,7 +243,6 @@
protected CorbaPort m_sv_namePort;
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
/*!
@@ -266,11 +250,8 @@
protected MyServiceSVC_impl m_if_name = new MyServiceSVC_impl();
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/MyServiceSVC_impl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/MyServiceSVC_impl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/MyServiceSVC_impl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,9 +5,9 @@
*
*/
import SimpleService.MyServicePOA;
-
-/*!
- * @class MyServiceSVC_impl
+/**
+ * MyServiceSVC_impl
+ * <p>
* Example class implementing IDL interface SimpleService::MyService
*/
public class MyServiceSVC_impl extends MyServicePOA{
@@ -15,7 +15,6 @@
public MyServiceSVC_impl() {
// Please add extra constructor code here.
}
-
/*
* Methods corresponding to IDL attributes and operations
*/
@@ -24,29 +23,24 @@
// TODO "Code missing in function <String echo(String msg)>"
return null;
}
-
public String[] get_echo_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <EchoList get_echo_history()>"
return null;
}
-
public void set_value(float value) {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <void set_value(float value)>"
}
-
public float get_value() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <float get_value()>"
return 0;
}
-
public float[] get_value_history() {
// Please insert your code here and remove the following warning pragma
// TODO "Code missing in function <ValueList get_value_history()>"
return null;
}
-
// End of example implementational code
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/foo.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/foo.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/foo.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -5,7 +5,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.RtcDeleteFunc;
@@ -12,34 +11,31 @@
import jp.go.aist.rtm.RTC.RtcNewFunc;
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class foo
- * @brief ModuleDescription
+/**
+ * foo
+ * <p>
+ * ModuleDescription
*/
public class foo implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
-
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "foo",
- "type_name", "foo",
- "description", "ModuleDescription",
- "version", "1.0.0",
- "vendor", "VenderName",
- "category", "Category",
- "activity_type", "UNIQUE",
- "max_instance", "5",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "foo",
+ "type_name", "foo",
+ "description", "ModuleDescription",
+ "version", "1.0.0",
+ "vendor", "VenderName",
+ "category", "Category",
+ "activity_type", "UNIQUE",
+ "max_instance", "5",
+ "language", "Java",
+ "lang_type", "compile",
""
};
// </rtc-template>
-
public RTObject_impl createRtc(Manager mgr) {
return new fooImpl(mgr);
}
-
public void deleteRtc(RTObject_impl rtcBase) {
rtcBase = null;
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooComp.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooComp.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooComp.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,34 +6,30 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.ModuleInitProc;
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-
-/*!
- * @class fooComp
- * @brief Standalone component Class
+/**
+ * fooComp
+ * <p>
+ * Standalone component Class
*
*/
public class fooComp implements ModuleInitProc {
-
public void myModuleInit(Manager mgr) {
Properties prop = new Properties(foo.component_conf);
mgr.registerFactory(prop, new foo(), new foo());
-
// Create a component
RTObject_impl comp = mgr.createComponent("foo");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
// The following procedure is examples how handle RT-Components.
// These should not be in this function.
-
// // Get the component's object reference
// Manager manager = Manager.instance();
// RTObject rtobj = null;
@@ -76,25 +72,19 @@
// System.out.println( "----------------" );
// }
}
-
public static void main(String[] args) {
// Initialize manager
final Manager manager = Manager.init(args);
-
// Set module initialization proceduer
// This procedure will be invoked in activateManager() function.
fooComp init = new fooComp();
manager.setModuleInitProc(init);
-
// Activate manager and register to naming service
manager.activateManager();
-
// run the manager in blocking mode
// runManager(false) is the default.
manager.runManager();
-
// If you want to run the manager in non-blocking mode, do like this
// manager.runManager(true);
}
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooImpl.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooImpl.java 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/resource/100/module/serviceMC/src/fooImpl.java 2018-03-03 14:15:57 UTC (rev 806)
@@ -6,7 +6,6 @@
*
* $Id$
*/
-
import jp.go.aist.rtm.RTC.DataFlowComponentBase;
import jp.go.aist.rtm.RTC.Manager;
import jp.go.aist.rtm.RTC.port.CorbaConsumer;
@@ -16,31 +15,28 @@
import org.omg.PortableServer.POAPackage.WrongPolicy;
import RTC.ReturnCode_t;
import SimpleService.MyService;
-
-/*!
- * @class fooImpl
- * @brief ModuleDescription
+/**
+ * fooImpl
+ * <p>
+ * ModuleDescription
*
*/
public class fooImpl extends DataFlowComponentBase {
-
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public fooImpl(Manager manager) {
+ public fooImpl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
m_sv_namePort = new CorbaPort("sv_name");
m_sv_name2Port = new CorbaPort("sv_name2");
// </rtc-template>
-
}
-
/**
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -53,7 +49,7 @@
// Set service provider to Ports
try {
- m_sv_namePort.registerProvider("if_name", "SimpleService.MyService", m_if_name);
+ m_sv_namePort.registerProvider("if_name", "SimpleService.MyService", m_if_name);
} catch (ServantAlreadyActive e) {
e.printStackTrace();
} catch (WrongPolicy e) {
@@ -71,11 +67,10 @@
// </rtc-template>
return super.onInitialize();
}
-
- /***
+ /**
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -85,8 +80,7 @@
// protected ReturnCode_t onFinalize() {
// return super.onFinalize();
// }
-
- /***
+ /**
*
* The startup action when ExecutionContext startup
* former rtc_starting_entry()
@@ -101,8 +95,7 @@
// protected ReturnCode_t onStartup(int ec_id) {
// return super.onStartup(ec_id);
// }
-
- /***
+ /**
*
* The shutdown action when ExecutionContext stop
* former rtc_stopping_entry()
@@ -117,8 +110,7 @@
// protected ReturnCode_t onShutdown(int ec_id) {
// return super.onShutdown(ec_id);
// }
-
- /***
+ /**
*
* The activated action (Active state entry action)
* former rtc_active_entry()
@@ -133,8 +125,7 @@
// protected ReturnCode_t onActivated(int ec_id) {
// return super.onActivated(ec_id);
// }
-
- /***
+ /**
*
* The deactivated action (Active state exit action)
* former rtc_active_exit()
@@ -149,8 +140,7 @@
// protected ReturnCode_t onDeactivated(int ec_id) {
// return super.onDeactivated(ec_id);
// }
-
- /***
+ /**
*
* The execution action that is invoked periodically
* former rtc_active_do()
@@ -165,8 +155,7 @@
// protected ReturnCode_t onExecute(int ec_id) {
// return super.onExecute(ec_id);
// }
-
- /***
+ /**
*
* The aborting action when main logic error occurred.
* former rtc_aborting_entry()
@@ -181,8 +170,7 @@
// public ReturnCode_t onAborting(int ec_id) {
// return super.onAborting(ec_id);
// }
-
- /***
+ /**
*
* The error action in ERROR state
* former rtc_error_do()
@@ -197,8 +185,7 @@
// public ReturnCode_t onError(int ec_id) {
// return super.onError(ec_id);
// }
-
- /***
+ /**
*
* The reset action that is invoked resetting
* This is same but different the former rtc_init_entry()
@@ -213,8 +200,7 @@
// protected ReturnCode_t onReset(int ec_id) {
// return super.onReset(ec_id);
// }
-
- /***
+ /**
*
* The state update action that is invoked after onExecute() action
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -229,8 +215,7 @@
// protected ReturnCode_t onStateUpdate(int ec_id) {
// return super.onStateUpdate(ec_id);
// }
-
- /***
+ /**
*
* The action that is invoked when execution context's rate is changed
* no corresponding operation exists in OpenRTm-aist-0.2.0
@@ -246,16 +231,16 @@
// return super.onRateChanged(ec_id);
// }
//
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
// </rtc-template>
-
// DataOutPort declaration
// <rtc-template block="outport_declare">
// </rtc-template>
-
// CORBA Port declaration
// <rtc-template block="corbaport_declare">
/*!
@@ -266,7 +251,6 @@
protected CorbaPort m_sv_name2Port;
// </rtc-template>
-
// Service declaration
// <rtc-template block="service_declare">
/*!
@@ -274,7 +258,6 @@
protected MyServiceSVC_impl m_if_name = new MyServiceSVC_impl();
// </rtc-template>
-
// Consumer declaration
// <rtc-template block="consumer_declare">
protected CorbaConsumer<MyService> m_if_name2Base = new CorbaConsumer<MyService>(MyService.class);
@@ -283,6 +266,4 @@
protected MyService m_if_name2;
// </rtc-template>
-
-
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_Comp.java.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_Comp.java.vsl 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_Comp.java.vsl 2018-03-03 14:15:57 UTC (rev 806)
@@ -22,9 +22,10 @@
import jp.go.aist.rtm.RTC.RTObject_impl;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class ${rtcParam.name}Comp
- * @brief Standalone component Class
+/**
+ * ${rtcParam.name}Comp
+ * <p>
+ * Standalone component Class
*
*/
public class ${rtcParam.name}Comp implements ModuleInitProc {
@@ -36,8 +37,8 @@
// Create a component
RTObject_impl comp = mgr.createComponent("${rtcParam.name}");
if( comp==null ) {
- System.err.println("Component create failed.");
- System.exit(0);
+ System.err.println("Component create failed.");
+ System.exit(0);
}
// Example
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC.java.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC.java.vsl 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC.java.vsl 2018-03-03 14:15:57 UTC (rev 806)
@@ -23,9 +23,10 @@
import jp.go.aist.rtm.RTC.RegisterModuleFunc;
import jp.go.aist.rtm.RTC.util.Properties;
-/*!
- * @class ${rtcParam.name}
- * @brief ${rtcParam.description}
+/**
+ * ${rtcParam.name}
+ * <p>
+ * ${rtcParam.description}
*/
public class ${rtcParam.name} implements RtcNewFunc, RtcDeleteFunc, RegisterModuleFunc {
@@ -32,16 +33,16 @@
// Module specification
// <rtc-template block="module_spec">
public static String component_conf[] = {
- "implementation_id", "${rtcParam.name}",
- "type_name", "${rtcParam.name}",
- "description", "${rtcParam.description}",
- "version", "${rtcParam.version}",
- "vendor", "${rtcParam.vender}",
- "category", "${rtcParam.category}",
- "activity_type", "${rtcParam.componentType}",
- "max_instance", "${rtcParam.maxInstance}",
- "language", "Java",
- "lang_type", "compile",
+ "implementation_id", "${rtcParam.name}",
+ "type_name", "${rtcParam.name}",
+ "description", "${rtcParam.description}",
+ "version", "${rtcParam.version}",
+ "vendor", "${rtcParam.vender}",
+ "category", "${rtcParam.category}",
+ "activity_type", "${rtcParam.componentType}",
+ "max_instance", "${rtcParam.maxInstance}",
+ "language", "Java",
+ "lang_type", "compile",
#if( ${rtcParam.configParams.size()} > 0 )
// Configuration variables
#foreach($configParam in ${rtcParam.configParams})
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_RTC_Impl.java.vsl 2018-03-03 14:15:57 UTC (rev 806)
@@ -66,9 +66,10 @@
#if(${tmpltHelper.isModule(${serviceInterface.interfaceType})})import ${tmpltHelper.convFormat(${serviceInterface.interfaceType})};
#end#end#end#end#end#end
-/*!
- * @class ${rtcParam.name}Impl
- * @brief ${rtcParam.description}
+/**
+ * ${rtcParam.name}Impl
+ * <p>
+ * ${rtcParam.description}
#if( ${rtcParam.docDescription.length()} > 0 )
*
* ${tmpltHelper.convertDoc(${rtcParam.docDescription})}
@@ -89,11 +90,11 @@
*/
public class ${rtcParam.name}Impl extends DataFlowComponentBase {
- /*!
- * @brief constructor
- * @param manager Maneger Object
+ /**
+ * constructor
+ * @param manager Manager Object
*/
- public ${rtcParam.name}Impl(Manager manager) {
+ public ${rtcParam.name}Impl(Manager manager) {
super(manager);
// <rtc-template block="initializer">
#foreach($port in ${rtcParam.inports})
@@ -121,8 +122,8 @@
#if(${rtcParam.getDocActionOverView(0).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(0)})}
#end
*
- * The initialize action (on CREATED->ALIVE transition)
- * formaer rtc_init_entry()
+ * The initialize action (on CREATED->ALIVE transition)
+ * former rtc_init_entry()
*
* @return RTC::ReturnCode_t
*
@@ -159,7 +160,7 @@
#if(${servicePort.servicePortInterfaces.size()}>0)
#foreach($serviceInterface in ${servicePort.servicePortInterfaces})
#if(${serviceInterface.index}==0)
- m_${servicePort.name}Port.registerProvider("${serviceInterface.name}", "${tmpltHelper.convFormat(${serviceInterface.interfaceType})}", m_${serviceInterface.tmplVarName});
+ m_${servicePort.name}Port.registerProvider("${serviceInterface.name}", "${tmpltHelper.convFormat(${serviceInterface.interfaceType})}", m_${serviceInterface.tmplVarName});
#end#end#end#end#end
} catch (ServantAlreadyActive e) {
e.printStackTrace();
@@ -203,12 +204,12 @@
// }
#end
- /***
+ /**
#if(${rtcParam.getDocActionOverView(1).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(1)})}
#end
*
- * The finalize action (on ALIVE->END transition)
- * formaer rtc_exiting_entry()
+ * The finalize action (on ALIVE->END transition)
+ * former rtc_exiting_entry()
*
* @return RTC::ReturnCode_t
*
@@ -225,7 +226,7 @@
#if(${rtcParam.IsNotImplemented(1)})//#end return super.onFinalize();
#if(${rtcParam.IsNotImplemented(1)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(2).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(2)})}
#end
*
@@ -249,7 +250,7 @@
#if(${rtcParam.IsNotImplemented(2)})//#end return super.onStartup(ec_id);
#if(${rtcParam.IsNotImplemented(2)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(3).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(3)})}
#end
*
@@ -273,7 +274,7 @@
#if(${rtcParam.IsNotImplemented(3)})//#end return super.onShutdown(ec_id);
#if(${rtcParam.IsNotImplemented(3)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(4).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(4)})}
#end
*
@@ -297,7 +298,7 @@
#if(${rtcParam.IsNotImplemented(4)})//#end return super.onActivated(ec_id);
#if(${rtcParam.IsNotImplemented(4)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(5).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(5)})}
#end
*
@@ -321,7 +322,7 @@
#if(${rtcParam.IsNotImplemented(5)})//#end return super.onDeactivated(ec_id);
#if(${rtcParam.IsNotImplemented(5)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(9).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(9)})}
#end
*
@@ -345,7 +346,7 @@
#if(${rtcParam.IsNotImplemented(9)})//#end return super.onExecute(ec_id);
#if(${rtcParam.IsNotImplemented(9)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(6).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(6)})}
#end
*
@@ -369,7 +370,7 @@
#if(${rtcParam.IsNotImplemented(6)})//#end return super.onAborting(ec_id);
#if(${rtcParam.IsNotImplemented(6)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(7).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(7)})}
#end
*
@@ -393,7 +394,7 @@
#if(${rtcParam.IsNotImplemented(7)})//#end return super.onError(ec_id);
#if(${rtcParam.IsNotImplemented(7)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(8).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(8)})}
#end
*
@@ -417,7 +418,7 @@
#if(${rtcParam.IsNotImplemented(8)})//#end return super.onReset(ec_id);
#if(${rtcParam.IsNotImplemented(8)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(10).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(10)})}
#end
*
@@ -441,7 +442,7 @@
#if(${rtcParam.IsNotImplemented(10)})//#end return super.onStateUpdate(ec_id);
#if(${rtcParam.IsNotImplemented(10)})//#end }
- /***
+ /**
#if(${rtcParam.getDocActionOverView(11).length()}>0) * ${tmpltHelperJava.convertDescDocJava(${rtcParam.getDocActionOverView(11)})}
#end
*
@@ -485,6 +486,9 @@
// </rtc-template>
#end
+
+ /**
+ */
// DataInPort declaration
// <rtc-template block="inport_declare">
#foreach($port in ${rtcParam.inports})
@@ -634,56 +638,56 @@
#end
#if( ${rtcParam.inports.size()} > 0 || ${rtcParam.outports.size()} > 0 )
- private void initializeParam(Object target) {
- Class<?> targetClass = target.getClass();
- ClassLoader loader = target.getClass().getClassLoader();
- //
- Field[] fields = targetClass.getFields();
- for(Field field : fields) {
- if(field.getType().isPrimitive()) continue;
-
- try {
- if(field.getType().isArray()) {
- Object arrayValue = null;
- Class<?> clazz = null;
- if(field.getType().getComponentType().isPrimitive()) {
- clazz = field.getType().getComponentType();
- } else {
- clazz = loader.loadClass(field.getType().getComponentType().getName());
- }
- arrayValue = Array.newInstance(clazz, 0);
- field.set(target, arrayValue);
-
- } else {
- Constructor<?>[] constList = field.getType().getConstructors();
- if(constList.length==0) {
- Method[] methodList = field.getType().getMethods();
- for(Method method : methodList) {
- if(method.getName().equals("from_int")==false) continue;
- Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
- field.set(target, objFld);
- break;
- }
-
- } else {
- Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
- Object objFld = classFld.newInstance();
- initializeParam(objFld);
- field.set(target, objFld);
- }
- }
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- } catch (InstantiationException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- }
- }
- }
+ private void initializeParam(Object target) {
+ Class<?> targetClass = target.getClass();
+ ClassLoader loader = target.getClass().getClassLoader();
+ //
+ Field[] fields = targetClass.getFields();
+ for(Field field : fields) {
+ if(field.getType().isPrimitive()) continue;
+
+ try {
+ if(field.getType().isArray()) {
+ Object arrayValue = null;
+ Class<?> clazz = null;
+ if(field.getType().getComponentType().isPrimitive()) {
+ clazz = field.getType().getComponentType();
+ } else {
+ clazz = loader.loadClass(field.getType().getComponentType().getName());
+ }
+ arrayValue = Array.newInstance(clazz, 0);
+ field.set(target, arrayValue);
+
+ } else {
+ Constructor<?>[] constList = field.getType().getConstructors();
+ if(constList.length==0) {
+ Method[] methodList = field.getType().getMethods();
+ for(Method method : methodList) {
+ if(method.getName().equals("from_int")==false) continue;
+ Object objFld = method.invoke(target, new Object[]{ new Integer(0) });
+ field.set(target, objFld);
+ break;
+ }
+
+ } else {
+ Class<?> classFld = Class.forName(field.getType().getName(), true, loader);
+ Object objFld = classFld.newInstance();
+ initializeParam(objFld);
+ field.set(target, objFld);
+ }
+ }
+ } catch (ClassNotFoundException e) {
+ e.printStackTrace();
+ } catch (InstantiationException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (IllegalArgumentException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+ }
#end
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_SVC.java.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_SVC.java.vsl 2018-03-03 13:28:34 UTC (rev 805)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/src/jp/go/aist/rtm/rtcbuilder/java/template/java/Java_SVC.java.vsl 2018-03-03 14:15:57 UTC (rev 806)
@@ -14,8 +14,9 @@
*/
#if(${tmpltHelper.isModule(${serviceClassParam.name})})import ${tmpltHelper.convFormat(${serviceClassParam.name})}POA;
#end
-/*!
- * @class ${tmpltHelper.getBasename(${serviceClassParam.name})}${tmpltHelper.serviceImplSuffix}
+/**
+ * ${tmpltHelper.getBasename(${serviceClassParam.name})}${tmpltHelper.serviceImplSuffix}
+ * <p>
* Example class implementing IDL interface ${serviceClassParam.name}
*/
public class ${tmpltHelper.getBasename(${serviceClassParam.name})}${tmpltHelper.serviceImplSuffix} extends ${tmpltHelper.getBasename(${serviceClassParam.name})}POA{
More information about the openrtm-commit
mailing list