23 GUI�ѥǥ�������ʥ�δ������饹 37 from omniORB
import CORBA
43 from RtmDialog
import *
50 """�ǥ�������ʥ�������饹""" 70 """�ե�ѥ�̾�ΤΥȡ�����ʬ��
[����]
fullname -- 73 fullname -- '/'���ڤ�Υե�ѥ� 77 key_list -- �ȡ������list 79 key_list = string.splitfields(fullname,
'/')
80 if len(key_list) > NAME_PATH_NUM:
81 print "Error: SplitTokenToFullpath: fullpath is too long(please set to 5 or less)" 87 """�ǥ�������ʥ�κ��
[����]
void
[�����]
void
99 """�ǥ�������ʥ�Υ��֥������ȥ�ե������InPort�����
[����]
fullpath -- �ե�ѥ�����
[�����]
inport_list -- ����ݡ��ȥꥹ��
102 fullpath -- �ե�ѥ�����
[�����]
inport_list -- ����ݡ��ȥꥹ��
105 inport_list -- ����ݡ��ȥꥹ�� 110 ref = self.
dict[fullpath][
'objref']
111 ref = ref._narrow(RTC.RTObject)
115 in_list = ref._get_inports()
119 inp = inp._narrow(InPort)
122 prof = inp._get_profile()
123 tmp[
'name'] = prof.name
124 tmp[
'port_type'] = prof.port_type.name()
140 """�ǥ�������ʥ�Υ��֥������ȥ�ե������OutPort�����
[����]
fullpath -- �ե�ѥ�����
[�����]
outport_list -- �����ȥݡ��ȥꥹ��
143 fullpath -- �ե�ѥ�����
[�����]
outport_list -- �����ȥݡ��ȥꥹ��
146 outport_list -- �����ȥݡ��ȥꥹ�� 150 ref = self.
dict[fullpath][
'objref']
151 ref = ref._narrow(RTC.RTObject)
154 out_list = ref._get_outports()
158 for outp
in out_list:
159 outp = outp._narrow(OutPort)
162 prof = outp._get_profile()
163 tmp[
'name'] = prof.name
164 tmp[
'port_type'] = prof.port_type.name()
179 """�ǥ�������ʥ�˥��֥������ȥ�ե�����ɲ�
[����]
position -- �ե�ѥ�����
comp -- objref,id,kind �Υǥ�������ʥ�
[�����]
void
182 position -- �ե�ѥ����� comp -- objref,id,kind �Υǥ�������ʥ�
[�����]
void
183 comp -- objref,id,kind �Υǥ�������ʥ�
[�����]
void
196 if comp[
'kind'] ==
'rtc':
197 if not self.dict.has_key(position):
200 ref = ref._duplicate(ref)
202 err_mess =
'duplicate exception!!:%s\n' % comp[
'objref']
205 ref = ref._narrow(RTC.RTObject)
209 if comp[
'kind'] ==
'mgr':
210 if not self.dict.has_key(position):
213 ref = ref._duplicate(ref)
216 err_mess =
'duplicate exception!!:%s\n' % comp[
'objref']
224 self.
dict[position] = {}
225 self.
dict[position][
'objref'] = ref
226 self.
dict[position][
'id'] = comp[
'id']
227 self.
dict[position][
'kind'] = comp[
'kind']
228 self.
dict[position][
'bname'] = comp[
'bname']
232 """�ǥ�������ʥ꤫�饪�֥������ȥ�ե�������
[����]
position -- �ե�ѥ�����
[�����]
ref -- ���֥������ȥ�ե����
235 position -- �ե�ѥ�����
[�����]
ref -- ���֥������ȥ�ե����
238 ref -- ���֥������ȥ�ե���� 242 if self.dict.has_key(position):
243 ref = self.
dict[position][
'objref']
245 print "Error: GetObjRefToFullpath: fullpath error!" 252 """�ǥ�������ʥ꤫��Kind�����
[����]
position -- �ե�ѥ�����
[�����]
kind -- Kind
255 position -- �ե�ѥ�����
[�����]
kind -- Kind
260 kind_list = [
'ns',
'host_cxt',
'mgr_cxt',
'mgr',
'cate_cxt',
'mod_cxt',
'rtc']
263 if self.dict.has_key(position):
264 kind = self.
dict[position][
'kind']
266 print "Error: GetKindToFullpath: fullpath error!" 269 if kind
not in kind_list:
276 """�ǥ�������ʥ꤫��Id�����
[����]
position -- �ե�ѥ�����
[�����]
Id -- Id
279 position -- �ե�ѥ�����
[�����]
Id -- Id
286 if self.dict.has_key(position):
287 Id = self.
dict[position][
'id']
289 print "Error: GetIdToFullpath: fullpath error!" 296 """�ǥ�������ʥ꤫��Binding_name�����
[����]
position -- �ե�ѥ�����
[�����]
bname -- binding name
299 position -- �ե�ѥ�����
[�����]
bname -- binding name
302 bname -- binding name 306 if self.dict.has_key(position):
307 bname = self.
dict[position][
'bname']
309 print "Error: GetBindingNameToFullpath: fullpath error!" 318 """�ǥ�������ʥ�Υ������������饹�ʥ�åѡ����� �����ˡ��ǥ�������ʥ����Ѥ����åѡ���åɤҤ���
319 �����ˡ��ǥ�������ʥ����Ѥ����åѡ���åɤҤ��� 331 RtmDictCore.__init__(self,parent)
340 ref = ref._narrow(RTC.RTObject)
342 err_mess =
'GetCompState: obj-ref error:%s\n' % fullpath
348 tmp_port = ref._get_rtc_state()
349 tmp_port = tmp_port._narrow(OutPort)
353 print "refresh state:",tmp
355 err_mess =
'GetCompState: rtc_state error:%s\n' % fullpath
373 self.
ret2 = key_list[num-1]
374 num = self.ret2.find(
'|')
388 for cate_str
in key_list:
389 num = cate_str.find(
'|')
391 if str(cate_str[num+1:]) ==
'cate_cxt':
392 self.
ret2 = str(cate_str[0:num])
416 """TreeList��Υ���ݡ��ͥ�Ȥ����� ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
417 ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
420 fullpath -- �ե�ѥ�����
[�����]
void
429 ref = ref._narrow(RTC.RTObject)
430 ret = ref.rtc_start()
432 print "Error rtc_start(): ",fullpath
439 for sys_no
in self.parent.drawWin.keys():
440 self.parent.drawWin[sys_no].changeCompColor(fullpath,
'active')
452 """TreeList��Υ���ݡ��ͥ�Ȥȥå� ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
453 ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
456 fullpath -- �ե�ѥ�����
[�����]
void
465 ref = ref._narrow(RTC.RTObject)
468 print "Error rtc_stop(): ",fullpath
473 for sys_no
in self.parent.drawWin.keys():
474 self.parent.drawWin[sys_no].changeCompColor(fullpath,
'inactive')
485 """TreeList��Υ���ݡ��ͥ�Ȥ�ꥻ�å� ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
486 ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
489 fullpath -- �ե�ѥ�����
[�����]
void
498 ref = ref._narrow(RTC.RTObject)
499 ret = ref.rtc_reset()
501 print "Error rtc_reset(): ",fullpath
506 for sys_no
in self.parent.drawWin.keys():
507 self.parent.drawWin[sys_no].changeCompColor(fullpath,
'inactive')
519 """TreeList��Υ���ݡ��ͥ�Ȥ�Exit 520 ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
523 fullpath -- �ե�ѥ�����
[�����]
void
532 ref = ref._narrow(RTC.RTObject)
535 print "Error rtc_exit(): ",fullpath
540 for sys_no
in self.parent.drawWin.keys():
541 self.parent.drawWin[sys_no].changeCompColor(fullpath,
'inactive')
553 """TreeList��Υ���ݡ��ͥ�Ȥ�kill 554 ��SystemDraw�ѤΥ�åɤ����ѹ礹���ǽ������
[����]
fullpath -- �ե�ѥ�����
[�����]
void
557 fullpath -- �ե�ѥ�����
[�����]
void
566 ref = ref._narrow(RTC.RTObject)
569 print "Error rtc_kill(): ",fullpath
574 for sys_no
in self.parent.drawWin.keys():
575 self.parent.drawWin[sys_no].changeCompColor(fullpath,
'inactive')
597 for sys_no
in self.parent.drawWin.keys():
598 self.parent.drawWin[sys_no].changeCompColor(fullpath,state)
def GetCompStateCallback(self, fullpath)
def TreeListCompReset(self, fullpath)
def TreeListCompExit(self, fullpath)
def TreeListCompExitCallback(self, fullpath)
def GetCompState(self, fullpath)
def __init__(self, parent)
def SplitTokenToFullpath(self, fullname)
def SetObjRefToFullpath(self, position, comp)
def GetCompNameCallback(self, fullpath)
def TreeListCompStop(self, fullpath)
def GetObjRefToFullpath(self, position)
def setCompBodyColor(self, fullpath, state)
def GetKindToFullpathCallback(self, position)
def GetInPortToRefCallback(self, fullpath)
def __init__(self, parent)
def GetCompName(self, fullpath)
def TreeListCompKill(self, fullpath)
def GetIdToFullpath(self, fullpath)
def GetObjRefToFullpathCallback(self, position)
def GetOutPortToRefCallback(self, fullpath)
def GetCateNameCallback(self, fullpath)
def TreeListCompResetCallback(self, fullpath)
def TreeListCompStopCallback(self, fullpath)
def GetOutPortToRef(self, fullpath)
def TreeListCompStart(self, fullpath)
def GetKindToFullpath(self, fullpath)
def TreeListCompKillCallback(self, fullpath)
def ClearDictionary(self)
def TreeListCompStartCallback(self, fullpath)
def GetBindingNameToFullpath(self, position)
def GetInPortToRef(self, fullpath)
def GetIdToFullpathCallback(self, position)
def GetCateName(self, fullpath)