|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
OpenRTM.DataFlowComponentPOA
jp.go.aist.rtm.RTC.RTObject_impl
public class RTObject_impl
RT-Component class
This is a class to be a base of each RT-Component.
This is a implementation class of lightweightRTComponent in Robotic
Technology Component specification.
This provides a implementation of ComponentAction interface that offers
the the component's function and the implementation of LightweightRTObject
for management of the component's lifecycle.
When users actually create the components, they should use each subclass
corresponding to Execution Semantics.
(In current implementation, since only Periodic Sampled Data Processing is
supported, this class inherits dataFlowComponent directly.)
Nested Class Summary | |
---|---|
(package private) class |
RTObject_impl.deactivate_comps
Functor to deactivate RTC |
(package private) class |
RTObject_impl.ec_copy
Functor to copy ExecutionContext |
(package private) class |
RTObject_impl.ec_find
Functor to find ExecutionContext |
(package private) class |
RTObject_impl.nv_name
Functor to find NVList |
Field Summary | |
---|---|
(package private) static java.lang.String[] |
default_conf
Default component profile of RT component. |
static int |
ECOTHER_OFFSET
|
protected ComponentActionListeners |
m_actionListeners
ComponentActionListener holder |
protected ConfigAdmin |
m_configsets
Configuration Administrator Object |
protected boolean |
m_created
Created Status Flag |
protected java.util.Vector<ExecutionContextBase> |
m_eclist
List of ExecutionContextBase |
protected ExecutionContextServiceListHolder |
m_ecMine
List of owned ExecutionContextService |
protected ExecutionContextServiceListHolder |
m_ecOther
List of participating ExecutionContextService |
protected java.util.Vector<InPortBase> |
m_inports
List of InPortBase. |
protected RTObject |
m_objref
Object reference |
protected java.util.Vector<OutPortBase> |
m_outports
List of OutPortBase. |
protected Manager |
m_pManager
Manager object |
protected org.omg.CORBA.ORB |
m_pORB
ORB |
protected PortAdmin |
m_portAdmin
List of Port Object reference |
protected org.omg.PortableServer.POA |
m_pPOA
POA |
protected ComponentProfile |
m_profile
ComponentProfile |
protected Properties |
m_properties
RTC's Property |
protected Configuration |
m_pSdoConfig
The SDO Configuration Interface |
protected Configuration_impl |
m_pSdoConfigImpl
The SDO Configuration Object |
protected boolean |
m_readAll
flag for readAll() |
protected boolean |
m_readAllCompletion
flag for readAll() |
protected OrganizationListHolder |
m_sdoOrganizations
SDO organization |
protected OrganizationListHolder |
m_sdoOwnedOrganizations
SDO owned organization list |
protected NVListHolder |
m_sdoStatus
SDO Status |
protected ServiceProfileListHolder |
m_sdoSvcProfiles
SDOService Profile List |
protected boolean |
m_writeAll
flag for writeAll() |
protected boolean |
m_writeAllCompletion
flag for writeAll(). |
protected Logbuf |
rtcout
Logger stream |
Constructor Summary | |
---|---|
RTObject_impl(Manager manager)
Constructor |
|
RTObject_impl(org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa)
Constructor |
Method Summary | ||
---|---|---|
ReturnCode_t |
_finalize()
[CORBA interface] Finalize the RTC for preparing it for destruction |
|
DataFlowComponent |
_this()
Gets DataFlowComponent object. |
|
void |
addExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener)
|
|
void |
addExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener,
boolean autoclean)
Adding ExecutionContextAction type listener |
|
boolean |
addInPort(java.lang.String name,
InPortBase inport)
[local interface] Register DataInPort. |
|
boolean |
addOutPort(java.lang.String name,
OutPortBase outport)
[local interface] Register DataOutPort. |
|
boolean |
addPort(CorbaPort port)
[local interface] Register Port |
|
boolean |
addPort(PortBase port)
[local interface] Register Port |
|
boolean |
addPort(PortService port)
[local interface] Register Port |
|
void |
addPortActionListener(int listener_type,
PortActionListener listener)
|
|
void |
addPortActionListener(int listener_type,
PortActionListener listener,
boolean autoclean)
Adding PortAction type listener |
|
void |
addPostComponentActionListener(int listener_type,
PostComponentActionListener listener)
|
|
void |
addPostComponentActionListener(int listener_type,
PostComponentActionListener listener,
boolean autoclean)
Adding PostComponentAction type listener |
|
void |
addPreComponentActionListener(int listener_type,
PreComponentActionListener listener)
|
|
void |
addPreComponentActionListener(int listener_type,
PreComponentActionListener listener,
boolean autoclean)
Adding PreComponentAction type listener |
|
int |
attach_context(ExecutionContext exec_context)
[CORBA interface] Attach ExecutionContext |
|
int |
bindContext(ExecutionContext exec_context)
Binds ExecutionContext. |
|
boolean |
bindParameter(java.lang.String param_name,
ValueHolder var,
java.lang.String def_val)
Setup for configuration parameters |
|
void |
deletePort(CorbaPort port)
[local interface] Unregister Port |
|
void |
deletePort(PortBase port)
[local interface] Unregister Port |
|
void |
deletePort(PortService port)
[local interface] Unregister Port |
|
void |
deletePortByName(java.lang.String port_name)
[local interface] Delete Port by specifying its name |
|
ReturnCode_t |
detach_context(int ec_id)
[CORBA interface] Detach ExecutionContext. |
|
ReturnCode_t |
exit()
[CORBA interface]top the RTC's execution context(s) and finalize it along with its contents. |
|
void |
finalizeContexts()
The ExecutionContextBase list is deleted. |
|
void |
finalizePorts()
Unregister All Ports |
|
ComponentProfile |
get_component_profile()
[RTObject CORBA interface] Get RTC's profile |
|
Configuration |
get_configuration()
[SDO interface] Get Configuration object |
|
int |
get_context_handle(ExecutionContext cxt)
[CORBA interface] Return a handle of a ExecutionContext |
|
ExecutionContext |
get_context(int ec_id)
[CORBA interface] Get ExecutionContext. |
|
DeviceProfile |
get_device_profile()
[SDO interface] Get SDO DeviceProfile list |
|
Monitoring |
get_monitoring()
[SDO interface] Get Monitoring object |
|
Organization[] |
get_organizations()
[SDO interface] Get Organization list |
|
ExecutionContext[] |
get_owned_contexts()
[CORBA interface] Get ExecutionContextList. |
|
Organization[] |
get_owned_organizations()
[SDO interface] Get Organization list |
|
ExecutionContext[] |
get_participating_contexts()
[CORBA interface] Get participating ExecutionContextList. |
|
PortService[] |
get_ports()
[RTObject CORBA interface] Get Ports |
|
java.lang.String |
get_sdo_id()
[SDO interface] Get the SDO ID |
|
SDOService |
get_sdo_service(java.lang.String id)
[SDO interface] Get specified SDO Service's reference |
|
java.lang.String |
get_sdo_type()
[SDO interface] Get SDO type |
|
ServiceProfile |
get_service_profile(java.lang.String id)
[SDO interface] Get specified ServiceProfile |
|
ServiceProfile[] |
get_service_profiles()
[SDO interface] Get SDO ServiceProfile |
|
NameValue[] |
get_status_list()
[SDO interface] Get SDO Status list |
|
org.omg.CORBA.Any |
get_status(java.lang.String name)
[SDO interface] Get SDO Status |
|
java.lang.String |
getCategory()
[local interface] Get category information |
|
java.lang.String |
getInstanceName()
[local interface] Get instance name |
|
java.lang.String[] |
getNamingNames()
[local interface] Get Naming Server information |
|
RTObject |
getObjRef()
[local interface] Get the object reference |
|
Properties |
getProperties()
[local interface] Get RTC property |
|
java.lang.String |
getTypeName()
[local interface] Get type name |
|
ReturnCode_t |
initialize()
[CORBA interface] IInitialize the RTC that realizes this interface. |
|
boolean |
is_alive(ExecutionContext exec_context)
[CORBA interface] Confirm whether RTC is the alive state |
|
ReturnCode_t |
on_aborting(int ec_id)
[ComponentAction CORBA interface] Transition to Error State |
|
ReturnCode_t |
on_activated(int ec_id)
[ComponentAction CORBA interface] Activate RTC |
|
ReturnCode_t |
on_deactivated(int ec_id)
[ComponentAction CORBA interface] Deactivate RTC |
|
ReturnCode_t |
on_error(int ec_id)
[ComponentAction CORBA interface] Error Processing of RTC |
|
ReturnCode_t |
on_execute(int ec_id)
[DataFlowComponentAction CORBA interface] Primary Periodic Operation of RTC |
|
ReturnCode_t |
on_finalize()
[ComponentAction CORBA interface] Finalize RTC |
|
ReturnCode_t |
on_initialize()
[ComponentAction CORBA interface] Initialize RTC |
|
ReturnCode_t |
on_rate_changed(int ec_id)
[DataFlowComponentAction CORBA interface] Notify rate changed |
|
ReturnCode_t |
on_reset(int ec_id)
[ComponentAction CORBA interface] Resetting RTC |
|
ReturnCode_t |
on_shutdown(int ec_id)
[ComponentAction CORBA interface] Shutdown RTC |
|
ReturnCode_t |
on_startup(int ec_id)
[ComponentAction CORBA interface] Startup RTC |
|
ReturnCode_t |
on_state_update(int ec_id)
[DataFlowComponentAction CORBA interface] Secondary Periodic Operation of RTC |
|
protected ReturnCode_t |
onAborting(int ec_id)
Callback function to abort |
|
protected ReturnCode_t |
onActivated(int ec_id)
Callback function to activate |
|
protected void |
onAddPort(PortProfile pprof)
|
|
protected void |
onAttachExecutionContext(int ec_id)
|
|
protected ReturnCode_t |
onDeactivated(int ec_id)
Callback function to deactivate |
|
protected void |
onDetachExecutionContext(int ec_id)
|
|
protected ReturnCode_t |
onError(int ec_id)
Callback function for error handling |
|
protected ReturnCode_t |
onExecute(int ec_id)
[@.en Callback function to execute periodically} |
|
protected ReturnCode_t |
onFinalize()
Callback function to finalize |
|
protected ReturnCode_t |
onInitialize()
Callback function to initialize |
|
protected ReturnCode_t |
onRateChanged(int ec_id)
Callback function to change execution cycle |
|
protected void |
onRemovePort(PortProfile pprof)
|
|
protected ReturnCode_t |
onReset(int ec_id)
Callback function to reset |
|
protected ReturnCode_t |
onShutdown(int ec_id)
Callback function for shutdown action |
|
protected ReturnCode_t |
onStartup(int ec_id)
Callback function for startup action |
|
protected ReturnCode_t |
onStateUpdate(int ec_id)
Callback function to update the state |
|
protected void |
postOnAborting(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnActivated(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnDeactivated(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnError(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnExecute(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnFinalize(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnInitialize(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnRateChanged(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnReset(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnShutdown(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnStartup(int ec_id,
ReturnCode_t ret)
|
|
protected void |
postOnStateUpdate(int ec_id,
ReturnCode_t ret)
|
|
protected void |
preOnAborting(int ec_id)
|
|
protected void |
preOnActivated(int ec_id)
|
|
protected void |
preOnDeactivated(int ec_id)
|
|
protected void |
preOnError(int ec_id)
|
|
protected void |
preOnExecute(int ec_id)
|
|
protected void |
preOnFinalize(int ec_id)
|
|
protected void |
preOnInitialize(int ec_id)
|
|
protected void |
preOnRateChanged(int ec_id)
|
|
protected void |
preOnReset(int ec_id)
|
|
protected void |
preOnShutdown(int ec_id)
|
|
protected void |
preOnStartup(int ec_id)
|
|
protected void |
preOnStateUpdate(int ec_id)
|
|
boolean |
readAll()
Readout the value from All InPorts. |
|
|
registerInPort(java.lang.Class<DataType> DATA_TYPE_CLASS,
java.lang.String name,
InPort<DataType> inport)
[local interface] Register DataInPort. |
|
void |
registerInPort(java.lang.String name,
InPortBase inport)
[local interface] Register DataInPort. |
|
|
registerOutPort(java.lang.Class<DataType> DATA_TYPE_CLASS,
java.lang.String name,
OutPort<DataType> outport)
[local interface] Register DataOutPort. This operation registers DataOutPor held by this RTC. |
|
void |
registerOutPort(java.lang.String name,
OutPortBase outport)
[local interface] Register DataOutPort |
|
void |
registerPort(CorbaPort port)
[local interface] Register Port |
|
void |
registerPort(PortBase port)
[local interface] Register Port |
|
void |
registerPort(PortService port)
[local interface] Register Port |
|
void |
removeExecutionContextActionListener(int listener_type,
ExecutionContextActionListener listener)
@brief Removing ExecutionContextAction type listener |
|
boolean |
removeInPort(InPortBase port)
[local interface] Unregister InPort |
|
boolean |
removeOutPort(OutPortBase port)
[local interface] Unregister OutPort. |
|
boolean |
removePort(CorbaPort port)
[local interface] Unregister Port |
|
boolean |
removePort(PortBase port)
[local interface] Unregister Port |
|
boolean |
removePort(PortService port)
[local interface] Unregister Port |
|
void |
removePortActionListener(int listener_type,
PortActionListener listener)
Removing PortAction type listener |
|
void |
removePostComponentActionListener(int listener_type,
PostComponentActionListener listener)
Removing PostComponentAction type listener |
|
void |
removePreComponentActionListener(int listener_type,
PreComponentActionListener listener)
Removing PreComponentAction type listener |
|
void |
setInstanceName(java.lang.String instance_name)
[local interface] Set instance name |
|
void |
setObjRef(RTObject rtobj)
[local interface] Set the object reference |
|
void |
setProperties(Properties prop)
[local interface] Set RTC property |
|
void |
setReadAll()
Set whether to execute the readAll() method. |
|
void |
setReadAll(boolean read)
Set whether to execute the readAll() method. |
|
void |
setReadAll(boolean read,
boolean completion)
Set whether to execute the readAll() method. |
|
void |
setWriteAll()
Set whether to execute the writeAll() method. |
|
void |
setWriteAll(boolean write)
Set whether to execute the writeAll() method. |
|
void |
setWriteAll(boolean write,
boolean completion)
Set whether to execute the writeAll() method. |
|
protected void |
shutdown()
Shutdown RTC |
|
protected void |
syncAttributesByProperties()
Sets property |
|
void |
updateParameters(java.lang.String config_set)
Update configuration parameters |
|
boolean |
writeAll()
The write() method of all OutPorts are called. |
Methods inherited from class OpenRTM.DataFlowComponentPOA |
---|
_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 |
---|
static final java.lang.String[] default_conf
public static final int ECOTHER_OFFSET
protected Manager m_pManager
protected org.omg.CORBA.ORB m_pORB
protected org.omg.PortableServer.POA m_pPOA
protected OrganizationListHolder m_sdoOwnedOrganizations
protected ServiceProfileListHolder m_sdoSvcProfiles
protected Configuration_impl m_pSdoConfigImpl
protected Configuration m_pSdoConfig
protected OrganizationListHolder m_sdoOrganizations
protected NVListHolder m_sdoStatus
protected ComponentProfile m_profile
protected RTObject m_objref
protected PortAdmin m_portAdmin
protected ExecutionContextServiceListHolder m_ecMine
protected java.util.Vector<ExecutionContextBase> m_eclist
protected ExecutionContextServiceListHolder m_ecOther
protected boolean m_created
protected Properties m_properties
protected ConfigAdmin m_configsets
protected Logbuf rtcout
protected java.util.Vector<InPortBase> m_inports
protected java.util.Vector<OutPortBase> m_outports
protected boolean m_readAll
protected boolean m_writeAll
protected boolean m_readAllCompletion
true:Even if the error occurs during readAll(), it executes it to the last minute. false:End when error occurs during readAll().
protected boolean m_writeAllCompletion
true:Even if the error occurs during writeAll(), it executes it to the last minute. false:End when error occurs during writeAll().
protected ComponentActionListeners m_actionListeners
Holders of ComponentActionListeners
Constructor Detail |
---|
public RTObject_impl(Manager manager)
manager
-
Manager objectpublic RTObject_impl(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa)
orb
-
ORBpoa
-
POAMethod Detail |
---|
public DataFlowComponent _this()
Gets OpenRTM.DataFlowComponent object.
_this
in class DataFlowComponentPOA
protected ReturnCode_t onInitialize()
This is a callback function that is executed when
ComponentAction::on_initialize was invoked.
As for actual initialization of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
protected ReturnCode_t onFinalize()
This is a callback function that is executed when
ComponentAction::on_finalize was invoked.
As for actual finalization of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
protected ReturnCode_t onStartup(int ec_id)
Callback function that is executed when
ComponentAction::on_startup was invoked.
As for actual startup of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onShutdown(int ec_id)
Callback function that is executed when
ComponentAction::on_shutdown was invoked.
As for actual shutdown of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onActivated(int ec_id)
This is a callback function that is executed when
ComponentAction::on_activated was invoked.
As for actual activation of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onDeactivated(int ec_id)
This is a callback function that is executed when
ComponentAction::on_deactivated was invoked.
As for actual deactivation of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onExecute(int ec_id)
This is a callback function that is executed when
DataFlowComponentAction::on_execute is invoked.
As for actual periodic execution of each component,
since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
This function is invoked periodically as the first execution pass of
Two-Pass Execution in Periodic Sampled Data Processing.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onAborting(int ec_id)
This is a callback function that is executed when
ComponentAction::on_aborting was invoked.
As for actual abortion of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onError(int ec_id)
This is a callback function that is executed when
ComponentAction::on_error was invoked.
As for actual error handling of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onReset(int ec_id)
This is a callback function that is executed when
ComponentAction::on_reset was invoked.
As for actual reset of each component, since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onStateUpdate(int ec_id)
This is a callback function that is executed when
DataFlowComponentAction::on_state_update was invoked.
As for actual updating the state of each component,
since this function is
dummy-implemented to return RTC::RTC_OK unconditionally, you need to
implement this function by overriding it.
This function is invoked periodically as the second execution pass of
Two-Pass Execution in Periodic Sampled Data Processing.
ec_id
-
ID of the participant ExecutionContext
protected ReturnCode_t onRateChanged(int ec_id)
This is a callback function that is executed when
DataFlowComponentAction::on_rate_changed was invoked.
As for actual changing execution cycle of each component, since this
function is dummy-implemented to return RTC::RTC_OK unconditionally,
you need to implement this function by overriding it.
This function is invoked when the execution of ExecutionContext
was updated in Periodic Sampled Data Processing.
ec_id
-
ID of the participant ExecutionContext
public ReturnCode_t initialize()
The invocation of this operation shall result in the invocation of the callback ComponentAction::on_initialize. Constraints
public ReturnCode_t _finalize() throws org.omg.CORBA.SystemException
This invocation of this operation shall result in the invocation of the callback ComponentAction::on_finalize. Constraints
org.omg.CORBA.SystemException
public ReturnCode_t exit() throws org.omg.CORBA.SystemException
Any execution contexts for which the RTC is the owner shall be stopped. If the RTC participates in any execution contexts belonging to another RTC that contains it, directly or indirectly (i.e. the containing RTC is the owner of the ExecutionContext), it shall be deactivated in those contexts. After the RTC is no longer Active in any Running execution context, it and any RTCs contained transitively within it shall be finalized. Constraints
org.omg.CORBA.SystemException
public boolean is_alive(ExecutionContext exec_context) throws org.omg.CORBA.SystemException
A component is alive or not regardless of the execution context from which it is observed. However, whether or not it is Active, Inactive, or in Error is dependent on the execution context(s) in which it is running. That is, it may be Active in one context but Inactive in another. Therefore, this operation shall report whether this RTC is either Active, Inactive or in Error; which of those states a component is in with respect to a particular context may be queried from the context itself.
org.omg.CORBA.SystemException
public ExecutionContext[] get_owned_contexts() throws org.omg.CORBA.SystemException
This operation returns a list of all execution contexts owned by this RTC.
org.omg.CORBA.SystemException
public ExecutionContext get_context(int ec_id)
Obtain a reference to the execution context represented by the given handle. The mapping from handle to context is specific to a particular RTC instance. The given handle must have been obtained by a previous call to attach_context on this RTC.
ec_id
-
ExecutionContext handle
public ExecutionContext[] get_participating_contexts() throws org.omg.CORBA.SystemException
This operation returns a list of all execution contexts in which this RTC participates.
org.omg.CORBA.SystemException
public int get_context_handle(ExecutionContext cxt) throws org.omg.CORBA.SystemException
This operation returns a handle that is associated with the given execution context.
cxt
-
ExecutionContext
org.omg.CORBA.SystemException
public int bindContext(ExecutionContext exec_context)
exec_context
-
ExecutionContext
public ComponentProfile get_component_profile()
This operation returns the ComponentProfile of the RTC.
public PortService[] get_ports()
This operation returns the reference of ports held by RTC.
public int attach_context(ExecutionContext exec_context) throws org.omg.CORBA.SystemException
Inform this RTC that it is participating in the given execution context. Return a handle that represents the association of this RTC with the context. This operation is intended to be invoked by ExecutionContextOperations::add_component. It is not intended for use by other clients.
exec_context
-
Participating ExecutionContext
org.omg.CORBA.SystemException
public ReturnCode_t detach_context(int ec_id) throws org.omg.CORBA.SystemException
Inform this RTC that it is no longer participating in the given execution context. This operation is intended to be invoked by ExecutionContextOperations::remove. It is not intended for use by other clients. Constraints
ec_id
-
Detaching ExecutionContext Handle
org.omg.CORBA.SystemException
public ReturnCode_t on_initialize()
The RTC has been initialized and entered the Alive state. Any RTC-specific initialization logic should be performed here. As a result of this operation, onInitialize() callback function is called.
public ReturnCode_t on_finalize()
The RTC is being destroyed. Any final RTC-specific tear-down logic should be performed here. As a result of this operation, onFinalize() callback function is called.
public ReturnCode_t on_startup(int ec_id)
The given execution context, in which the RTC is participating, has transitioned from Stopped to Running. As a result of this operation, onStartup() callback function is called.
ec_id
-
ID of ExecutionContext that transited to the state
public ReturnCode_t on_shutdown(int ec_id)
The given execution context, in which the RTC is participating, has transitioned from Running to Stopped. As a result of this operation, onShutdown() callback function is called.
ec_id
-
ID of ExecutionContext that transited to the state
public ReturnCode_t on_activated(int ec_id)
The RTC has been activated in the given execution context. As a result of this operation, onActivated() callback function is called.
ec_id
-
ID of activation ExecutionContext
public ReturnCode_t on_deactivated(int ec_id)
The RTC has been deactivated in the given execution context. As a result of this operation, onDeactivated() callback function is called.
ec_id
-
ID of deactivation ExecutionContext
public ReturnCode_t on_aborting(int ec_id)
The RTC is transitioning from the Active state to the Error state in some execution context. This callback is invoked only a single time for time that the RTC transitions into the Error state from another state. This behavior is in contrast to that of on_error. As a result of this operation, onAborting() callback function is invoked.
ec_id
-
ID of ExecutionContext that transited to the state
public ReturnCode_t on_error(int ec_id)
The RTC remains in the Error state. If the RTC is in the Error state relative to some execution context when it would otherwise be invoked from that context (according to the context’s ExecutionKind), this callback shall be invoked instead. For example,
ec_id
-
ID of target ExecutionContext
public ReturnCode_t on_reset(int ec_id)
The RTC is in the Error state. An attempt is being made to recover it such that it can return to the Inactive state. If the RTC was successfully recovered and can safely return to the Inactive state, this method shall complete with ReturnCode_t::OK. Any other result shall indicate that the RTC should remain in the Error state. As a result of this operation, onReset() callback function is invoked.
ec_id
-
ID of target ExecutionContext for the reset
public ReturnCode_t on_execute(int ec_id)
The component is called during the state of Avtive.
ec_id
-
ID of ExecutionContext
public ReturnCode_t on_state_update(int ec_id)
This operation will be invoked periodically at the rate of the given execution context as long as the following conditions hold:
ec_id
-
ID of target ExecutionContext for Secondary Periodic Operation
public ReturnCode_t on_rate_changed(int ec_id)
This operation is a notification that the rate of the indicated execution context has changed. As a result of this operation, onRateChanged() callback function is called. Constraints
ec_id
-
ID of target ExecutionContext for Operation
public Organization[] get_owned_organizations() throws NotAvailable
SDOSystemElement can be the owner of zero or more organizations. If the SDOSystemElement owns one or more Organizations, this operation returns the list of Organizations that the SDOSystemElement owns. If it does not own any Organization, it returns empty list.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public java.lang.String get_sdo_id() throws NotAvailable, InternalError
This operation returns id of the SDO. This operation throws SDOException with one of the following types.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public java.lang.String get_sdo_type() throws NotAvailable, InternalError
This operation returns sdoType of the SDO. This operation throws SDOException with one of the following types.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public DeviceProfile get_device_profile() throws NotAvailable, InternalError
This operation returns the DeviceProfile of the SDO. If the SDO does not represent any hardware device, then a DeviceProfile with empty values are returned. This operation throws SDOException with one of the following types.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public ServiceProfile[] get_service_profiles() throws NotAvailable, InternalError
This operation returns a list of ServiceProfiles that the SDO has. If the SDO does not provide any service, then an empty list is returned. This operation throws SDOException with one of the following types.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public ServiceProfile get_service_profile(java.lang.String id) throws InvalidParameter, NotAvailable, InternalError
This operation returns the ServiceProfile that is specified by the argument "id."
id
-
The identifier referring to one of the ServiceProfiles.
InvalidParameter
-
The ServiceProfile that is specified by
the argument 'id' does not exist or if 'id'
is 'null.'
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public SDOService get_sdo_service(java.lang.String id) throws InvalidParameter, NotAvailable, InternalError
This operation returns an object implementing an SDO's service that is identified by the identifier specified as an argument. Different services provided by an SDO are distinguished with different identifiers. See OMG SDO specification Section 2.2.8, "ServiceProfile," on page 2-12 for more details.
id
-
The identifier referring to one of the SDO Service
InvalidParameter
-
Argument “id” is null, or if the
ServiceProfile that is specified by argument
"id" does not exist.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public Configuration get_configuration() throws InterfaceNotImplemented, NotAvailable, InternalError
This operation returns an object implementing the Configuration interface. The Configuration interface is one of the interfaces that each SDO maintains. The interface is used to configure the attributes defined in DeviceProfile, ServiceProfile, and Organization. See OMG SDO specification Section 2.3.5, "Configuration Interface," on page 2-24 for more details about the Configuration interface.
InterfaceNotImplemented
-
The target SDO has no Configuration
interface.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public Monitoring get_monitoring() throws InterfaceNotImplemented, NotAvailable, InternalError
This operation returns an object implementing the Monitoring interface. The Monitoring interface is one of the interfaces that each SDO maintains. The interface is used to monitor the properties of an SDO. See OMG SDO specification Section 2.3.7, "Monitoring Interface," on page 2-35 for more details about the Monitoring interface.
InterfaceNotImplemented
-
The target SDO has no Configuration
interface.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public Organization[] get_organizations() throws NotAvailable, InternalError
An SDO belongs to zero or more organizations. If the SDO belongs to one or more organizations, this operation returns the list of organizations that the SDO belongs to. An empty list is returned if the SDO does not belong to any Organizations.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public NameValue[] get_status_list() throws NotAvailable, InternalError
This operation returns an NVlist describing the status of an SDO.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public org.omg.CORBA.Any get_status(java.lang.String name) throws InvalidParameter, NotAvailable, InternalError
This operation returns the value of the specified status parameter.
name
-
One of the parameters defining the "status" of an SDO.
SDONotExists
-
The target SDO does not exist.(This exception
is mapped to CORBA standard system exception
OBJECT_NOT_EXIST.)
NotAvailable
-
The target SDO is reachable but cannot respond.
InvalidParameter
-
The parameter defined by "name" is null or
does not exist.
InternalError
-
The target SDO cannot execute the operation
completely due to some internal error.public final java.lang.String getInstanceName()
Return the instance name that has been set in ComponentProfile.
public void setInstanceName(java.lang.String instance_name)
Set the instance name specified in ComponentProfile.
instance_name
-
Instance namepublic final java.lang.String getTypeName()
Get the type name has been set in ComponentProfile.
public final java.lang.String getCategory()
Get the category information that has been set in ComponentProfile.
public java.lang.String[] getNamingNames()
Get Naming Server information that has been set.
public void setObjRef(RTObject rtobj)
Set RTC's CORBA object reference.
rtobj
-
The object referencepublic final RTObject getObjRef()
Get CORBA object reference that has been set
public void setProperties(Properties prop)
This operation sets the properties to the RTC. The given property values should include information for ComponentProfile. Generally, this operation is designed to be called from Manager, when RTC is initialized
prop
-
Property for RTC.protected void syncAttributesByProperties() throws java.lang.Exception
java.lang.Exception
public Properties getProperties()
This operation returns the properties of the RTC. Empty property would be returned, if RTC has no property.
public boolean bindParameter(java.lang.String param_name, ValueHolder var, java.lang.String def_val)
Bind configuration parameter to its variable.
Specify the data type of configuration parameter as \
param_name
-
Configuration parameter namevar
-
Variables to store configuration parameterdef_val
-
Default value of configuration parameter
public void updateParameters(java.lang.String config_set)
Update configuration parameter value by the value that set to a configuration set of specified ID.
config_set
-
The target configuration set's ID for setuppublic void registerPort(PortBase port)
This operation registers a Port held by this RTC. In order to enable access to the Port from outside of RTC, the Port must be registered by this operation. The Port that is registered by this operation would be identified by PortProfile.name in the inside of RTC. Therefore, the Port should have unique PortProfile.name in the RTC. The registering Port would be activated properly, and the reference and the object reference would be stored in lists in RTC.
port
-
Port which is registered to the RTCpublic boolean addPort(PortBase port)
This operation registers a Port held by this RTC. In order to enable access to the Port from outside of RTC, the Port must be registered by this operation. The Port that is registered by this operation would be identified by PortProfile.name in the inside of RTC. Therefore, the Port should have unique PortProfile.name in the RTC. The registering Port would be activated properly, and the reference and the object reference would be stored in lists in RTC.
port
-
Port which is registered to the RTC
public void registerPort(PortService port)
This operation registers a Port held by this RTC. In order to enable access to the Port from outside of RTC, the Port must be registered by this operation. The Port that is registered by this operation would be identified by PortProfile.name in the inside of RTC. Therefore, the Port should have unique PortProfile.name in the RTC. The registering Port would be activated properly, and the reference and the object reference would be stored in lists in RTC.
port
-
Port which is registered to the RTCpublic boolean addPort(PortService port)
This operation registers a Port held by this RTC. In order to enable access to the Port from outside of RTC, the Port must be registered by this operation. The Port that is registered by this operation would be identified by PortProfile.name in the inside of RTC. Therefore, the Port should have unique PortProfile.name in the RTC. The registering Port would be activated properly, and the reference and the object reference would be stored in lists in RTC.
port
-
Port which is registered to the RTC
public void registerPort(CorbaPort port)
This operation registers a Port held by this RTC. In order to enable access to the Port from outside of RTC, the Port must be registered by this operation. The Port that is registered by this operation would be identified by PortProfile.name in the inside of RTC. Therefore, the Port should have unique PortProfile.name in the RTC. The registering Port would be activated properly, and the reference and the object reference would be stored in lists in RTC.
port
-
Port which is registered to the RTCpublic boolean addPort(CorbaPort port)
This operation registers a Port held by this RTC. In order to enable access to the Port from outside of RTC, the Port must be registered by this operation. The Port that is registered by this operation would be identified by PortProfile.name in the inside of RTC. Therefore, the Port should have unique PortProfile.name in the RTC. The registering Port would be activated properly, and the reference and the object reference would be stored in lists in RTC.
port
-
Port which is registered to the RTC
public <DataType,Buffer> void registerInPort(java.lang.Class<DataType> DATA_TYPE_CLASS, java.lang.String name, InPort<DataType> inport) throws java.lang.Exception
This operation registers DataInPort held by this RTC.
DATA_TYPE_CLASS
-
Data typename
-
InPort nameinport
-
InPort which is registered to the RTC
java.lang.Exception
public boolean addInPort(java.lang.String name, InPortBase inport)
This operation registers DataInPort held by this RTC. Set "port.dataport" and "tcp_any" to property of Port, and create instances of DataInPort and register it.
name
-
Port nameinport
-
DataInPort which is registered to the RTC
public void registerInPort(java.lang.String name, InPortBase inport) throws java.lang.Exception
This operation registers DataInPort held by this RTC. Set "port.dataport" and "tcp_any" to property of Port, and create instances of DataInPort and register it.
name
-
name Port nameinport
-
DataInPort which is registered to the RTC
java.lang.Exception
public boolean addOutPort(java.lang.String name, OutPortBase outport)
This operation registers DataOutPor held by this RTC. Set "port.dataport" and "tcp_any" to property of Port, and then create instances of DataOutPort and register it.
name
- i
Port nameoutport
-
DataOutPort which is registered to the RTC
public <DataType,Buffer> void registerOutPort(java.lang.Class<DataType> DATA_TYPE_CLASS, java.lang.String name, OutPort<DataType> outport) throws java.lang.Exception
DATA_TYPE_CLASS
-
Data typename
-
DataOutPort nameoutport
-
OutPort which is registered to the RTC
java.lang.Exception
public void registerOutPort(java.lang.String name, OutPortBase outport) throws java.lang.Exception
This operation registers DataOutPor held by this RTC. Set "port.dataport" and "tcp_any" to property of Port, and then create instances of DataOutPort and register it.
name
-
Port nameoutport
-
DataOutPort which is registered to the RTC
java.lang.Exception
public boolean removeInPort(InPortBase port)
This operation unregisters a InPort held by this RTC.
port
-
Port which is unregistered
public boolean removeOutPort(OutPortBase port)
This operation unregisters a OutPort held by this RTC.
port
-
Port which is unregistered
public boolean removePort(PortBase port)
This operation unregisters a Port held by this RTC.
port
-
Port which is unregistered
public boolean removePort(PortService port)
This operation unregisters a Port held by this RTC.
port
-
Port which is unregistered
public boolean removePort(CorbaPort port)
This operation unregisters a Port held by this RTC.
port
-
Port which is unregistered
public void deletePort(PortBase port)
This operation unregisters a Port held by this RTC.
port
-
Port which is unregisteredpublic void deletePort(PortService port)
This operation unregisters a Port held by this RTC.
port
-
Port which is unregisteredpublic void deletePort(CorbaPort port)
This operation unregisters a Port held by this RTC.
port
-
Port which is unregisteredpublic void deletePortByName(java.lang.String port_name)
Delete Port which RTC has by specifying its name.
port_name
-
Name of Port which is deletedpublic boolean readAll()
This operation read the value from all InPort registered in the RTC.
public boolean writeAll()
This operation call the write() method of all OutPort registered in the RTC.
public void setReadAll(boolean read, boolean completion)
Set whether to execute the readAll() method.
read
- (default:true)
(readAll() is called:true, readAll() isn't called:false)completion
- (default:false)
All InPort::read() calls are completed.:true,
If one InPort::read() is False, return false.:falsepublic void setReadAll()
readAll() is called, If one InPort::read() is False, return false.
public void setReadAll(boolean read)
If one InPort::read() is False, return false.
read
- (default:true)
(readAll() is called:true, readAll() isn't called:false)public void setWriteAll(boolean write, boolean completion)
Set whether to execute the writeAll() method.
write
- (default:true)
(writeAll() is called:true, writeAll() isn't called:false)completion
- (default:false)
All OutPort::write() calls are completed.:true,
If one OutPort::write() is False, return false.:falsepublic void setWriteAll()
writeAll() is called, If one OutPort::write() is False, return false.
public void setWriteAll(boolean write)
If one OutPort::write() is False, return false.
write
- (default:true)
(writeAll() is called:true, writeAll() isn't called:false)public void finalizePorts()
This operation deactivates the all Ports and deletes the all Port's registrations in the RTC
public void finalizeContexts()
public void addPreComponentActionListener(int listener_type, PreComponentActionListener listener, boolean autoclean)
This operation adds certain listeners related to ComponentActions pre events. The following listener types are available.
listener_type
-
A listener typelistener
-
A pointer to a listener objectautoclean
-
A flag for automatic listener destructionpublic void addPreComponentActionListener(int listener_type, PreComponentActionListener listener)
public void removePreComponentActionListener(int listener_type, PreComponentActionListener listener)
This operation removes a specified listener.
listener_type
-
A listener typelistener
-
A pointer to a listener objectpublic void addPostComponentActionListener(int listener_type, PostComponentActionListener listener, boolean autoclean)
{This operation adds certain listeners related to ComponentActions post events. The following listener types are available.
listener_type
-
A listener typelistener
-
A pointer to a listener objectautoclean
-
A flag for automatic listener destructionpublic void addPostComponentActionListener(int listener_type, PostComponentActionListener listener)
public void removePostComponentActionListener(int listener_type, PostComponentActionListener listener)
This operation removes a specified listener.
listener_type
-
A listener typelistener
-
A pointer to a listener objectpublic void addPortActionListener(int listener_type, PortActionListener listener, boolean autoclean)
This operation adds certain listeners related to ComponentActions post events. The following listener types are available.
listener_type
-
A listener typelistener
-
A pointer to a listener objectautoclean
-
A flag for automatic listener destructionpublic void addPortActionListener(int listener_type, PortActionListener listener)
public void removePortActionListener(int listener_type, PortActionListener listener)
This operation removes a specified listener.
listener_type
-
A listener typelistener
-
A pointer to a listener objectpublic void addExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener, boolean autoclean)
This operation adds certain listeners related to ComponentActions post events. The following listener types are available.
listener_type
-
A listener typelistener
-
A pointer to a listener objectautoclean
-
A flag for automatic listener destructionpublic void addExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener)
public void removeExecutionContextActionListener(int listener_type, ExecutionContextActionListener listener)
This operation removes a specified listener.
listener_type
-
A listener typelistener
-
A pointer to a listener objectprotected void shutdown()
This operation ececutes RTC's termination. This unregisters all Ports, deactivates corresponding CORBA objects and shuts down RTC.
protected void preOnInitialize(int ec_id)
protected void preOnFinalize(int ec_id)
protected void preOnStartup(int ec_id)
protected void preOnShutdown(int ec_id)
protected void preOnActivated(int ec_id)
protected void preOnDeactivated(int ec_id)
protected void preOnAborting(int ec_id)
protected void preOnError(int ec_id)
protected void preOnReset(int ec_id)
protected void preOnExecute(int ec_id)
protected void preOnStateUpdate(int ec_id)
protected void preOnRateChanged(int ec_id)
protected void postOnInitialize(int ec_id, ReturnCode_t ret)
protected void postOnFinalize(int ec_id, ReturnCode_t ret)
protected void postOnStartup(int ec_id, ReturnCode_t ret)
protected void postOnShutdown(int ec_id, ReturnCode_t ret)
protected void postOnActivated(int ec_id, ReturnCode_t ret)
protected void postOnDeactivated(int ec_id, ReturnCode_t ret)
protected void postOnAborting(int ec_id, ReturnCode_t ret)
protected void postOnError(int ec_id, ReturnCode_t ret)
protected void postOnReset(int ec_id, ReturnCode_t ret)
protected void postOnExecute(int ec_id, ReturnCode_t ret)
protected void postOnStateUpdate(int ec_id, ReturnCode_t ret)
protected void postOnRateChanged(int ec_id, ReturnCode_t ret)
protected void onAddPort(PortProfile pprof)
protected void onRemovePort(PortProfile pprof)
protected void onAttachExecutionContext(int ec_id)
protected void onDetachExecutionContext(int ec_id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |