Orocos Real-Time Toolkit  2.5.0
Public Types | Public Member Functions
RTT::corba::CTaskContext Interface Reference

A CTaskContext is the main entry point of a distributed component and maps to a RTT::TaskContext. More...

import "rtt/transports/corba/TaskContext.idl";

List of all members.

Public Types

typedef sequence< string > CPeerNames

Public Member Functions

string getName ()
 Return the instance name of this component.
string getDescription ()
 Return the description of this component.
CDataFlowInterface ports ()
 Access to the Data Flow ports.
boolean connectPeers (in CTaskContext p)
 Create a two-way peer connection.
boolean disconnectPeers (in string name)
 Destroy a two-way peer connection.
boolean connectPorts (in CTaskContext p)
 Connect all compatible and equally named data ports with another CTaskContext's data ports.
boolean connectServices (in CTaskContext p)
 Connect all compatible and equally named services with another CTaskContext's services.
TaskContext life-cycle
CTaskState getTaskState ()
 Returns the current state of the component.
boolean configure ()
 Configure this component.
boolean start ()
 Start this component.
boolean activate ()
 Activate this component.
boolean stop ()
 Stop this component.
boolean resetException ()
 Asks the component to transition from an Exception state to the Stopped state.
boolean cleanup ()
 Cleanup this component.
boolean isActive ()
 Is this component's ExecutionEngine active ?
boolean isRunning ()
 Is this component running ?
boolean isConfigured ()
 Is this component configured ?
boolean inFatalError ()
 Is this component in a Fatal error state ?
boolean inRunTimeError ()
 Is this component in a RunTime error state ?
CTaskContext services
CService getProvider (in string service_name)
 Get a service.
CServiceRequester getRequester (in string service_name)
 Get a required service.
CTaskContext Browsing functions.
CPeerNames getPeerList ()
 Get a list of all the peers this task is connected to.
CTaskContext getPeer (in string name)
 Get a peer this task is connected to.
boolean hasPeer (in string name)
 Has this task a peer with given name ?
boolean addPeer (in CTaskContext p, in string peer_alias)
 Add a one-way peer connection.
boolean removePeer (in string name)
 Remove a one-way peer connection.

Detailed Description

A CTaskContext is the main entry point of a distributed component and maps to a RTT::TaskContext.

Definition at line 33 of file TaskContext.idl.


Member Function Documentation

Activate this component.

See also:
RTT::base::TaskCore::activate()
boolean RTT::corba::CTaskContext::addPeer ( in CTaskContext  p,
in string  peer_alias 
)

Add a one-way peer connection.

See also:
RTT::TaskContext::addPeer()

Cleanup this component.

See also:
RTT::base::TaskCore::cleanup()

Configure this component.

See also:
RTT::base::TaskCore::configure()

Create a two-way peer connection.

See also:
RTT::TaskContext::connectPeers()

Connect all compatible and equally named data ports with another CTaskContext's data ports.

See also:
RTT::TaskContext::connectPorts()

Connect all compatible and equally named services with another CTaskContext's services.

See also:
RTT::TaskContext::connectServices()
boolean RTT::corba::CTaskContext::disconnectPeers ( in string  name)

Destroy a two-way peer connection.

See also:
RTT::TaskContext::disconnectPeers()

Get a peer this task is connected to.

See also:
RTT::TaskContext::getPeer()

Get a list of all the peers this task is connected to.

See also:
RTT::TaskContext::getPeerList()
CService RTT::corba::CTaskContext::getProvider ( in string  service_name)

Get a service.

Use 'this' as the name to get the task context's own service provider

See also:
RTT::TaskContext::provides()

Get a required service.

See also:
RTT::TaskContext::requires()
boolean RTT::corba::CTaskContext::hasPeer ( in string  name)

Has this task a peer with given name ?

See also:
RTT::TaskContext::hasPeer()

Is this component in a Fatal error state ?

See also:
RTT::base::TaskCore::inFatalError()

Is this component in a RunTime error state ?

See also:
RTT::base::TaskCore::inRunTimeError()

Is this component's ExecutionEngine active ?

See also:
RTT::base::TaskCore::isActive()

Is this component configured ?

See also:
RTT::base::TaskCore::isConfigured()

Is this component running ?

See also:
RTT::base::TaskCore::isRunning()

Access to the Data Flow ports.

See also:
RTT::base::TaskCore::ports()
boolean RTT::corba::CTaskContext::removePeer ( in string  name)

Remove a one-way peer connection.

See also:
RTT::TaskContext::removePeer()

Asks the component to transition from an Exception state to the Stopped state.

See also:
RTT::base::TaskCore::exception() and RTT::base::TaskCore::recover()

Start this component.

See also:
RTT::base::TaskCore::start()

Stop this component.

See also:
RTT::base::TaskCore::stop()

The documentation for this interface was generated from the following file: