|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.go.aist.rtm.RTC.port.CorbaConsumerBase
jp.go.aist.rtm.RTC.port.CorbaConsumer<OutPortCdr>
jp.go.aist.rtm.RTC.port.OutPortCorbaCdrConsumer
public class OutPortCorbaCdrConsumer
OutPortCorbaCdrConsumer class
This is an implementation class of the output Consumer that uses CORBA for means of communication.
Field Summary |
---|
Fields inherited from class jp.go.aist.rtm.RTC.port.CorbaConsumer |
---|
m_var |
Fields inherited from class jp.go.aist.rtm.RTC.port.CorbaConsumerBase |
---|
m_objref |
Constructor Summary | |
---|---|
OutPortCorbaCdrConsumer()
Constructor |
Method Summary | |
---|---|
protected ReturnCode |
convertReturn(PortStatus status)
Return codes conversion |
OutPortConsumer |
creator_()
Creats OutPortCorbaCdrConsumer |
void |
destructor_(java.lang.Object obj)
Destructs Object |
ReturnCode |
get(org.omg.CORBA.portable.OutputStream data)
Reads data |
void |
init(Properties prop)
Initializing configuration |
static void |
OutPortCorbaCdrConsumerInit()
Module initialization |
void |
setBuffer(BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
Setting outside buffer's pointer |
void |
setConnector(InPortConnector connector)
set Connector |
void |
setListener(ConnectorBase.ConnectorInfo info,
ConnectorListeners listeners)
Set the listener. |
boolean |
subscribeInterface(NVListHolder properties)
Subscribe the data receive notification |
void |
unsubscribeInterface(NVListHolder properties)
Unsubscribe the data receive notification |
Methods inherited from class jp.go.aist.rtm.RTC.port.CorbaConsumer |
---|
_ptr, releaseObject, setObject |
Methods inherited from class jp.go.aist.rtm.RTC.port.CorbaConsumerBase |
---|
getObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutPortCorbaCdrConsumer()
Method Detail |
---|
public void init(Properties prop)
This operation would be called to configure in initialization. In the concrete class, configuration should be performed getting appropriate information from the given Properties data. This function might be called right after instantiation and connection sequence respectivly. Therefore, this function should be implemented assuming multiple call.
init
in interface OutPortConsumer
prop
-
Configuration informationpublic void setBuffer(BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
A pointer to a buffer from which OutPortProvider retrieve data. If already buffer is set, previous buffer's pointer will be overwritten by the given pointer to a buffer. Since OutPortProvider does not assume ownership of the buffer pointer, destructor of the buffer should be done by user.
setBuffer
in interface OutPortConsumer
buffer
-
A pointer to a data buffer to be used by OutPortProviderpublic void setListener(ConnectorBase.ConnectorInfo info, ConnectorListeners listeners)
OutPort provides callback functionality that calls specific listener objects according to the events in the data publishing process. For details, see documentation of ConnectorDataListener class and ConnectorListener class in ConnectorListener.h. In this OutPortCorbaCdrProvider provides the following callbacks.
setListener
in interface OutPortConsumer
info
-
Connector informationlisteners
-
Listener objectspublic ReturnCode get(org.omg.CORBA.portable.OutputStream data)
Reads data set
get
in interface OutPortConsumer
data
-
Object to receive the read data
public boolean subscribeInterface(NVListHolder properties)
Subscribe the data receive notification based on specified property information
subscribeInterface
in interface OutPortConsumer
properties
-
Subscription information
public void unsubscribeInterface(NVListHolder properties)
Unsubscribe the data receive notification.
unsubscribeInterface
in interface OutPortConsumer
properties
-
Unsubscription informationprotected ReturnCode convertReturn(PortStatus status)
status
-
PortStatus
public OutPortConsumer creator_()
creator_
in interface ObjectCreator<OutPortConsumer>
public void destructor_(java.lang.Object obj)
destructor_
in interface ObjectDestructor
obj
-
The target instances for destructionpublic static void OutPortCorbaCdrConsumerInit()
This initialization function registers OutPortCorbaCdrConsumer's factory.
public void setConnector(InPortConnector connector)
setConnector
in interface OutPortConsumer
connector
-
InPortConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |