LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Private Attributes | List of all members
lsst.meas.base.pluginRegistry.PluginRegistry.Configurable Class Reference

Class used as the actual element in the registry. More...

Inheritance diagram for lsst.meas.base.pluginRegistry.PluginRegistry.Configurable:

Public Member Functions

def __init__
 Create a Configurable object for the given PluginClass and name. More...
 
def ConfigClass
 
def __call__
 

Public Attributes

 name
 
 PluginClass
 

Static Private Attributes

string __slots__ = "PluginClass"
 

Detailed Description

Class used as the actual element in the registry.

Rather than constructing a Plugin instance, its call method (invoked by RegistryField.apply) returns a tuple of (executionOrder, name, config, PluginClass), which can then be sorted before the plugins are instantiated.

Definition at line 65 of file pluginRegistry.py.

Constructor & Destructor Documentation

def lsst.meas.base.pluginRegistry.PluginRegistry.Configurable.__init__ (   self,
  name,
  PluginClass 
)

Create a Configurable object for the given PluginClass and name.

Definition at line 77 of file pluginRegistry.py.

77 
78  def __init__(self, name, PluginClass):
79  """!
80  Create a Configurable object for the given PluginClass and name
81  """
82  self.name = name
83  self.PluginClass = PluginClass
def __init__
Create a Configurable object for the given PluginClass and name.

Member Function Documentation

def lsst.meas.base.pluginRegistry.PluginRegistry.Configurable.__call__ (   self,
  config 
)

Definition at line 87 of file pluginRegistry.py.

87 
88  def __call__(self, config):
89  return (self.PluginClass.getExecutionOrder(), self.name, config, self.PluginClass)
90 
def register(self, name, PluginClass, shouldApCorr=False, apCorrList=()):
def register
Register a Plugin class with the given name.
def lsst.meas.base.pluginRegistry.PluginRegistry.Configurable.ConfigClass (   self)

Definition at line 85 of file pluginRegistry.py.

85 
86  def ConfigClass(self): return self.PluginClass.ConfigClass

Member Data Documentation

string lsst.meas.base.pluginRegistry.PluginRegistry.Configurable.__slots__ = "PluginClass"
staticprivate

Definition at line 75 of file pluginRegistry.py.

lsst.meas.base.pluginRegistry.PluginRegistry.Configurable.name

Definition at line 81 of file pluginRegistry.py.

lsst.meas.base.pluginRegistry.PluginRegistry.Configurable.PluginClass

Definition at line 82 of file pluginRegistry.py.


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