IMP  2.0.0
The Integrative Modeling Platform
IMP.isd.AbstractGrid.AbstractService Class Reference

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

Inherits object.

Public Member Functions

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

Detailed Description

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)

Note
This class is only available in Python.

Definition at line 199 of file AbstractGrid.py.

Member Function Documentation

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

Example: (in derived class)

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

Definition at line 207 of file AbstractGrid.py.

+ Here is the call graph for this function:


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