InPortProvider.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: euc-jp -*-
3 
4 
17 
18 
19 import OpenRTM_aist
20 import SDOPackage, SDOPackage__POA
21 
22 
23 
37  """
38  """
39 
40 
41 
42 
53  def __init__(self):
54  self._properties = []
55  self._interfaceType = ""
56  self._dataflowType = ""
58  self._rtcout = OpenRTM_aist.Manager.instance().getLogbuf("InPortProvider")
59  self._connector = None
60 
61 
62 
74  def publishInterfaceProfile(self, prop):
75  self._rtcout.RTC_TRACE("publishInterfaceProfile()")
76  OpenRTM_aist.NVUtil.appendStringValue(prop, "dataport.interface_type",
77  self._interfaceType)
79 
80 
92  def publishInterface(self, prop):
93  self._rtcout.RTC_TRACE("publishInterface()")
95  "dataport.interface_type",
96  self._interfaceType):
97  return False
98 
100  return True
101 
102 
103 
115  def setInterfaceType(self, interface_type):
116  self._rtcout.RTC_TRACE("setInterfaceType(%s)", interface_type)
117  self._interfaceType = interface_type
118 
119 
120 
132  def setDataFlowType(self, dataflow_type):
133  self._rtcout.RTC_TRACE("setDataFlowType(%s)", dataflow_type)
134  self._dataflowType = dataflow_type
135 
136 
137 
149  def setSubscriptionType(self, subs_type):
150  self._rtcout.RTC_TRACE("setSubscriptionType(%s)", subs_type)
151  self._subscriptionType = subs_type
152 
153 
154 
155  def setConnector(self, connector):
156  self._connector = connector
157 
158 
159 inportproviderfactory = None
160 
161 
163  def __init__(self):
164  OpenRTM_aist.Factory.__init__(self) # Call GlobalFactory.Factory()
165  InPortProvider.__init__(self)
166  return
167 
168 
169  def instance():
170  global inportproviderfactory
171 
172  if inportproviderfactory is None:
173  inportproviderfactory = InPortProviderFactory()
174 
175  return inportproviderfactory
176 
177  instance = staticmethod(instance)
178 
179 
180  def __del__(self):
181  pass
def setInterfaceType(self, interface_type)
def appendStringValue(nv, name, value)
Definition: NVUtil.py:352
def isStringValue(nv, name, value)
Definition: NVUtil.py:276
def append(dest, src)
Definition: NVUtil.py:386


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Feb 28 2022 23:01:06