Public Member Functions | Private Attributes | List of all members
OpenRTM_aist.InPort.InPort Class Reference

InPort template class. More...

Inheritance diagram for OpenRTM_aist.InPort.InPort:
Inheritance graph
[legend]

Public Member Functions

def __del__ (self, InPortBase=OpenRTM_aist.InPortBase)
 
def __init__ (self, name, value, buffer=None, read_block=False, write_block=False, read_timeout=0, write_timeout=0)
 A constructor. More...
 
def isEmpty (self)
 Check whether the data is newest. More...
 
def isNew (self)
 bool isNew() More...
 
def name (self)
 const char* name() More...
 
def read (self)
 Readout the value from DataPort. More...
 
def setOnRead (self, on_read)
 
def setOnReadConvert (self, on_rconvert)
 
def update (self)
 Read into bound T-type data from current InPort. More...
 
- Public Member Functions inherited from OpenRTM_aist.InPortBase.InPortBase
def __del__ (self, PortBase=OpenRTM_aist.PortBase)
 Destructor. More...
 
def __init__ (self, name, data_type)
 Constructor. More...
 
def activateInterfaces (self)
 Activate all Port interfaces. More...
 
def addConnectorDataListener (self, listener_type, listener, autoclean=True)
 Adding BufferDataListener type listener. More...
 
def addConnectorListener (self, listener_type, listener, autoclean=True)
 Adding ConnectorListener type listener. More...
 
def connect (self, connector_profile)
 [CORBA interface] Connect the Port More...
 
def connectors (self)
 Connector list. More...
 
def createConnector (self, cprof, prop, provider_=None, consumer_=None)
 InPortPushConnector creationInPortConnector* createConnector(ConnectorProfile& cprof, coil::Properties& prop, InPortProvider* provider);. More...
 
def createConsumer (self, cprof, prop)
 InPort provider creationOutPortConsumer* createConsumer(const ConnectorProfile& cprof, coil::Properties& prop);. More...
 
def createProvider (self, cprof, prop)
 InPort provider creationInPortProvider* createProvider(ConnectorProfile& cprof, coil::Properties& prop);. More...
 
def deactivateInterfaces (self)
 Deactivate all Port interfaces. More...
 
def getConnectorById (self, id)
 Getting ConnectorProfile by ID. More...
 
def getConnectorByName (self, name)
 Getting Connector by name. More...
 
def getConnectorIds (self)
 ConnectorId list. More...
 
def getConnectorNames (self)
 Connector name list. More...
 
def getConnectorProfileById (self, id, prof)
 Getting ConnectorProfile by name. More...
 
def getConnectorProfileByName (self, name, prof)
 Getting ConnectorProfile by name. More...
 
def getConnectorProfiles (self)
 ConnectorProfile list. More...
 
def init (self, prop)
 Initializing properties. More...
 
def initConsumers (self)
 OutPort consumer initializationvoid initConsumers();. More...
 
def initProviders (self)
 InPort provider initializationvoid initProviders();. More...
 
def properties (self)
 Get properties. More...
 
def publishInterfaces (self, cprof)
 Publish interface information. More...
 
def read (self)
 It is a virtual method that is called from RTObject_impl::readAll(). More...
 
def removeConnectorDataListener (self, listener_type, listener)
 Removing BufferDataListener type listener. More...
 
def removeConnectorListener (self, listener_type, listener)
 Removing BufferDataListener type listener. More...
 
def subscribeInterfaces (self, cprof)
 Subscribe to the interface. More...
 
def unsubscribeInterfaces (self, connector_profile)
 Disconnect the interface connection. More...
 
- Public Member Functions inherited from OpenRTM_aist.PortBase.PortBase
def __del__ (self)
 Destructor. More...
 
def __init__ (self, name=None)
 Constructor. More...
 
def addProperty (self, key, value)
 Add NameValue data to PortProfile's properties. More...
 
def appendInterface (self, instance_name, type_name, pol)
 Append an interface to the PortInterfaceProfile. More...
 
def appendProperty (self, key, value)
 Append NameValue data to PortProfile's properties. More...
 
def checkPorts (self, ports)
 Existence of ports. More...
 
def connect (self, connector_profile)
 [CORBA interface] Connect the Port More...
 
def connectNext (self, connector_profile)
 Call notify_connect() of the next Port. More...
 
def deleteInterface (self, name, pol)
 Delete an interface from the PortInterfaceProfile. More...
 
def disconnect (self, connector_id)
 [CORBA interface] Disconnect the Port More...
 
def disconnect_all (self)
 [CORBA interface] Connect the Port More...
 
def disconnectNext (self, connector_profile)
 Call notify_disconnect() of the next Port. More...
 
def eraseConnectorProfile (self, id_)
 Delete the ConnectorProfile. More...
 
def findConnProfile (self, id_)
 Find ConnectorProfile with id. More...
 
def findConnProfileIndex (self, id_)
 Find ConnectorProfile with id. More...
 
def get_connector_profile (self, connector_id)
 [CORBA interface] Get the ConnectorProfile More...
 
def get_connector_profiles (self)
 [CORBA interface] Get the ConnectorProfileList of the Port More...
 
def get_port_profile (self)
 [CORBA interface] Get the PortProfile of the Port More...
 
def getName (self)
 Get the name of this Port. More...
 
def getPortProfile (self)
 Get the PortProfile of the Port. More...
 
def getPortRef (self)
 Get the object reference of this Port. More...
 
def getProfile (self)
 Get the PortProfile of the Port. More...
 
def getUUID (self)
 Get the UUID. More...
 
def isEmptyId (self, connector_profile)
 Whether connector_id of ConnectorProfile is empty. More...
 
def isExistingConnId (self, id_)
 Whether the given id exists in stored ConnectorProfiles. More...
 
def notify_connect (self, connector_profile)
 [CORBA interface] Notify the Ports connection More...
 
def notify_disconnect (self, connector_id)
 [CORBA interface] Notify the Ports disconnection More...
 
def onConnected (self, portname, profile, ret)
 
def onConnectNextport (self, portname, profile, ret)
 
def onDisconnected (self, portname, profile, ret)
 
def onDisconnectNextport (self, portname, profile, ret)
 
def onNotifyConnect (self, portname, profile)
 
def onNotifyDisconnect (self, portname, profile)
 
def onPublishInterfaces (self, portname, profile, ret)
 
def onSubscribeInterfaces (self, portname, profile, ret)
 
def onUnsubscribeInterfaces (self, portname, profile)
 
def publishInterfaces (self, connector_profile)
 Publish interface information. More...
 
def setConnectionLimit (self, limit_value)
 Set the maximum number of connections. More...
 
def setName (self, name)
 Set the name of this Port. More...
 
def setOnConnected (self, on_connected)
 Setting callback called on connection established. More...
 
def setOnConnectionLost (self, on_connection_lost)
 
def setOnDisconnected (self, on_disconnected)
 Setting callback called on disconnected. More...
 
def setOnPublishInterfaces (self, on_publish)
 Setting callback called on publish interfaces. More...
 
def setOnSubscribeInterfaces (self, on_subscribe)
 Setting callback called on publish interfaces. More...
 
def setOnUnsubscribeInterfaces (self, on_subscribe)
 Setting callback called on unsubscribe interfaces. More...
 
def setOwner (self, owner)
 Set the owner RTObject of the Port. More...
 
def setPortConnectListenerHolder (self, portconnListeners)
 Setting PortConnectListener holder. More...
 
def setPortRef (self, port_ref)
 Set the object reference of this Port. More...
 
def setUUID (self, connector_profile)
 Create and set the UUID to the ConnectorProfile. More...
 
def subscribeInterfaces (self, connector_profile)
 Publish interface information. More...
 
def unsubscribeInterfaces (self, connector_profile)
 Disconnect interface connection. More...
 
def updateConnectorProfile (self, connector_profile)
 Append or update the ConnectorProfile list. More...
 
def updateConnectors (self)
 Disconnect ports that doesn't exist. More...
 
- Public Member Functions inherited from OpenRTM_aist.DataPortStatus.DataPortStatus
def __init__ (self)
 
def toString (status)
 Convert DataPortStatus into the string. More...
 

Private Attributes

 _name
 
 _OnRead
 
 _OnReadConvert
 
 _value
 

Additional Inherited Members

- Static Public Attributes inherited from OpenRTM_aist.DataPortStatus.DataPortStatus
int BUFFER_EMPTY = 4
 
int BUFFER_ERROR = 2
 
int BUFFER_FULL = 3
 
int BUFFER_TIMEOUT = 5
 
int CONNECTION_LOST = 12
 
int INVALID_ARGS = 10
 
int PORT_ERROR = 1
 
int PORT_OK = 0
 DataPortStatus return codes. More...
 
int PRECONDITION_NOT_MET = 11
 
int RECV_EMPTY = 8
 
int RECV_TIMEOUT = 9
 
int SEND_FULL = 6
 
int SEND_TIMEOUT = 7
 
 toString = staticmethod(toString)
 
int UNKNOWN_ERROR = 13
 

Detailed Description

InPort template class.

This class template provides interfaces to input port. Component developer can define input value, which act as input port from other components, using this template. This is class template. This class have to be incarnated class as port value types. This value types are previously define RtComponent IDL. ex. type T: TimedFload, TimedLong etc...

Since
0.2.0

Definition at line 58 of file InPort.py.

Constructor & Destructor Documentation

def OpenRTM_aist.InPort.InPort.__init__ (   self,
  name,
  value,
  buffer = None,
  read_block = False,
  write_block = False,
  read_timeout = 0,
  write_timeout = 0 
)

A constructor.

Setting channel name and registering channel value.

Parameters
self
nameA name of the InPort. This name is referred by InPortBase::name().
valueA channel value related with the channel.
read_block
write_block
read_timeout
write_timeout

Definition at line 103 of file InPort.py.

def OpenRTM_aist.InPort.InPort.__del__ (   self,
  InPortBase = OpenRTM_aist.InPortBase 
)

Definition at line 111 of file InPort.py.

Member Function Documentation

def OpenRTM_aist.InPort.InPort.isEmpty (   self)

Check whether the data is newest.

Check whether the data stored at a current buffer position is newest.

Returns
Newest data check result ( true:Newest data. Data has not been readout yet. false:Past data¡¥Data has already been readout.)

bool isEmpty()

Definition at line 191 of file InPort.py.

def OpenRTM_aist.InPort.InPort.isNew (   self)

bool isNew()

Definition at line 151 of file InPort.py.

def OpenRTM_aist.InPort.InPort.name (   self)

const char* name()

Definition at line 130 of file InPort.py.

def OpenRTM_aist.InPort.InPort.read (   self)

Readout the value from DataPort.

Readout the value from DataPort

  • When Callback functor OnRead is already set, OnRead will be invoked before reading from the buffer held by DataPort.
  • When the buffer held by DataPort can detect the underflow, and when it detected the underflow at reading, callback functor OnUnderflow will be invoked.
  • When callback functor OnReadConvert is already set, the return value of operator() of OnReadConvert will be the return value of read().
  • When timeout of reading is already set by setReadTimeout(), it waits for only timeout time until the state of the buffer underflow is reset, and if OnUnderflow is already set, this will be invoked to return.
Returns
Readout data

DataType read()

Definition at line 279 of file InPort.py.

def OpenRTM_aist.InPort.InPort.setOnRead (   self,
  on_read 
)

Definition at line 352 of file InPort.py.

def OpenRTM_aist.InPort.InPort.setOnReadConvert (   self,
  on_rconvert 
)

Definition at line 371 of file InPort.py.

def OpenRTM_aist.InPort.InPort.update (   self)

Read into bound T-type data from current InPort.

Definition at line 334 of file InPort.py.

Member Data Documentation

OpenRTM_aist.InPort.InPort._name
private

Definition at line 105 of file InPort.py.

OpenRTM_aist.InPort.InPort._OnRead
private

Definition at line 107 of file InPort.py.

OpenRTM_aist.InPort.InPort._OnReadConvert
private

Definition at line 108 of file InPort.py.

OpenRTM_aist.InPort.InPort._value
private

Definition at line 106 of file InPort.py.


The documentation for this class was generated from the following file:


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:37