Version: 9.12.0
PySupervCompo Class Reference

#include <Calcium.hxx>

Inheritance diagram for PySupervCompo:

Public Member Functions

 PySupervCompo (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, Engines::Container_ptr contain, const char *instanceName, const char *interfaceName, bool notif=false)
 
virtual ~PySupervCompo ()
 
CORBA::Boolean init_service (const char *)
 
CORBA::Boolean init_service_with_multiple (const char *, const Engines::Superv_Component::seq_multiple_param &)
 
virtual provides_portcreate_provides_control_port ()
 
virtual provides_portcreate_provides_data_and_control_port (const char *)
 
virtual uses_portcreate_uses_control_port ()
 
virtual uses_portcreate_uses_data_and_control_port (const char *)
 
virtual provides_portcreate_provides_data_port (const std::string &port_fab_type)
 This method permits to create a provides port provided by the platform. More...
 
virtual uses_portcreate_uses_data_port (const std::string &port_fab_type)
 This method permits to create a uses port provided by the platform. More...
 
virtual void add_port (const char *port_fab_type, const char *port_type, const char *port_name)
 Adds a port to the component. More...
 
template<typename SpecificPortType >
SpecificPortType * add_port (const char *port_fab_type, const char *port_type, const char *port_name)
 Adds a port to the component. More...
 
virtual void add_port (provides_port *port, const char *provides_port_name)
 Adds a created provides port to the component. More...
 
virtual void add_port (uses_port *port, const char *uses_port_name)
 Adds a created uses port to the component. More...
 
virtual void get_port (provides_port *&port, const char *provides_port_name)
 Gets the provides port already added in the component. More...
 
virtual void get_port (uses_port *&port, const char *uses_port_name)
 Gets the uses port already added in the component. More...
 
template<typename SpecificPortType >
SpecificPortType * get_port (const char *port_name)
 Gets a port already added in the component. More...
 
virtual void get_uses_port_names (std::vector< std::string > &port_names, const std::string servicename="") const
 Gets the list of the ports of a service. More...
 
virtual void provides_port_changed (const char *provides_port_name, int connection_nbr, const Engines::DSC::Message message)
 
virtual void uses_port_changed (const char *uses_port_name, Engines::DSC::uses_port *new_uses_port, const Engines::DSC::Message message)
 
virtual port_factoryget_factory (const std::string &factory_name)
 Get a factory from the component. More...
 
void beginService (const char *serviceName)
 
virtual void add_provides_port (Ports::Port_ptr ref, const char *provides_port_name, Ports::PortProperties_ptr port_prop)
 
virtual void add_uses_port (const char *repository_id, const char *uses_port_name, Ports::PortProperties_ptr port_prop)
 
virtual Ports::Port_ptr get_provides_port (const char *provides_port_name, const CORBA::Boolean connection_error)
 
virtual Engines::DSC::uses_portget_uses_port (const char *uses_port_name)
 
virtual void connect_provides_port (const char *provides_port_name)
 
virtual void connect_uses_port (const char *uses_port_name, Ports::Port_ptr provides_port_ref)
 
virtual CORBA::Boolean is_connected (const char *port_name)
 
virtual void disconnect_provides_port (const char *provides_port_name, const Engines::DSC::Message message)
 
virtual void disconnect_uses_port (const char *uses_port_name, Ports::Port_ptr provides_port_ref, const Engines::DSC::Message message)
 
virtual Ports::PortProperties_ptr get_port_properties (const char *port_name)
 
CORBA::Boolean isSSLMode () override
 
char * instanceName ()
 CORBA method: return name of the instance, unique in this Container. More...
 
char * interfaceName ()
 CORBA method: return name of the component class. More...
 
void ping ()
 CORBA method: Test if instance is alive and responds. More...
 
void destroy ()
 CORBA method: Deactivate this instance. More...
 
Engines::Container_ptr GetContainerRef ()
 CORBA method: return CORBA reference of the Container. More...
 
void setProperties (const Engines::FieldsDict &dico)
 CORBA method: Gives a sequence of (key=string,value=any) to the component. More...
 
Engines::FieldsDictgetProperties ()
 CORBA method: returns a previously stored map (key=string,value=any) as a sequence. More...
 
virtual void SetOption (const char *, const char *)
 CORBA method: This method is to set an option specific to a certain EngineComponent. More...
 
virtual char * GetOption (const char *)
 CORBA method: This method is to get value of an option specific to a certain EngineComponent. More...
 
void Names (const char *graphName, const char *nodeName)
 CORBA method: used by Supervision to give names to this instance. More...
 
bool Kill_impl ()
 CORBA method: used in Supervision. More...
 
bool Stop_impl ()
 CORBA method: used in Supervision. More...
 
bool Suspend_impl ()
 CORBA method: used in Supervision. More...
 
bool Resume_impl ()
 CORBA method: used in Supervision. More...
 
CORBA::Long CpuUsed_impl ()
 CORBA method: More...
 
virtual Engines::TMPFileDumpPython (CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript)
 C++ method: DumpPython default implementation. More...
 
virtual Engines::Salome_file_ptr getInputFileToService (const char *service_name, const char *Salome_file_name)
 
virtual Engines::Salome_file_ptr getOutputFileToService (const char *service_name, const char *Salome_file_name)
 
virtual void checkInputFilesToService (const char *service_name)
 
virtual Engines::Salome_file_ptr setInputFileToService (const char *service_name, const char *Salome_file_name)
 
virtual void checkOutputFilesToService (const char *service_name)
 
virtual Engines::Salome_file_ptr setOutputFileToService (const char *service_name, const char *Salome_file_name)
 
virtual bool hasObjectInfo ()
 Return true if component can provide creation information. More...
 
virtual char * getObjectInfo (const char *entry)
 Get creation information for object addressed by given entry. More...
 
virtual char * getVersion ()
 Get version of the component. More...
 
PortableServer::ObjectId * getId ()
 C++ method: return CORBA instance id, the id is set in derived class constructor, when instance is activated. More...
 
Engines_Container_iGetContainerPtr ()
 C++ method: return Container Servant. More...
 
std::string getContainerName ()
 C++ method: return the name of the container associated with this component This name does not contains the "/Containers" string and all "/" are replaced by "_". More...
 
void setContainerName ()
 C++ method: set the name of the container associated with this component (attribute containerName) This name does not contains the "/Containers" string and all "/" are replaced by "</em>". More...
 
void endService (const char *serviceName)
 C++ method: used by derived classes for supervision. More...
 
void sendMessage (const char *event_type, const char *message)
 C++ method: Send message to event channel. More...
 
char * graphName ()
 C++ method: – CHECK IF USED –. More...
 
char * nodeName ()
 C++ method: – CHECK IF USED –. More...
 
bool Killer (pthread_t ThreadId, int signum)
 C++ method: used in Supervision (see kill_impl) More...
 
void SetCurCpu ()
 C++ method: More...
 
long CpuUsed ()
 C++ method: More...
 
void CancelThread ()
 C++ method: More...
 
virtual void configureSalome_file (std::string service_name, std::string file_port_name, Salome_file_i *file)
 C++ method: used to configure the Salome_file into the runtime. More...
 

Static Public Member Functions

static void register_factory (const std::string &factory_name, port_factory *factory_ptr)
 Add a factory the component. More...
 
static void setTimeOut ()
 
static bool isMultiInstance ()
 
static std::string GetDynLibraryName (const char *componentName)
 C++ method: return standard library name built on component name. More...
 
static void writeEvent (const char *request, const std::string &containerName, const char *instance_name, const char *port_name, const char *error, const char *message)
 Write a record in the trace file. More...
 

Static Public Attributes

static long dscTimeOut =0
 

Protected Types

typedef std::map< std::string, Salome_file_i * > _t_Salome_file_map
 
typedef std::map< std::string, Engines_Component_i::_t_Salome_file_map * > _t_Service_file_map
 
enum  port_type { uses , provides , none }
 
typedef std::map< std::string, port_t * > ports
 

Protected Member Functions

SALOME_NamingService_AbstractgetNS ()
 

Protected Attributes

std::string _instanceName
 
std::string _interfaceName
 
std::string _containerName
 
CORBA::ORB_var _orb
 
PortableServer::POA_var _poa
 
PortableServer::ObjectId * _id
 
PortableServer::ObjectId * _contId
 
Engines::Container_var _container
 
Engines_Component_i_thisObj
 
RegistryConnexion_myConnexionToRegistry
 
NOTIFICATION_Supplier_notifSupplier
 
std::map< std::string, CORBA::Any > _fieldsDict
 
_t_Service_file_map _Input_Service_file_map
 
_t_Service_file_map _Output_Service_file_map
 
_t_Service_file_map::iterator _Service_file_map_it
 
_t_Salome_file_map::iterator _Salome_file_map_it
 
std::string _serviceName
 
std::string _graphName
 
std::string _nodeName
 
ports my_ports
 
ports::iterator my_ports_it
 

Static Protected Attributes

static bool _isMultiInstance = false
 

Private Types

typedef std::map< std::string, port_factory * > factory_map_t
 
typedef std::map< std::string, superv_port_t * > superv_ports
 

Private Attributes

superv_ports my_superv_ports
 
superv_ports::iterator my_superv_ports_it
 
pthread_t _ThreadId
 
long _StartUsed
 
long _ThreadCpuUsed
 
bool _Executed
 
bool _CanceledThread
 

Static Private Attributes

static factory_map_t _factory_map
 

Member Typedef Documentation

◆ _t_Salome_file_map

typedef std::map<std::string, Salome_file_i*> Engines_Component_i::_t_Salome_file_map
protectedinherited

◆ _t_Service_file_map

typedef std::map<std::string, Engines_Component_i::_t_Salome_file_map*> Engines_Component_i::_t_Service_file_map
protectedinherited

◆ factory_map_t

typedef std::map<std::string, port_factory*> Superv_Component_i::factory_map_t
privateinherited

◆ ports

typedef std::map<std::string, port_t *> Engines_DSC_interface::ports
protectedinherited

◆ superv_ports

typedef std::map<std::string, superv_port_t *> Superv_Component_i::superv_ports
privateinherited

Member Enumeration Documentation

◆ port_type

enum Engines_DSC_interface::port_type
protectedinherited
Enumerator
uses 
provides 
none 

Constructor & Destructor Documentation

◆ PySupervCompo()

PySupervCompo::PySupervCompo ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
Engines::Container_ptr  contain,
const char *  instanceName,
const char *  interfaceName,
bool  notif = false 
)

◆ ~PySupervCompo()

PySupervCompo::~PySupervCompo ( )
virtual

Member Function Documentation

◆ add_port() [1/4]

void Superv_Component_i::add_port ( const char *  port_fab_type,
const char *  port_type,
const char *  port_name 
)
virtualinherited

Adds a port to the component.

With this method only Salomé's provided DSC ports can be added.

Parameters
port_fab_typetype of the port.
port_typeuses or provides.
port_namethe name of the port in the component.

References Superv_Component_i::create_provides_data_port(), Superv_Component_i::create_uses_data_port(), LOC, salome_instance::port, and SALOME::VerbosityActivated().

Referenced by Superv_Component_i::add_port(), and create_calcium_port().

◆ add_port() [2/4]

template<typename SpecificPortType >
SpecificPortType * Superv_Component_i::add_port ( const char *  port_fab_type,
const char *  port_type,
const char *  port_name 
)
inherited

Adds a port to the component.

With this method only Salomé's provided DSC ports can be added.

Parameters
port_fab_typetype of the port.
port_typeuses or provides.
port_namethe name of the port in the component.
Returns
the created port.

References Superv_Component_i::add_port(), Superv_Component_i::create_provides_data_port(), Superv_Component_i::create_uses_data_port(), LOC, salome_instance::port, and SALOME::VerbosityActivated().

◆ add_port() [3/4]

void Superv_Component_i::add_port ( provides_port port,
const char *  provides_port_name 
)
virtualinherited

Adds a created provides port to the component.

Parameters
portthe provides port.
provides_port_namethe name of the port in the component.

References Engines_DSC_interface::add_provides_port(), LOC, Superv_Component_i::my_superv_ports, Superv_Component_i::superv_port_t::p_ref, and salome_instance::port.

◆ add_port() [4/4]

void Superv_Component_i::add_port ( uses_port port,
const char *  uses_port_name 
)
virtualinherited

Adds a created uses port to the component.

Parameters
portthe uses port.
uses_port_namethe name of the port in the component.

References Engines_DSC_interface::add_uses_port(), LOC, Superv_Component_i::my_superv_ports, salome_instance::port, and Superv_Component_i::superv_port_t::u_ref.

◆ add_provides_port()

virtual void Engines_DSC_i::add_provides_port ( Ports::Port_ptr  ref,
const char *  provides_port_name,
Ports::PortProperties_ptr  port_prop 
)
virtualinherited

◆ add_uses_port()

virtual void Engines_DSC_i::add_uses_port ( const char *  repository_id,
const char *  uses_port_name,
Ports::PortProperties_ptr  port_prop 
)
virtualinherited

◆ beginService()

void Superv_Component_i::beginService ( const char *  serviceName)
inherited

◆ CancelThread()

void Engines_Component_i::CancelThread ( )
inherited

C++ method:

References Engines_Component_i::_CanceledThread.

Referenced by CallCancelThread().

◆ checkInputFilesToService()

void Engines_Component_i::checkInputFilesToService ( const char *  service_name)
virtualinherited

◆ checkOutputFilesToService()

void Engines_Component_i::checkOutputFilesToService ( const char *  service_name)
virtualinherited

◆ configureSalome_file()

void Engines_Component_i::configureSalome_file ( std::string  service_name,
std::string  file_port_name,
Salome_file_i file 
)
virtualinherited

C++ method: used to configure the Salome_file into the runtime.

Parameters
service_namename of the service that use this Salome_file
file_port_namename of the Salome_file
fileSalome_file C++ object

Referenced by Engines_Component_i::checkInputFilesToService(), and Engines_Component_i::checkOutputFilesToService().

◆ connect_provides_port()

virtual void Engines_DSC_i::connect_provides_port ( const char *  provides_port_name)
virtualinherited

◆ connect_uses_port()

virtual void Engines_DSC_i::connect_uses_port ( const char *  uses_port_name,
Ports::Port_ptr  provides_port_ref 
)
virtualinherited

◆ CpuUsed()

◆ CpuUsed_impl()

◆ create_provides_control_port()

virtual provides_port* Superv_Component_i::create_provides_control_port ( )
virtualinherited
Warning
currently disabled.

◆ create_provides_data_and_control_port()

virtual provides_port* Superv_Component_i::create_provides_data_and_control_port ( const char *  )
virtualinherited
Warning
currently disabled.

◆ create_provides_data_port()

provides_port * Superv_Component_i::create_provides_data_port ( const std::string &  port_fab_type)
virtualinherited

This method permits to create a provides port provided by the platform.

(See documentation of DSC for knoing these ports).

Parameters
port_fab_typetype provides port.
Returns
the provides port.
Note
It's user repsonsability to destroy the provides port.

References port_factory::create_data_servant(), Superv_Component_i::get_factory(), and LOC.

Referenced by Superv_Component_i::add_port(), and create_calcium_port().

◆ create_uses_control_port()

virtual uses_port* Superv_Component_i::create_uses_control_port ( )
virtualinherited
Warning
currently disabled.

◆ create_uses_data_and_control_port()

virtual uses_port* Superv_Component_i::create_uses_data_and_control_port ( const char *  )
virtualinherited
Warning
currently disabled.

◆ create_uses_data_port()

uses_port * Superv_Component_i::create_uses_data_port ( const std::string &  port_fab_type)
virtualinherited

This method permits to create a uses port provided by the platform.

(See documentation of DSC for knoing these ports).

Parameters
port_fab_typetype uses port.
Returns
the uses port.
Note
It's user repsonsability to destroy the uses port.

References port_factory::create_data_proxy(), Superv_Component_i::get_factory(), and LOC.

Referenced by Superv_Component_i::add_port(), and create_calcium_port().

◆ destroy()

void Engines_Component_i::destroy ( )
inherited

CORBA method: Deactivate this instance.

CORBA object is deactivated (do not respond any more to CORBA calls), the connection to Regsitry is removed (Registry informed of deactivation), internal server reference counter on the derived servant class is decremented, to allow destruction of the class (delete) by POA, when there are no more references. – TO BE USED BY CONTAINER ONLY (Container housekeeping) –

References Engines_Component_i::_id, Engines_Component_i::_poa, and MESSAGE.

◆ disconnect_provides_port()

virtual void Engines_DSC_i::disconnect_provides_port ( const char *  provides_port_name,
const Engines::DSC::Message  message 
)
virtualinherited

◆ disconnect_uses_port()

virtual void Engines_DSC_i::disconnect_uses_port ( const char *  uses_port_name,
Ports::Port_ptr  provides_port_ref,
const Engines::DSC::Message  message 
)
virtualinherited

◆ DumpPython()

Engines::TMPFile * Engines_Component_i::DumpPython ( CORBA::Boolean  isPublished,
CORBA::Boolean  isMultiFile,
CORBA::Boolean &  isValidScript 
)
virtualinherited

C++ method: DumpPython default implementation.

◆ endService()

void Engines_Component_i::endService ( const char *  serviceName)
inherited

◆ get_factory()

port_factory * Superv_Component_i::get_factory ( const std::string &  factory_name)
virtualinherited

Get a factory from the component.

Parameters
factory_namename of the factory.
Returns
factory pointer, NULL if the factory doesn't exist.

References Superv_Component_i::_factory_map.

Referenced by Superv_Component_i::create_provides_data_port(), and Superv_Component_i::create_uses_data_port().

◆ get_port() [1/3]

template<typename SpecificPortType >
SpecificPortType * Superv_Component_i::get_port ( const char *  port_name)
inherited

◆ get_port() [2/3]

void Superv_Component_i::get_port ( provides_port *&  port,
const char *  provides_port_name 
)
virtualinherited

Gets the provides port already added in the component.

Parameters
portthe provides port pointer.
provides_port_namethe name of the port.

References Engines_DSC_interface::get_provides_port(), LOC, Superv_Component_i::my_superv_ports, and salome_instance::port.

◆ get_port() [3/3]

void Superv_Component_i::get_port ( uses_port *&  port,
const char *  uses_port_name 
)
virtualinherited

Gets the uses port already added in the component.

Parameters
portthe uses port pointer.
uses_port_namethe name of the port.

References Engines_DSC_i::get_uses_port(), LOC, Superv_Component_i::my_superv_ports, and salome_instance::port.

◆ get_port_properties()

virtual Ports::PortProperties_ptr Engines_DSC_i::get_port_properties ( const char *  port_name)
virtualinherited

◆ get_provides_port()

virtual Ports::Port_ptr Engines_DSC_i::get_provides_port ( const char *  provides_port_name,
const CORBA::Boolean  connection_error 
)
virtualinherited

◆ get_uses_port()

virtual Engines::DSC::uses_port* Engines_DSC_i::get_uses_port ( const char *  uses_port_name)
virtualinherited

◆ get_uses_port_names()

void Superv_Component_i::get_uses_port_names ( std::vector< std::string > &  port_names,
const std::string  servicename = "" 
) const
virtualinherited

Gets the list of the ports of a service.

If servicename is not set, all the ports of the component are returned.

Parameters
port_namesthe ports's list.
servicenameservice's name.

References Superv_Component_i::my_superv_ports.

Referenced by CalciumInterface::ecp_fin().

◆ getContainerName()

std::string Engines_Component_i::getContainerName ( )
inherited

C++ method: return the name of the container associated with this component This name does not contains the "/Containers" string and all "/" are replaced by "_".

Returns
the container name (reformatted)

References Engines_Component_i::_containerName.

Referenced by create_calcium_port(), CalciumInterface::ecp_cd(), CalciumInterface::ecp_ecriture(), CalciumInterface::ecp_effi(), CalciumInterface::ecp_efft(), CalciumInterface::ecp_fin(), CalciumInterface::ecp_fini(), CalciumInterface::ecp_fint(), and CalciumInterface::ecp_lecture().

◆ GetContainerPtr()

Engines_Container_i * Engines_Component_i::GetContainerPtr ( )
inherited

C++ method: return Container Servant.

References Engines_Component_i::_container, and Engines_Component_i::_poa.

◆ GetContainerRef()

Engines::Container_ptr Engines_Component_i::GetContainerRef ( )
inherited

CORBA method: return CORBA reference of the Container.

References Engines_Component_i::_container.

Referenced by Engines_Component_i::setInputFileToService(), and Engines_Component_i::setOutputFileToService().

◆ GetDynLibraryName()

std::string Engines_Component_i::GetDynLibraryName ( const char *  componentName)
staticinherited

C++ method: return standard library name built on component name.

References waitContainers::cname, and TestKernelHelpers::ret.

Referenced by Abstract_Engines_Container_i::decInstanceCnt(), and Engines_Parallel_Container_i::decInstanceCnt().

◆ getId()

PortableServer::ObjectId * Engines_Component_i::getId ( )
inherited

C++ method: return CORBA instance id, the id is set in derived class constructor, when instance is activated.

References Engines_Component_i::_id.

Referenced by SalomeTestComponentEngine_factory(), and TestMPIComponentEngine_factory().

◆ getInputFileToService()

Engines::Salome_file_ptr Engines_Component_i::getInputFileToService ( const char *  service_name,
const char *  Salome_file_name 
)
virtualinherited

◆ getNS()

◆ getObjectInfo()

char * Engines_Component_i::getObjectInfo ( const char *  entry)
virtualinherited

Get creation information for object addressed by given entry.

◆ GetOption()

char * Engines_Component_i::GetOption ( const char *  )
virtualinherited

CORBA method: This method is to get value of an option specific to a certain EngineComponent.

◆ getOutputFileToService()

Engines::Salome_file_ptr Engines_Component_i::getOutputFileToService ( const char *  service_name,
const char *  Salome_file_name 
)
virtualinherited

◆ getProperties()

Engines::FieldsDict * Engines_Component_i::getProperties ( )
inherited

CORBA method: returns a previously stored map (key=string,value=any) as a sequence.

(see setProperties)

References Engines_Component_i::_fieldsDict.

◆ getVersion()

char * Engines_Component_i::getVersion ( )
virtualinherited

Get version of the component.

This method is supposed to be implemented in all derived classes; default implementation returns empty string that means that no version information about the component is available.

Note
The version of the component is stored to the study, as a part of general persistence mechanism; once stored, version information in the study cannot be changed.
Returns
string containing component's version, e.g. "1.0"

Referenced by SALOME_DriverPy.SALOME_DriverPy_i::Version().

◆ graphName()

char * Engines_Component_i::graphName ( )
inherited

◆ hasObjectInfo()

bool Engines_Component_i::hasObjectInfo ( )
virtualinherited

Return true if component can provide creation information.

◆ init_service()

CORBA::Boolean PySupervCompo::init_service ( const char *  )

◆ init_service_with_multiple()

CORBA::Boolean PySupervCompo::init_service_with_multiple ( const char *  ,
const Engines::Superv_Component::seq_multiple_param  
)
virtual

Reimplemented from Superv_Component_i.

◆ instanceName()

◆ interfaceName()

char * Engines_Component_i::interfaceName ( )
inherited

CORBA method: return name of the component class.

References Engines_Component_i::_interfaceName.

◆ is_connected()

virtual CORBA::Boolean Engines_DSC_i::is_connected ( const char *  port_name)
virtualinherited

◆ isMultiInstance()

static bool Engines_Component_i::isMultiInstance ( )
staticinherited

◆ isSSLMode()

◆ Kill_impl()

bool Engines_Component_i::Kill_impl ( )
inherited

CORBA method: used in Supervision.

References Engines_Component_i::_ThreadId, and Engines_Component_i::Killer().

◆ Killer()

bool Engines_Component_i::Killer ( pthread_t  ThreadId,
int  signum 
)
inherited

◆ Names()

void Engines_Component_i::Names ( const char *  graphName,
const char *  nodeName 
)
inherited

CORBA method: used by Supervision to give names to this instance.

References Engines_Component_i::_graphName, Engines_Component_i::_nodeName, Engines_Component_i::graphName(), and Engines_Component_i::nodeName().

◆ nodeName()

◆ ping()

void Engines_Component_i::ping ( )
inherited

CORBA method: Test if instance is alive and responds.

References MESSAGE.

◆ provides_port_changed()

void Superv_Component_i::provides_port_changed ( const char *  provides_port_name,
int  connection_nbr,
const Engines::DSC::Message  message 
)
virtualinherited

◆ register_factory()

void Superv_Component_i::register_factory ( const std::string &  factory_name,
port_factory factory_ptr 
)
staticinherited

Add a factory the component.

If the factory_name is already used, the new library is not added.

Parameters
factory_namename of the factory (used by Superv_Component_i::create_provides_data_port and Superv_Component_i::create_uses_data_port)
factory_ptrfactory pointer (destroyed by the component)

References Superv_Component_i::_factory_map.

Referenced by basic_port_factory::basic_port_factory(), calcium_port_factory::calcium_port_factory(), and palm_port_factory::palm_port_factory().

◆ Resume_impl()

◆ sendMessage()

void Engines_Component_i::sendMessage ( const char *  event_type,
const char *  message 
)
inherited

◆ setContainerName()

void Engines_Component_i::setContainerName ( )
inherited

C++ method: set the name of the container associated with this component (attribute containerName) This name does not contains the "/Containers" string and all "/" are replaced by "</em>".

Returns
the container name (reformatted)

References Engines_Component_i::_container, Engines_Component_i::_containerName, SALOME_ContainerPy::containerName, and pythfilter::name.

Referenced by Engines_Component_i::Engines_Component_i().

◆ SetCurCpu()

void Engines_Component_i::SetCurCpu ( )
inherited

◆ setInputFileToService()

Engines::Salome_file_ptr Engines_Component_i::setInputFileToService ( const char *  service_name,
const char *  Salome_file_name 
)
virtualinherited

◆ SetOption()

void Engines_Component_i::SetOption ( const char *  ,
const char *   
)
virtualinherited

CORBA method: This method is to set an option specific to a certain EngineComponent.

◆ setOutputFileToService()

Engines::Salome_file_ptr Engines_Component_i::setOutputFileToService ( const char *  service_name,
const char *  Salome_file_name 
)
virtualinherited

◆ setProperties()

void Engines_Component_i::setProperties ( const Engines::FieldsDict dico)
inherited

CORBA method: Gives a sequence of (key=string,value=any) to the component.

Base class component stores the sequence in a map. The map is cleared before. This map is for use by derived classes.

Parameters
dicosequence of (key=string,value=any)

References Engines_Component_i::_fieldsDict.

◆ setTimeOut()

void Superv_Component_i::setTimeOut ( )
staticinherited

◆ Stop_impl()

◆ Suspend_impl()

◆ uses_port_changed()

void Superv_Component_i::uses_port_changed ( const char *  uses_port_name,
Engines::DSC::uses_port new_uses_port,
const Engines::DSC::Message  message 
)
virtualinherited

◆ writeEvent()

void Engines_DSC_interface::writeEvent ( const char *  request,
const std::string &  containerName,
const char *  instance_name,
const char *  port_name,
const char *  error,
const char *  message 
)
staticinherited

Write a record in the trace file.

Parameters
requestthe name of the request executed
containerNamethe name of the container where the request is executed
instance_namethe name of the component where the request is executed
port_namethe name of the port that is concerned
errorif an error has occured, a string that identifies the error
messageinformations about error or about the request

References SALOME_ContainerPy::containerName, IDLparser::error(), initTrace(), TestMinimalExample::msg, out, traceLevel, and traceType.

Referenced by create_calcium_port(), CalciumInterface::ecp_cd(), CalciumInterface::ecp_ecriture(), CalciumInterface::ecp_effi(), CalciumInterface::ecp_efft(), CalciumInterface::ecp_fin(), CalciumInterface::ecp_fini(), CalciumInterface::ecp_fint(), CalciumInterface::ecp_lecture(), GenericPort< DataManipulator, COUPLING_POLICY >::get(), and GenericPort< DataManipulator, COUPLING_POLICY >::next().

Field Documentation

◆ _CanceledThread

bool Engines_Component_i::_CanceledThread
privateinherited

◆ _container

◆ _containerName

◆ _contId

◆ _Executed

◆ _factory_map

std::map< std::string, port_factory * > Superv_Component_i::_factory_map
staticprivateinherited

◆ _fieldsDict

◆ _graphName

◆ _id

◆ _Input_Service_file_map

◆ _instanceName

◆ _interfaceName

◆ _isMultiInstance

bool Engines_Component_i::_isMultiInstance = false
staticprotectedinherited

◆ _myConnexionToRegistry

RegistryConnexion* Engines_Component_i::_myConnexionToRegistry
protectedinherited

◆ _nodeName

◆ _notifSupplier

◆ _orb

◆ _Output_Service_file_map

◆ _poa

◆ _Salome_file_map_it

◆ _Service_file_map_it

◆ _serviceName

◆ _StartUsed

◆ _thisObj

◆ _ThreadCpuUsed

◆ _ThreadId

◆ dscTimeOut

◆ my_ports

◆ my_ports_it

◆ my_superv_ports

◆ my_superv_ports_it

superv_ports::iterator Superv_Component_i::my_superv_ports_it
privateinherited