Orocos Real-Time Toolkit  2.8.3
TaskContext.idl
Go to the documentation of this file.
1 #ifndef ORO_CORBA_TASK_CONTEXT_IDL
2 #define ORO_CORBA_TASK_CONTEXT_IDL
3 
10 #include "Service.idl"
11 #include "ServiceRequester.idl"
12 #include "DataFlow.idl"
13 
14 module RTT
15 {
16  module corba
17  {
18 
27 
33  interface CTaskContext
34  {
35  typedef sequence<string> CPeerNames;
36 
40  string getName();
41 
45  string getDescription();
46 
55  CTaskState getTaskState();
56 
61  boolean configure();
62 
67  boolean start();
68 
73  boolean activate();
74 
79  boolean stop();
80 
85  boolean recover();
86 
94  boolean resetException();
95 
100  boolean cleanup();
101 
106  boolean isActive();
107 
112  boolean isRunning();
113 
118  boolean isConfigured();
119 
124  boolean inFatalError();
125 
130  boolean inRunTimeError();
131 
136  boolean inException();
137 
144  CDataFlowInterface ports();
145 
159  CService getProvider( in string service_name );
160 
165  CServiceRequester getRequester( in string service_name );
177  CPeerNames getPeerList( );
178 
183  CTaskContext getPeer( in string name );
184 
189  boolean hasPeer( in string name );
190 
195  boolean addPeer( in CTaskContext p, in string peer_alias );
196 
201  boolean removePeer( in string name );
202 
209  boolean connectPeers( in CTaskContext p );
210 
215  boolean disconnectPeers( in string name );
216 
223  boolean connectPorts( in CTaskContext p );
224 
231  boolean connectServices( in CTaskContext p );
232 
233  };
234  };
235 };
236 
237 #endif
An interface to access the dataflow of a CControlTask object.
Definition: DataFlow.idl:119
An Orocos Required Service.
An Orocos Service which hosts operations, attributes and properties.
Definition: Service.idl:22
sequence< string > CPeerNames
Definition: TaskContext.idl:35
bool connectPorts(TaskContext *A, TaskContext *B)
Connect the Data Flow Ports of A and B in both directions, by matching port names.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:51
CTaskState
Maps 1-to-1 to RTT::base::TaskCore::TaskState.
Definition: TaskContext.idl:26
bool connectPeers(TaskContext *A, TaskContext *B)
Set up the Execution Flow (who knows who) between A and B in both directions.
A CTaskContext is the main entry point of a distributed component and maps to a RTT::TaskContext.
Definition: TaskContext.idl:33