def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self._pid = None
     self.execparams = " ".join(["%s %s" % x for x in execparams.items()])
     command = "python"
     args = [command, "components/CommandWrapperSubProcess/executables/FirstChild.py"]
     sp = subprocess.Popen(args, executable=command, cwd=os.getcwd())
 def __init__(self, identifier, execparams):
     loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self.process_thread = None
     # self.auto_start is deprecated and is only kept for API compatability
     # with 1.7.X and 1.8.0 components.  This variable may be removed
     # in future releases
     self.auto_start = False
 def __init__(self, identifier, execparams):
     loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self.threadControlLock = threading.RLock()
     self.process_thread = None
     # self.auto_start is deprecated and is only kept for API compatability
     # with 1.7.X and 1.8.0 components.  This variable may be removed
     # in future releases
     self.auto_start = False
Пример #4
0
    def __init__(self, *args, **kwargs):
        Resource.__init__(self, *args, **kwargs)

        # Ignore normal termination signals to ensure that the process is
        # orphaned when the parent is terminated; start_component() normally
        # establishes handlers for these before creating the component instance
        signal.signal(signal.SIGINT, signal.SIG_IGN)
        signal.signal(signal.SIGTERM, signal.SIG_IGN)
        signal.signal(signal.SIGQUIT, signal.SIG_IGN)
Пример #5
0
 def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self,
                       identifier,
                       execparams,
                       propertydefs=PROPERTIES,
                       loggerName=loggerName)
     self._props["execparams"] = " ".join(
         ["%s %s" % x for x in execparams.items()])
     self._pid = None
        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Resource.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_DomainManager_out = PortCFDomainManagerOut_i(self, "DomainManager_out")
Пример #7
0
 def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self._pid = None
     self.execparams = " ".join(["%s %s" % x for x in execparams.items()])
     command = "python"
     args = [
         command,
         "components/CommandWrapperSubProcess/executables/FirstChild.py"
     ]
     sp = subprocess.Popen(args, executable=command, cwd=os.getcwd())
Пример #8
0
        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Resource.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_dataFloat_out = bulkio.OutFloatPort("dataFloat_out")
            self.port_dataShort_out = bulkio.OutShortPort("dataShort_out")
Пример #9
0
    def __init__(self, identifier, execparams):
        loggerName = (execparams["NAME_BINDING"].replace("/", ".")).rsplit("_", 1)[0]
        Resource.__init__(self, identifier, execparams, loggerName=loggerName)
        ThreadedComponent.__init__(self)

        # self.auto_start is deprecated and is only kept for API compatibility
        # with 1.7.X and 1.8.0 components.  This variable may be removed
        # in future releases
        self.auto_start = False
        # Instantiate the default implementations for all ports on this component
        self.port_dataFloat_out = bulkio.OutFloatPort("dataFloat_out")
        self.port_dataShort_out = bulkio.OutShortPort("dataShort_out")
Пример #10
0
        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Resource.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_a = bulkio.InFloatPort("a", maxsize=self.DEFAULT_QUEUE_SIZE)
            self.port_b = bulkio.InFloatPort("b", maxsize=self.DEFAULT_QUEUE_SIZE)
            self.port_out = bulkio.OutFloatPort("out")
        def __init__(self, identifier, execparams):
            loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
            Resource.__init__(self, identifier, execparams, loggerName=loggerName)
            ThreadedComponent.__init__(self)

            # self.auto_start is deprecated and is only kept for API compatibility
            # with 1.7.X and 1.8.0 components.  This variable may be removed
            # in future releases
            self.auto_start = False
            # Instantiate the default implementations for all ports on this component
            self.port_dataSDDS_in = bulkio.InSDDSPort("dataSDDS_in")
            self.port_dataVITA49_in = bulkio.InVITA49Port("dataVITA49_in")
            self.port_dataFloat_in = bulkio.InFloatPort("dataFloat_in", maxsize=self.DEFAULT_QUEUE_SIZE)
            self.port_dataSDDS_out = bulkio.OutSDDSPort("dataSDDS_out")
            self.port_dataVITA49_out = bulkio.OutVITA49Port("dataVITA49_out")
            self.addPropertyChangeListener('connectionTable',self.updated_connectionTable)
Пример #12
0
    def __init__(self, identifier, execparams):
        loggerName = (execparams['NAME_BINDING'].replace('/',
                                                         '.')).rsplit("_",
                                                                      1)[0]
        Resource.__init__(self, identifier, execparams, loggerName=loggerName)
        ThreadedComponent.__init__(self)

        # self.auto_start is deprecated and is only kept for API compatibility
        # with 1.7.X and 1.8.0 components.  This variable may be removed
        # in future releases
        self.auto_start = False
        # Instantiate the default implementations for all ports on this component
        self.port_dataSDDS_in = bulkio.InSDDSPort("dataSDDS_in")
        self.port_dataVITA49_in = bulkio.InVITA49Port("dataVITA49_in")
        self.port_dataFloat_in = bulkio.InFloatPort(
            "dataFloat_in", maxsize=self.DEFAULT_QUEUE_SIZE)
        self.port_dataSDDS_out = bulkio.OutSDDSPort("dataSDDS_out")
        self.port_dataVITA49_out = bulkio.OutVITA49Port("dataVITA49_out")
        self.addPropertyChangeListener('connectionTable',
                                       self.updated_connectionTable)
Пример #13
0
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
     delay = int(execparams["CREATE_DELAY"])
     self._log.debug('Delaying create completion by %d seconds', delay)
     time.sleep(delay)
Пример #14
0
 def __init__(self, identifier, execparams):
     loggerName = "CommandWrapper"
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self._pid = None
     self.execparams = execparams.items()
 def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self, identifier, execparams, propertydefs=PROPERTIES, loggerName=loggerName)
     self._props["execparams"] = " ".join(["%s %s" % x for x in execparams.items()])
     self._pid = None
Пример #16
0
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
     self.addPropertyChangeListener('reset_utctime', self.reset_utcCallback)
Пример #17
0
 def __init__(self, identifier, execparams):
     loggerName = (execparams['NAME_BINDING'].replace('/', '.')).rsplit("_", 1)[0]
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self.process_thread = None
     self.auto_start = False
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
     delay = int(execparams["CREATE_DELAY"])
     self._log.debug('Delaying create completion by %d seconds', delay)
     time.sleep(delay)
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
     self.received_messages = []
Пример #20
0
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
 def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self.process_thread = None
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
     self.received_messages = []
Пример #23
0
 def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self._pid = None
     self.execparams = " ".join(["%s %s" % x for x in execparams.items()])
 def __init__(self, identifier, execparams):
     Resource.__init__(self, identifier, execparams)
 def __init__(self, identifier, execparams):
     loggerName = execparams['NAME_BINDING'].replace('/', '.')
     Resource.__init__(self, identifier, execparams, loggerName=loggerName)
     self.process_thread = None