Orocos Real-Time Toolkit  2.9.0
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  {
38  };
39 
45  interface CTaskContext
46  {
47  typedef sequence<string> CPeerNames;
48 
52  string getName();
53 
57  string getDescription();
58 
63  CTaskContextDescription getCTaskContextDescription();
64 
73  CTaskState getTaskState();
74 
79  boolean configure();
80 
85  boolean start();
86 
91  boolean activate();
92 
97  boolean stop();
98 
103  boolean recover();
104 
112  boolean resetException();
113 
118  boolean cleanup();
119 
124  boolean isActive();
125 
130  boolean isRunning();
131 
136  boolean isConfigured();
137 
142  boolean inFatalError();
143 
148  boolean inRunTimeError();
149 
154  boolean inException();
155 
162  CDataFlowInterface ports();
163 
177  CService getProvider( in string service_name );
178 
183  CServiceRequester getRequester( in string service_name );
195  CPeerNames getPeerList( );
196 
201  CTaskContext getPeer( in string name );
202 
207  boolean hasPeer( in string name );
208 
213  boolean addPeer( in CTaskContext p, in string peer_alias );
214 
219  boolean removePeer( in string name );
220 
227  boolean connectPeers( in CTaskContext p );
228 
233  boolean disconnectPeers( in string name );
234 
241  boolean connectPorts( in CTaskContext p );
242 
249  boolean connectServices( in CTaskContext p );
250 
251  };
252  };
253 };
254 
255 #endif
Complete description of a Service.
Definition: Service.idl:27
An interface to access the dataflow of a CControlTask object.
Definition: DataFlow.idl:150
CServiceRequesterDescription mainrequester_description
Definition: TaskContext.idl:35
An Orocos Required Service.
An Orocos Service which hosts operations, attributes and properties.
Definition: Service.idl:44
sequence< string > CPeerNames
Definition: TaskContext.idl:47
Complete description of a TaskContext including the IORs of all objects within.
Definition: TaskContext.idl:32
Complete description of a ServiceRequester.
CServiceDescription mainprovider_description
Definition: TaskContext.idl:37
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:52
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:45