def __init__(self, factory=None, args=[]): if factory is None: args = [] from Journal import Journal as factory Facility.__init__(self, name="journal", factory=factory, args=args) return
def __init__(self, name='iworker', family=None, default=Dummy(), meta=None): Facility.__init__(self, name, family, default, None, (), meta) return
def __init__(self, factory=None, args=[]): if factory is None: args = [] from Renderer import Renderer as factory Facility.__init__(self, name="renderer", factory=factory, args=args) return
def __init__(self, factory=None, args=[]): if factory is None: args = [] from Console import Console as factory Facility.__init__(self, name="device", factory=factory, args=args) return
def _retrieveComponent(self, instance, componentName): actor = instance.retrieveComponent(componentName, factory='actor', vault=['actors']) # if we were successful, return if actor: actor.aliases.append(self.name) return actor, actor.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName)
def _retrieveComponent(self, instance, componentName, args): dataobject = instance.retrieveComponent( componentName, factory='dataobject', args=args, vault=['dataobjects']) # if we were successful, return if dataobject: dataobject.aliases.append(self.name) return dataobject, dataobject.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName, args)
def _retrieveComponent(self, instance, componentName, args): worker = instance.retrieveComponent( componentName, factory='iworker', args=args, vault=['iworkers']) # if we were successful, return if worker: worker.aliases.append(self.name) return worker, worker.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName, args)
def _retrieveComponent(self, instance, componentName, args): form = instance.retrieveComponent( componentName, factory='form', args=args, vault=['forms']) # if we were successful, return if form: form.aliases.append(self.name) return form, form.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName, args)
def _retrieveComponent(self, instance, componentName, args): worker = instance.retrieveComponent(componentName, factory='iworker', args=args, vault=['iworkers']) # if we were successful, return if worker: worker.aliases.append(self.name) return worker, worker.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName, args)
def _retrieveComponent(self, instance, componentName, args): form = instance.retrieveComponent(componentName, factory='form', args=args, vault=['forms']) # if we were successful, return if form: form.aliases.append(self.name) return form, form.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName, args)
def _retrieveComponent(self, instance, componentName, args): dataobject = instance.retrieveComponent(componentName, factory='dataobject', args=args, vault=['dataobjects']) # if we were successful, return if dataobject: dataobject.aliases.append(self.name) return dataobject, dataobject.getLocator() # otherwise, try again return Facility._retrieveComponent(self, instance, componentName, args)
def __init__(self, name): from Channel import Channel Facility.__init__(self, name=name, factory=Channel, args=[name]) return
def __init__(self, name = 'iworker', family=None, default=Dummy(), meta=None): Facility.__init__(self, name, family, default, None, (), meta) return
def __init__(self, factory=None, args=[]): Facility.__init__(self, name="device", factory=factory, args=args, vault=['devices'])
def __init__(self, family=None, default=None, meta=None): Facility.__init__(self, 'dataobject', family, default, None, (), meta) return
def facility(name, **kwds): from pyre.inventory.Facility import Facility kwds['factory'] = kwds.get('factory', Launcher) kwds['vault'] = kwds.get('vault', ['launchers']) kwds['family'] = kwds.get('family', 'launcher') return Facility(name, **kwds)
def __init__(self, name='form', family=None, default=None, meta=None): Facility.__init__(self, name, family, default, None, (), meta) return
def facility(name, **kwds): from pyre.inventory.Facility import Facility kwds['vault'] = kwds.get('vault', ['hooks']) kwds['family'] = kwds.get('family', 'hook') return Facility(name, **kwds)
def __init__(self, name, itemFactory, **kwds): Facility.__init__(self, name=name, **kwds) self.itemFactory = itemFactory return
def __init__(self, family=None, default=None, meta=None): Facility.__init__(self, 'actor', family, default, None, (), meta) return
def job(name, **kwds): from pyre.inventory.Facility import Facility kwds['factory'] = kwds.get('factory', Job) kwds['vault'] = kwds.get('vault', ['schedulers']) kwds['family'] = kwds.get('family', 'job') return Facility(name, **kwds)
def colorScheme(name, **kwds): from pyre.inventory.Facility import Facility kwds['factory'] = kwds.get('factory', ColorScheme) kwds['vault'] = kwds.get('vault', ['colors']) kwds['family'] = kwds.get('family', 'colorScheme') return Facility(name, **kwds)
def __init__(self, name = 'form', family=None, default=None, meta=None): Facility.__init__(self, name, family, default, None, (), meta) return
def __init__(self, name): from vnf.components.Geometer import Geometer Facility.__init__(self, name=name, factory=Geometer, args=[name]) return