コード例 #1
0
 def __init__(self, I2A_address, I2PE_address):
     self.node = zmqNode('User')
     self.node.target = self
     self.node.logging = True
     self.apparatus = APE_Interfaces.ApparatusInterface(self.node)
     self.apparatus.defaultBlocking = False
     self.executor = APE_Interfaces.ExecutorInterface(self.node)
     self.User = Devices.User_Consol('User')
     self.connect2A(I2A_address)
     self.connect2PE(I2PE_address)
     self.node.start_listening()
コード例 #2
0
ファイル: GUI_Node.py プロジェクト: machinekoder/APE
    def __init__(self, G2L_address, G2A_address, G2PE_address):
        # Create the node
        self.node = zmqNode('gui')
        self.node.logging = True
        # self.User = Devices.User_GUI('User')
        # Create an interface for the executor and apparatus
        # assigns them to the gui
        self.apparatus = APE_Interfaces.ApparatusInterface(self.node)
        self.executor = APE_Interfaces.ExecutorInterface(self.node)
        # connect to launcher, apparatus, and procexec
        self.connect2A(G2A_address)
        self.connect2PE(G2PE_address)
        self.connect2L(G2L_address)
        self.GUI = ''
        # sets the target to be the GUI
        self.node.target = self
        # sets the interface apparatus to the apparatus in the GUI

        self.node.start_listening()
        self.startGUI()
コード例 #3
0
ファイル: ProcExec.py プロジェクト: machinekoder/APE_GUI
 def __init__(self, PE2L_address, PE2A_address, PE2G_address):
     # Create the node and set its target to ProcExec
     self.node = zmqNode('procexec')
     self.node.target = self
     self.node.logging = True
     # creates an executor
     self.executor = Core.Executor()
     self.executor.node = self.node
     self.proclist = []
     # Create an interface for the apparatus and assign it to the executor
     self.apparatus = APE_Interfaces.ApparatusInterface(self.node)
     # connect to launcher, apparatus, and gui process
     self.connect2L(PE2L_address)
     self.connect2A(PE2A_address)
     self.connect2G(PE2G_address)
     self.node.start_listening()
コード例 #4
0
 def __init__(self, A2L_address, A2PE_address, A2G_address):
     # Create the node and set its target to Appa
     self.node = zmqNode('appa')
     self.node.target = self
     self.node.logging = True
     # Create a black Apparatus
     self.apparatus = Core.Apparatus()
     # Create an interface for the executor and assign it to the apparatus
     self.executor = APE_Interfaces.ExecutorInterface(self.node)
     self.executor.localDefault = False
     self.apparatus.executor = self.executor
     # Connect to the gui, launcher, and procexec process
     self.connect2L(A2L_address)
     self.connect2PE(A2PE_address)
     self.connect2G(A2G_address)
     self.node.start_listening()