38 #ifndef ORO_CORBA_CONTROLTASK_PROXY_HPP 39 #define ORO_CORBA_CONTROLTASK_PROXY_HPP 49 #include <omniORB4/CORBA.h> 53 #include "../../TaskContext.hpp" 56 #include "TaskContextC.h" 67 :
public std::exception
73 const
char*
what() const throw();
87 typedef std::map<TaskContextProxy*, corba::CTaskContext_ptr>
PMap;
119 void initFromURIOrTaskname(std::string location,
bool is_ior);
123 mutable corba::CTaskContext_var
mtask;
130 void synchronizeRequesters(
ServiceRequester::shared_ptr parent, CServiceRequester_ptr csrq,
const CServiceRequesterDescription & cdescription);
131 void synchronizeServices(
Service::shared_ptr parent, CService_ptr serv,
const CServiceDescription & cdescription);
132 void synchronizePorts(
Service::shared_ptr parent, CDataFlowInterface_ptr dfact,
const CServiceDescription & cdescription);
140 static void DestroyOrb();
168 static TaskContext* Create(::RTT::corba::CTaskContext_ptr task,
bool force_remote =
false);
177 corba::CTaskContext_ptr server()
const;
179 virtual bool activate();
181 virtual bool start();
185 virtual bool isRunning()
const;
187 virtual bool configure();
189 virtual bool cleanup();
191 virtual bool recover();
193 virtual bool isActive()
const;
195 virtual bool isConfigured()
const;
197 virtual bool inFatalError()
const;
199 virtual bool inRunTimeError()
const;
201 virtual bool inException()
const;
205 virtual void setName(
const std::string& n);
207 virtual bool addPeer( TaskContext* peer, std::string alias =
"" );
209 virtual void removePeer(
const std::string& name );
211 virtual void removePeer( TaskContext* peer );
215 virtual void disconnectPeers(
const std::string& name );
217 virtual PeerList getPeerList()
const;
219 virtual bool hasPeer(
const std::string& peer_name )
const;
221 virtual TaskContext* getPeer(
const std::string& peer_name )
const;
225 virtual bool connectServices( TaskContext* peer );
227 virtual bool ready();
231 static PortableServer::POA_ptr ProxyPOA();
static PortableServer::POA_var proxy_poa
boost::shared_ptr< ServiceRequester > shared_ptr
boost::shared_ptr< Service > shared_ptr
corba::CTaskContext_var mtask
const char * what() const
std::vector< std::string > PeerList
std::map< TaskContextProxy *, corba::CTaskContext_ptr > PMap
std::list< base::PortInterface * > port_proxies
bool connectPorts(TaskContext *A, TaskContext *B)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
bool connectPeers(TaskContext *A, TaskContext *B)