biosphere::io::BiosphereConnector Class Reference


Public Member Functions

def __init__
def SetAddress
def GetServices
def RequestService

Data Fields

 address
 port
 error
 parser

Detailed Description

This class can set up a connection with a Bio-SPHERE daemon.
It can query the daemon for its services and can forward requests
to it. It also performs type and error checking.

Definition at line 8 of file io.py.


Member Function Documentation

def biosphere::io::BiosphereConnector::__init__ (   self,
  address = 'localhost',
  port = 2915 
)

Initialize the BiosphereConnector class.

Args:
address -- The hostname or IP address of the daemon.
port -- The TCP/IP port on which it is listening.

Definition at line 11 of file io.py.

def biosphere::io::BiosphereConnector::SetAddress (   self,
  address 
)

Set the address of the connector.

Args:
address -- a string with the address (if there's no port
given, 2915 will be assumed.

Definition at line 23 of file io.py.

def biosphere::io::BiosphereConnector::GetServices (   self  ) 

Connect to the daemon and request its service
definitions which are returned as a bs_definitions class.

Definition at line 35 of file io.py.

def biosphere::io::BiosphereConnector::RequestService (   self,
  bsrequest 
)

Make a service request to a Bio-SPHERE daemon.
The resulting response is returned or None if there was an
error.

Args:
bsrequest -- A bs_service_request class with the request.

Definition at line 53 of file io.py.


Field Documentation

biosphere::io::BiosphereConnector::address

Definition at line 18 of file io.py.

biosphere::io::BiosphereConnector::port

Definition at line 19 of file io.py.

biosphere::io::BiosphereConnector::error

Definition at line 20 of file io.py.

biosphere::io::BiosphereConnector::parser

Definition at line 21 of file io.py.


The documentation for this class was generated from the following file:
Generated on Tue Jul 17 09:51:41 2007 for Bio-SPHERE by  doxygen 1.5.1