Beispiel #1
0
 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
Beispiel #2
0
    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
Beispiel #3
0
 def __init__(self,
              name='iworker',
              family=None,
              default=Dummy(),
              meta=None):
     Facility.__init__(self, name, family, default, None, (), meta)
     return
Beispiel #4
0
    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
Beispiel #5
0
    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
Beispiel #7
0
    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)
Beispiel #9
0
    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)
Beispiel #10
0
    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)
Beispiel #11
0
    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)
Beispiel #12
0
    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
Beispiel #15
0
 def __init__(self, name = 'iworker', family=None, default=Dummy(), meta=None):
     Facility.__init__(self, name, family, default, None, (), meta)
     return
Beispiel #16
0
 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
Beispiel #18
0
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)
Beispiel #19
0
 def __init__(self, factory=None, args=[]):
     Facility.__init__(self,
                       name="device",
                       factory=factory,
                       args=args,
                       vault=['devices'])
Beispiel #20
0
 def __init__(self, name='form', family=None, default=None, meta=None):
     Facility.__init__(self, name, family, default, None, (), meta)
     return
Beispiel #21
0
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, family=None, default=None, meta=None):
     Facility.__init__(self, 'dataobject', family, default, None, (), meta)
     return
 def __init__(self, name, itemFactory, **kwds):
     Facility.__init__(self, name=name, **kwds)
     self.itemFactory = itemFactory
     return
Beispiel #24
0
 def __init__(self, family=None, default=None, meta=None):
     Facility.__init__(self, 'actor', family, default, None, (), meta)
     return
Beispiel #25
0
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)
Beispiel #26
0
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)
Beispiel #27
0
 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
Beispiel #29
0
 def __init__(self, name, itemFactory, **kwds):
     Facility.__init__(self, name=name, **kwds)
     self.itemFactory = itemFactory
     return