コード例 #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
 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()
コード例 #3
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()