Public Member Functions | Private Attributes
OpenRTM_aist.InPort.InPort Class Reference

InPort template class. More...

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

List of all members.

Public Member Functions

def __del__
 Destructor.
def __init__
 A constructor.
def isEmpty
 Check whether the data is newest.
def isNew
 bool isNew()
def name
 const char* name()
def read
 Readout the value from DataPort.
def setOnRead
def setOnReadConvert
def update
 Read into bound T-type data from current InPort.

Private Attributes

 _name
 _OnRead
 _OnReadConvert
 _value

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 101 of file InPort.py.

Destructor.

Destructor

Reimplemented from OpenRTM_aist.InPortBase.InPortBase.

Definition at line 111 of file InPort.py.


Member Function Documentation

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.

bool isNew()

Definition at line 151 of file InPort.py.

const char* name()

Definition at line 130 of file InPort.py.

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()

Reimplemented from OpenRTM_aist.InPortBase.InPortBase.

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.

Read into bound T-type data from current InPort.

Definition at line 334 of file InPort.py.


Member Data Documentation

Definition at line 101 of file InPort.py.

Definition at line 101 of file InPort.py.

Definition at line 101 of file InPort.py.

Reimplemented from OpenRTM_aist.InPortBase.InPortBase.

Definition at line 101 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 Aug 27 2015 14:17:29