OutPortProvider.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: euc-jp -*-
3 
4 
17 
18 
19 
20 import OpenRTM_aist
21 
22 
45  """
46  """
47 
48 
49 
50 
58  def __init__(self, prop):
59  self._prop = prop
60 
61  def __call__(self, provider):
62  provider.publishInterfaceProfile(self._prop)
63 
64 
65 
76  def __init__(self):
77  self._properties = []
78  self._portType = ""
79  self._dataType = ""
80  self._interfaceType = ""
81  self._dataflowType = ""
83  self._rtcout = OpenRTM_aist.Manager.instance().getLogbuf("OutPortProvider")
84 
85 
86 
102  def publishInterfaceProfile(self, prop):
103  OpenRTM_aist.NVUtil.appendStringValue(prop, "dataport.interface_type", self._interfaceType)
105 
106 
123  def publishInterface(self, prop):
124  if not OpenRTM_aist.NVUtil.isStringValue(prop,"dataport.interface_type",self._interfaceType):
125  return False
126 
128  return True
129 
130 
131 
143  def setPortType(self, port_type):
144  self._portType = port_type
145 
146 
147 
159  def setDataType(self, data_type):
160  self._dataType = data_type
161 
162 
163 
175  def setInterfaceType(self, interface_type):
176  self._interfaceType = interface_type
177 
178 
179 
191  def setDataFlowType(self, dataflow_type):
192  self._dataflowType = dataflow_type
193 
194 
195 
207  def setSubscriptionType(self, subs_type):
208  self._subscriptionType = subs_type
209 
210 
211 
212 outportproviderfactory = None
213 
215  def __init__(self):
216  OpenRTM_aist.Factory.__init__(self)
217  pass
218 
219 
220  def __del__(self):
221  pass
222 
223 
224  def instance():
225  global outportproviderfactory
226 
227  if outportproviderfactory is None:
228  outportproviderfactory = OutPortProviderFactory()
229 
230  return outportproviderfactory
231 
232  instance = staticmethod(instance)
def publishInterfaceProfile(self, prop)
virtual void publishInterfaceProfile(SDOPackage::NVList& properties);
def appendStringValue(nv, name, value)
Definition: NVUtil.py:352
def publishInterface(self, prop)
virtual bool publishInterface(SDOPackage::NVList& properties);
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 Thu Jun 6 2019 19:11:34