|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
OpenRTM.InPortCdrPOA
jp.go.aist.rtm.RTC.port.InPortCorbaCdrProvider
public class InPortCorbaCdrProvider
InPortCorbaCdrProvider class
This is an implementation class of the input port Provider that uses CORBA for means of communication.
Field Summary | |
---|---|
protected NVListHolder |
m_properties
インタフェース情報を保持するオブジェクトです。 |
Constructor Summary | |
---|---|
InPortCorbaCdrProvider()
Constructor |
Method Summary | |
---|---|
InPortCdr |
_this()
Gets CORBA object referense of this OpenRTM.InPortCdr |
protected PortStatus |
convertReturn(ReturnCode status,
com.sun.corba.se.impl.encoding.EncapsOutputStream data)
{p.en Return codes conversion} |
InPortProvider |
creator_()
Creats InPortCorbaCdrProvider |
void |
destructor_(java.lang.Object obj)
Destructs InPortCorbaCdrProvider |
void |
init(Properties prop)
Initializing configuration |
static void |
InPortCorbaCdrProviderInit()
Module initialization |
boolean |
publishInterface(NVListHolder properties)
Publish interface information |
void |
publishInterfaceProfile(NVListHolder properties)
Publish InterfaceProfile information |
PortStatus |
put(byte[] data)
[CORBA interface] Write data into the buffer |
PortStatus |
put(CdrDataHolder data)
[CORBA interface] Write data into the buffer |
void |
setBuffer(BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
Setting outside buffer's pointer |
void |
setConnector(InPortConnector connector)
set Connector |
protected void |
setDataFlowType(java.lang.String dataflowType)
Sets data flow type of the interface profile |
protected void |
setDataType(java.lang.String dataType)
Sets DataType of the interface profile |
protected void |
setInterfaceType(java.lang.String interfaceType)
Sets interface Type of the interface profile |
void |
setListener(ConnectorBase.ConnectorInfo info,
ConnectorListeners listeners)
Set the listener. |
protected void |
setSubscriptionType(java.lang.String subscriptionType)
Sets subscription type of the interface profile |
Methods inherited from class OpenRTM.InPortCdrPOA |
---|
_all_interfaces, _invoke, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NVListHolder m_properties
インタフェース情報を保持するオブジェクトです。
Constructor Detail |
---|
public InPortCorbaCdrProvider()
Method Detail |
---|
public InPortCdr _this()
_this
in class InPortCdrPOA
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 InPortProvider
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 InPortProvider
buffer
-
A pointer to a data buffer to be used by OutPortProviderpublic PortStatus put(byte[] data) throws org.omg.CORBA.SystemException
Write data into the specified buffer.
put
in interface InPortCdrOperations
data
-
The target data for writing
org.omg.CORBA.SystemException
public PortStatus put(CdrDataHolder data) throws org.omg.CORBA.SystemException
Write data into the specified buffer.
data
-
The target data for writing
org.omg.CORBA.SystemException
protected PortStatus convertReturn(ReturnCode status, com.sun.corba.se.impl.encoding.EncapsOutputStream data)
status
-
ReturnCode
public InPortProvider creator_()
creator_
in interface ObjectCreator<InPortProvider>
public void destructor_(java.lang.Object obj)
destructor_
in interface ObjectDestructor
obj
-
The target instances for destructionpublic static void InPortCorbaCdrProviderInit()
This initialization function registers InPortCorbaCdrConsumer's factory.
public void publishInterfaceProfile(NVListHolder properties)
Publish interfaceProfile information. Check the dataport.interface_type value of the NameValue object specified by an argument in property information and get information only when the interface type of the specified port is matched.
publishInterfaceProfile
in interface InPortProvider
properties
-
Holder object to get InterfaceProfile informationpublic boolean publishInterface(NVListHolder properties)
Publish interface information. Check the dataport.interface_type value of the NameValue object specified by an argument in the property information, and add the information to the NameValue if this port is not specified. This does not do anything if the same interface is already subscribed.
publishInterface
in interface InPortProvider
properties
-
Holder object to receive interface information
public void setListener(ConnectorBase.ConnectorInfo info, ConnectorListeners listeners)
InPort 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 InPortCorbaCdrProvider provides the following callbacks.
setListener
in interface InPortProvider
info
-
Connector informationlisteners
-
Listener objectspublic void setConnector(InPortConnector connector)
InPort creates InPortConnector object when it establishes connection between InPort and InPort, and it calls this function with a pointer to the connector object. Since the InPort has the ownership of this connector, InPortProvider should not delete it.
setConnector
in interface InPortProvider
connector
-
InPortConnectorprotected void setDataType(java.lang.String dataType)
dataType
-
dataTypeprotected void setInterfaceType(java.lang.String interfaceType)
interfaceType
-
Intereface Typeprotected void setDataFlowType(java.lang.String dataflowType)
dataflowType
-
Data flow typeprotected void setSubscriptionType(java.lang.String subscriptionType)
subscriptionType
-
Subscription type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |