IMP
2.0.0
The Integrative Modeling Platform
|
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... | |
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
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)
Definition at line 199 of file AbstractGrid.py.
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.