Back to index

salome-paravis  6.5.0
Public Member Functions | Public Attributes
paravisSM.Connection Class Reference

List of all members.

Public Member Functions

def __init__
def __eq__
def __repr__
def GetURI
def IsRemote
def GetNumberOfDataPartitions
def AttachDefinitionUpdater

Public Attributes

 ID
 Session
 Modules
 Alive
 DefinitionObserverTag
 CustomDefinitionObserverTag

Detailed Description

  This is a python representation for a session/connection.

Definition at line 1787 of file paravisSM.py.


Constructor & Destructor Documentation

def paravisSM.Connection.__init__ (   self,
  connectionId,
  session 
)
Default constructor. Creates a Connection with the given
ID, all other data members initialized to None.

Definition at line 1791 of file paravisSM.py.

01791 
01792     def __init__(self, connectionId, session):
01793         """Default constructor. Creates a Connection with the given
01794         ID, all other data members initialized to None."""
01795         global MultiServerConnections
01796         global ActiveConnection
01797         self.ID = connectionId
01798         self.Session = session
01799         self.Modules = PVModule()
01800         self.Alive = True
01801         self.DefinitionObserverTag = 0
01802         self.CustomDefinitionObserverTag = 0
01803         if MultiServerConnections == None and ActiveConnection:
01804             raise RuntimeError, "Concurrent connections not supported!"
01805         if MultiServerConnections != None and not self in MultiServerConnections:
01806            MultiServerConnections.append(self)
01807         ActiveConnection = self
01808         __InitAfterConnect__(self)
01809         __exposeActiveModules__()


Member Function Documentation

def paravisSM.Connection.__eq__ (   self,
  other 
)

Definition at line 1810 of file paravisSM.py.

01810 
01811     def __eq__(self, other):
01812         "Returns true if the connection ids are the same."
01813         return (self.ID == other.ID)

User friendly string representation

Definition at line 1814 of file paravisSM.py.

01814 
01815     def __repr__(self):
01816         """User friendly string representation"""
01817         return "Connection (%s) [%d]" % (self.Session.GetURI(), self.ID)

Attach observer to automatically update modules when needed.

Definition at line 1834 of file paravisSM.py.

01834 
01835     def AttachDefinitionUpdater(self):
01836         """Attach observer to automatically update modules when needed."""
01837         # VTN: Observers are not supported
        # ProxyDefinitionsUpdated = 2000
Returns the number of partitions on the data server for this
   connection

Definition at line 1829 of file paravisSM.py.

01829 
01830     def GetNumberOfDataPartitions(self):
01831         """Returns the number of partitions on the data server for this
01832            connection"""
01833         return self.Session.GetServerInformation().GetNumberOfProcesses()

Get URI of the connection

Definition at line 1818 of file paravisSM.py.

01818 
01819     def GetURI(self):
01820         """Get URI of the connection"""
01821         return self.Session.GetURI()

Returns True if the connection to a remote server, False if
it is local (built-in)

Definition at line 1822 of file paravisSM.py.

01822 
01823     def IsRemote(self):
01824         """Returns True if the connection to a remote server, False if
01825         it is local (built-in)"""
01826         if self.Session.IsA("vtkSMSessionClient"):
01827             return True
01828         return False


Member Data Documentation

Definition at line 1799 of file paravisSM.py.

Definition at line 1801 of file paravisSM.py.

Definition at line 1800 of file paravisSM.py.

Default constructor. Creates a Connection with the given
ID, all other data members initialized to None.

Definition at line 1796 of file paravisSM.py.

Definition at line 1798 of file paravisSM.py.

Definition at line 1797 of file paravisSM.py.


The documentation for this class was generated from the following file: