IMP logo
Public Member Functions | Public Attributes
IMP.isd.AbstractGrid.AbstractService Class Reference

Detailed Description

Wrapper around Grid services, facilitating non parameter-specific usage of the remote objects.

AbstractService resides on the local side and is parameter-specific. It provides the interface for remote services using grid.

self._set_methods - are used to set up parameters specific to the local service to the remote objects

self._get_methods - are used to get updated parameters from remote side

self._parameters - parameters that have to be set remotely

  1. kept on local side
  2. sets to the remote object before each call

Example:

heatbath = GridService(grid, service_id) heatbath.parameters = {'T': 30, etc} heatbath.set_methods = {'T': 'set_temperature' } heatbath.get_methods = {'T': 'get_temperature' } heatbath.generate_sample(x,y,z)

List of all members.

Public Member Functions

def __init__
def __getattr__
def get_parameter
 Makes sure that the parameters requested (locally) were updated before being returned.

Public Attributes

 debug
 grid
 proxy
 service_id

Member Function Documentation

def IMP.isd.AbstractGrid.AbstractService.get_parameter (   self,
  attr_name 
)

Makes sure that the parameters requested (locally) were updated before being returned.

Example: (in derived class)

def get_temperature(self): return self.get_parameter('T')


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

Generated on Tue May 22 2012 23:33:36 for IMP by doxygen 1.8.1