00001 #ifndef neo_cca_ports_BuilderService_h_seen
00002 #define neo_cca_ports_BuilderService_h_seen
00003
00004 #include <neocca.hh>
00005
00006 namespace neo {
00007 namespace cca {
00008 namespace ports {
00009
00014 class BuilderService : public virtual ::neo::cca::Port
00015 {
00016 private:
00017 public:
00018
00019
00020 virtual ~BuilderService(){}
00021
00029 virtual neo::cca::ComponentID_shared createInstance(const ::std::string & instanceName, const ::std::string & className, ::neo::cca::TypeMap_shared properties) throw ( ::neo::cca::Exception )= 0;
00032 virtual neo::cca::ComponentID_shared createInstance(const ::std::string & instanceName, const ::std::string & className) throw ( ::neo::cca::Exception )= 0;
00033
00040 virtual ::std::vector< neo::cca::ComponentID_shared > getComponentIDs() throw ( ::neo::cca::Exception )= 0;
00041
00051 virtual ::neo::cca::TypeMap_shared getComponentProperties( neo::cca::ComponentID_shared cid) throw ( ::neo::cca::Exception )= 0;
00052
00059 virtual void setComponentProperties( neo::cca::ComponentID_shared cid, ::neo::cca::TypeMap_shared map) throw ( ::neo::cca::Exception )= 0;
00060
00071 virtual neo::cca::ComponentID_shared getDeserialization( const ::std::string & s) throw ( ::neo::cca::Exception )= 0;
00072
00082 virtual neo::cca::ComponentID_shared getComponentID( const ::std::string & componentInstanceName) throw ( ::neo::cca::Exception )= 0;
00083
00095 virtual void destroyInstance( neo::cca::ComponentID_shared toDie, float timeout ) throw ( ::neo::cca::Exception )= 0;
00096
00105 virtual ::std::vector< ::std::string > getProvidedPortNames( neo::cca::ComponentID_shared cid) throw ( ::neo::cca::Exception )= 0;
00106
00115 virtual ::std::vector< ::std::string > getUsedPortNames( neo::cca::ComponentID_shared cid) throw ( ::neo::cca::Exception )= 0;
00116
00125 virtual ::neo::cca::TypeMap_shared getPortProperties( neo::cca::ComponentID_shared cid, const ::std::string & portname) throw ( ::neo::cca::Exception )= 0;
00126
00134 virtual void setPortProperties( neo::cca::ComponentID_shared cid, const ::std::string & portname, ::neo::cca::TypeMap_shared map) throw ( ::neo::cca::Exception )= 0;
00135
00156 virtual neo::cca::ConnectionID_shared connect( neo::cca::ComponentID_shared user, const ::std::string & usingPortName, neo::cca::ComponentID_shared provider, const ::std::string & providingPortName) throw ( ::neo::cca::Exception )= 0;
00157
00170 virtual ::std::vector < neo::cca::ConnectionID_shared > getConnectionIDs( ::std::vector< neo::cca::ComponentID_shared > & componentList) throw ( ::neo::cca::Exception )= 0;
00171
00178 virtual ::neo::cca::TypeMap_shared getConnectionProperties( neo::cca::ConnectionID_shared & connID) throw ( ::neo::cca::Exception )= 0;
00179
00187 virtual void setConnectionProperties( neo::cca::ConnectionID_shared & connID, ::neo::cca::TypeMap_shared map) throw ( ::neo::cca::Exception )= 0;
00188
00202 virtual void disconnect( neo::cca::ConnectionID_shared & connID, float timeout) throw ( ::neo::cca::Exception )= 0;
00203
00213 virtual void disconnectAll( neo::cca::ComponentID_shared & id1, neo::cca::ComponentID_shared & id2, float timeout) throw ( ::neo::cca::Exception )= 0;
00214
00215 } ;
00216
00217 }
00218 }
00219 }
00220 #endif // neo_cca_ports_BuilderService_h_seen