Actions
調査 #1457
closedIFR ID取得方法の調査
Status:
終了
Priority:
通常
Assignee:
-
Target version:
-
Start date:
05/06/2010
Due date:
% Done:
100%
Estimated time:
Description
IFR IDを取得する方法を調査する。
Updated by Anonymous almost 14 years ago
Helperのメンバー変数(_id)に格納されている。
TimedLongHelper の場合
abstract public class TimedLongHelper
{
private static String _id = "IDL:RTC/TimedLong:1.0";
・・・省略・・・
public static String id ()
{
return _id;
}
・・・以下省略・・・
取得例
TimedLong m_out_val = new TimedLong(new RTC.Time(0,0),0)
Class cl = m_out_val.getClass();
String str = cl.getName();
try {
Class helper = Class.forName(str+"Helper",
true,
this.getClass().getClassLoader());
Method method = helper.getMethod("id");
String id = (String)method.invoke(
null // invoke static method.
);
System.out.println(" "+id);
}
catch(java.lang.Exception e){
System.out.println("Exception caught."+e.toString());
}
http://software.fujitsu.com/jp/manual/manualfiles/M080016/B1WN9481/03Z200/ots03/ots00052.htm
Updated by Anonymous almost 14 years ago
- Status changed from 新規 to 解決
- % Done changed from 0 to 100
Actions