SALOME documentation central

Engines::ConnectionManager Interface Reference

Interface of the ConnectionManager. It is a helper object for connection operations. The ConnectionManager is used like other services of SALOME (e.g ContainerManager). More...

Data Structures

exception  BadId
 The Id given to the disconnect method is bad. More...

Public Types

typedef short connectionId
 A connection Id. It's unique.

Public Member Functions

connectionId connect (in Engines::DSC uses_component, in string uses_port_name, in Engines::DSC provides_component, in string provides_port_name) raises (Engines::DSC::PortNotDefined, Engines::DSC::BadPortType, Engines::DSC::NilPort)
 Connect a uses port with a provides port.
void disconnect (in connectionId id, in Engines::DSC::Message message) raises (Engines::ConnectionManager::BadId, Engines::DSC::PortNotDefined, Engines::DSC::PortNotConnected, Engines::DSC::BadPortReference)
 Release a connection that has been previously created by the ConnectionManager.
oneway void ShutdownWithExit ()
 Shutdown the ConnectionManager process.
long getPID ()
 Return the PID of the connection manager.

Detailed Description

Interface of the ConnectionManager. It is a helper object for connection operations. The ConnectionManager is used like other services of SALOME (e.g ContainerManager).


Member Typedef Documentation

A connection Id. It's unique.


Member Function Documentation

connectionId Engines::ConnectionManager::connect ( in Engines::DSC  uses_component,
in string  uses_port_name,
in Engines::DSC  provides_component,
in string  provides_port_name 
) raises (Engines::DSC::PortNotDefined, Engines::DSC::BadPortType, Engines::DSC::NilPort)

Connect a uses port with a provides port.

Parameters:
uses_component The component that have the uses port.
uses_port_name uses port's name.
provides_component The component that have the provides port.
provides_port_name provides port's name.
Exceptions:
Engines::DSC::PortNotDefined 
Engines::DSC::BadPortType 
Engines::DSC::NilPort 
Returns:
the id of the connection that the ConnectionManager will use to release this connection when the framework (or a user script, ...) will call ConnectionManager::disconnect.

Release a connection that has been previously created by the ConnectionManager.

Parameters:
id The id of the connection previously gived by the connect operation of the ConnectionManager.
message state associated with the disconnection.
Exceptions:
Engines::ConnectionManager::BadId 
oneway void Engines::ConnectionManager::ShutdownWithExit (  ) 

Shutdown the ConnectionManager process.

long Engines::ConnectionManager::getPID (  ) 

Return the PID of the connection manager.


Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS