Public Member Functions
Tests::DataFlowComponentMock Class Reference
Inheritance diagram for Tests::DataFlowComponentMock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual
RTC::ExecutionContextHandle_t 
attach_context (RTC::_objref_ExecutionContext *)
RTC::UniqueId attach_context (RTC::ExecutionContext_ptr exec_context) throw (CORBA::SystemException)
 DataFlowComponentMock ()
 DataFlowComponentMock (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
virtual RTC::ReturnCode_t detach_context (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t exit ()
 [CORBA interface]top the RTC's execution context(s) and finalize it along with its contents.
virtual RTC::ReturnCode_t finalize ()
 [CORBA interface] Finalize the RTC for destruction
virtual RTC::ComponentProfile * get_component_profile ()
 [RTObject CORBA interface] Get RTC's profile
virtual
SDOPackage::_objref_Configuration * 
get_configuration ()
 [SDO interface] Get Configuration object
virtual
RTC::_objref_ExecutionContext * 
get_context (RTC::ExecutionContextHandle_t)
virtual
RTC::ExecutionContextHandle_t 
get_context_handle (RTC::_objref_ExecutionContext *)
virtual SDOPackage::DeviceProfile * get_device_profile ()
 [SDO interface] Get SDO DeviceProfile list
virtual
SDOPackage::_objref_Monitoring * 
get_monitoring ()
 [SDO interface] Get Monitoring object
virtual
SDOPackage::OrganizationList * 
get_organizations ()
 [SDO interface] Get Organization list
virtual RTC::ExecutionContextList * get_owned_contexts ()
 [CORBA interface] Get ExecutionContextList.
virtual
SDOPackage::OrganizationList * 
get_owned_organizations ()
 [SDO interface] Get Organization list
virtual RTC::ExecutionContextList * get_participating_contexts ()
 [CORBA interface] Get participating ExecutionContextList.
virtual RTC::PortServiceList * get_ports ()
 [RTObject CORBA interface] Get Ports
virtual char * get_sdo_id ()
 [SDO interface] Get the SDO ID
virtual
SDOPackage::_objref_SDOService * 
get_sdo_service (const char *)
 [SDO interface] Get specified SDO Service's reference
virtual char * get_sdo_type ()
 [SDO interface] Get SDO type
virtual
SDOPackage::ServiceProfile * 
get_service_profile (const char *)
 [SDO interface] Get specified ServiceProfile
virtual
SDOPackage::ServiceProfileList * 
get_service_profiles ()
 [SDO interface] Get SDO ServiceProfile
virtual CORBA::Any * get_status (const char *)
 [SDO interface] Get SDO Status
virtual SDOPackage::NVList * get_status_list ()
 [SDO interface] Get SDO Status list
virtual RTC::ReturnCode_t initialize ()
 [CORBA interface] Initialize the RTC that realizes this interface.
virtual CORBA::Boolean is_alive (RTC::_objref_ExecutionContext *)
virtual RTC::ReturnCode_t on_aborting (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_activated (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_deactivated (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_error (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_execute (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_finalize ()
 [ComponentAction CORBA interface] Finalize RTC
virtual RTC::ReturnCode_t on_initialize ()
 [RTObject CORBA interface] Get ExecutionContextAdmin
virtual RTC::ReturnCode_t on_rate_changed (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_reset (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_shutdown (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_startup (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t on_state_update (RTC::ExecutionContextHandle_t)
virtual RTC::ReturnCode_t send_stimulus (const char *, RTC::ExecutionContextHandle_t)
virtual ~DataFlowComponentMock ()

Detailed Description

Definition at line 224 of file ManagerTests.cpp.


Constructor & Destructor Documentation

Tests::DataFlowComponentMock::DataFlowComponentMock ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa 
) [inline]

Definition at line 228 of file ManagerTests.cpp.

Definition at line 44 of file RTCUtilTests.cpp.

Definition at line 45 of file RTCUtilTests.cpp.


Member Function Documentation

virtual RTC::ExecutionContextHandle_t Tests::DataFlowComponentMock::attach_context ( RTC::_objref_ExecutionContext *  ) [inline, virtual]

Definition at line 66 of file RTCUtilTests.cpp.

RTC::UniqueId Tests::DataFlowComponentMock::attach_context ( RTC::ExecutionContext_ptr  exec_context) throw (CORBA::SystemException) [inline]

Definition at line 233 of file ManagerTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::detach_context ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 67 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::exit ( ) [inline, virtual]

[CORBA interface]top the RTC's execution context(s) and finalize it along with its contents.

[CORBA interface] RTC stops ExecutionContext of RTC's owner and finalize it with its contents

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

  • An RTC cannot be exited if it has not yet been initialized. Any attempt to exit an RTC that is in the Created state shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 96 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::finalize ( ) [inline, virtual]

[CORBA interface] Finalize the RTC for destruction

[CORBA interface] Finalize the RTC for preparing it for destruction

This invocation of this operation shall result in the invocation of the callback ComponentAction::on_finalize.

Constraints

  • An RTC may not be finalized while it is participating in any execution context. It must first be removed with ExecutionContextOperations::remove. Otherwise, this operation shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
  • An RTC may not be finalized while it is in the Created state. Any attempt to invoke this operation while in that state shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
  • Application developers are not expected to call this operation directly; it exists for use by the RTC infrastructure.
Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 95 of file RTCUtilTests.cpp.

virtual RTC::ComponentProfile* Tests::DataFlowComponentMock::get_component_profile ( ) [inline, virtual]

[RTObject CORBA interface] Get RTC's profile

[RTCObject CORBA interface] Get RTC's profile

This operation returns the ComponentProfile of the RTC.

Returns:
ComponentProfile

Reimplemented from RTC::RTObject_impl.

Definition at line 101 of file RTCUtilTests.cpp.

virtual SDOPackage::_objref_Configuration* Tests::DataFlowComponentMock::get_configuration ( ) [inline, virtual]

[SDO interface] Get Configuration object

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.

Returns:
The Configuration interface of an SDO.
Exceptions:
InterfaceNotImplementedThe target SDO has no Configuration interface.
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 56 of file RTCUtilTests.cpp.

virtual RTC::_objref_ExecutionContext* Tests::DataFlowComponentMock::get_context ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 98 of file RTCUtilTests.cpp.

virtual RTC::ExecutionContextHandle_t Tests::DataFlowComponentMock::get_context_handle ( RTC::_objref_ExecutionContext *  ) [inline, virtual]

Definition at line 85 of file RTCUtilTests.cpp.

virtual SDOPackage::DeviceProfile* Tests::DataFlowComponentMock::get_device_profile ( ) [inline, virtual]

[SDO interface] Get SDO DeviceProfile list

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.

Returns:
The DeviceProfile of the SDO.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 52 of file RTCUtilTests.cpp.

virtual SDOPackage::_objref_Monitoring* Tests::DataFlowComponentMock::get_monitoring ( ) [inline, virtual]

[SDO interface] Get Monitoring object

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.

Returns:
The Monitoring interface of an SDO.
Exceptions:
InterfaceNotImplementedThe target SDO has no Configuration interface.
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 57 of file RTCUtilTests.cpp.

virtual SDOPackage::OrganizationList* Tests::DataFlowComponentMock::get_organizations ( ) [inline, virtual]

[SDO interface] Get Organization list

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.

Returns:
The list of Organizations that the SDO belong to.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 58 of file RTCUtilTests.cpp.

virtual RTC::ExecutionContextList* Tests::DataFlowComponentMock::get_owned_contexts ( ) [inline, virtual]

[CORBA interface] Get ExecutionContextList.

[CORBA interface] Get ExecutionContextList

This operation returns a list of all execution contexts owned by this RTC.

Returns:
ExecutionContext List

Reimplemented from RTC::RTObject_impl.

Definition at line 77 of file RTCUtilTests.cpp.

virtual SDOPackage::OrganizationList* Tests::DataFlowComponentMock::get_owned_organizations ( ) [inline, virtual]

[SDO interface] Get Organization list

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.

Returns:
Owned Organization List
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 47 of file RTCUtilTests.cpp.

virtual RTC::ExecutionContextList* Tests::DataFlowComponentMock::get_participating_contexts ( ) [inline, virtual]

[CORBA interface] Get participating ExecutionContextList.

This operation returns a list of all execution contexts in which this RTC participates.

Returns:
ExecutionContext List

Reimplemented from RTC::RTObject_impl.

Definition at line 81 of file RTCUtilTests.cpp.

virtual RTC::PortServiceList* Tests::DataFlowComponentMock::get_ports ( ) [inline, virtual]

[RTObject CORBA interface] Get Ports

[RTCObject CORBA interface] Get Ports

This operation returns the reference of ports held by RTC.

Returns:
PortServiceList

Reimplemented from RTC::RTObject_impl.

Definition at line 102 of file RTCUtilTests.cpp.

virtual char* Tests::DataFlowComponentMock::get_sdo_id ( ) [inline, virtual]

[SDO interface] Get the SDO ID

This operation returns id of the SDO. This operation throws SDOException with one of the following types.

Returns:
id of the SDO defined in the resource data model.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 50 of file RTCUtilTests.cpp.

virtual SDOPackage::_objref_SDOService* Tests::DataFlowComponentMock::get_sdo_service ( const char *  id) [inline, virtual]

[SDO interface] Get specified SDO Service's reference

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.

Parameters:
idThe identifier referring to one of the SDO Service
Returns:
The reference requested to SDO Service.
Exceptions:
InvalidParameterArgument ˇČidˇÉ is null, or if the ServiceProfile that is specified by argument ˇČidˇÉ does not exist.
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 55 of file RTCUtilTests.cpp.

virtual char* Tests::DataFlowComponentMock::get_sdo_type ( ) [inline, virtual]

[SDO interface] Get SDO type

This operation returns sdoType of the SDO. This operation throws SDOException with one of the following types.

Returns:
Type of the SDO defined in the resource data model.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 51 of file RTCUtilTests.cpp.

virtual SDOPackage::ServiceProfile* Tests::DataFlowComponentMock::get_service_profile ( const char *  id) [inline, virtual]

[SDO interface] Get specified ServiceProfile

This operation returns the ServiceProfile that is specified by the argument "id."

Parameters:
idThe identifier referring to one of the ServiceProfiles.
Returns:
The profile of the specified service.
Exceptions:
InvalidParameterThe ServiceProfile that is specified by the argument 'id' does not exist or if 'id' is 'null.'
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 54 of file RTCUtilTests.cpp.

virtual SDOPackage::ServiceProfileList* Tests::DataFlowComponentMock::get_service_profiles ( ) [inline, virtual]

[SDO interface] Get SDO ServiceProfile

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.

Returns:
List of ServiceProfiles of all the services the SDO is providing.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 53 of file RTCUtilTests.cpp.

virtual CORBA::Any* Tests::DataFlowComponentMock::get_status ( const char *  name) [inline, virtual]

[SDO interface] Get SDO Status

Parameters:
nameOne of the parameters defining the "status" of an SDO.
Returns:
The value of the specified status parameter.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InvalidParameterThe parameter defined by "name" is null or does not exist.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 60 of file RTCUtilTests.cpp.

virtual SDOPackage::NVList* Tests::DataFlowComponentMock::get_status_list ( ) [inline, virtual]

[SDO interface] Get SDO Status list

This operation returns an NVlist describing the status of an SDO.

Returns:
The actual status of an SDO.
Exceptions:
SDONotExistsThe target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailableThe target SDO is reachable but cannot respond.
InternalErrorThe target SDO cannot execute the operation completely due to some internal error.

Reimplemented from RTC::RTObject_impl.

Definition at line 59 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::initialize ( ) [inline, virtual]

[CORBA interface] Initialize the RTC that realizes this interface.

[CORBA interface] IInitialize the RTC that realizes this interface.

The invocation of this operation shall result in the invocation of the callback ComponentAction::on_initialize.

Constraints

  • An RTC may be initialized only while it is in the Created state. Any attempt to invoke this operation while in another state shall fail with ReturnCode_t::PRECONDITION_NOT_MET.
  • Application developers are not expected to call this operation directly; it exists for use by the RTC infrastructure.
Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 94 of file RTCUtilTests.cpp.

virtual CORBA::Boolean Tests::DataFlowComponentMock::is_alive ( RTC::_objref_ExecutionContext *  ) [inline, virtual]

Definition at line 97 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_aborting ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 74 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_activated ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 72 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_deactivated ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 73 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_error ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 75 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_execute ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 63 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_finalize ( ) [inline, virtual]

[ComponentAction CORBA interface] Finalize RTC

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.

Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 69 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_initialize ( ) [inline, virtual]

[RTObject CORBA interface] Get ExecutionContextAdmin

[ComponentAction CORBA interface] Initialize RTC

This operation returns a list containing an ExecutionContextAdmin for every ExecutionContext owned by the RTC.

Returns:
ExecutionContextService List

[ComponentAction CORBA interface] Initialize RTC

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.

Returns:
The return code of ReturnCode_t type

Reimplemented from RTC::RTObject_impl.

Definition at line 68 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_rate_changed ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 65 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_reset ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 76 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_shutdown ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 71 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_startup ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 70 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::on_state_update ( RTC::ExecutionContextHandle_t  ) [inline, virtual]

Definition at line 64 of file RTCUtilTests.cpp.

virtual RTC::ReturnCode_t Tests::DataFlowComponentMock::send_stimulus ( const char *  ,
RTC::ExecutionContextHandle_t   
) [inline, virtual]

Definition at line 89 of file RTCUtilTests.cpp.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:42