Exemplo n.º 1
0
class LINAC_Wizard_Document:
    def __init__(self, accl):
        self.accl = accl
        self.accSeq = null
        self.linac_wizard_window = null
        self.scl_wizard_document = null
        self.linac_setup_controller = LINAC_SetUp_Controller(self)
        self.ws_lw_controller = WS_LW_Acquisition_Controller(self)
        self.io_controller = WS_Wizard_IO_Controller(self)
        self.tr_twiss_analysis_controller = Transverse_Twiss_Analysis_Controller(
            self)
        self.scl_long_tuneup_controller = SCL_Long_TuneUp_Controller(self)
        #--------fill out the tabbed panel
        self.tabbedPane = JTabbedPane()
        self.tabbedPane.add("SCL Long. TuneUp",
                            self.scl_long_tuneup_controller.getMainPanel())
        self.tabbedPane.add("Acc. Seq. SetUp for Transverse Analysis",
                            self.linac_setup_controller.getMainPanel())
        self.tabbedPane0 = JTabbedPane()
        self.tabbedPane0.add("WS,LW Data Acquisition",
                             self.ws_lw_controller.getMainPanel())
        self.tabbedPane0.add("Transv. Twiss Analysis",
                             self.tr_twiss_analysis_controller.getMainPanel())
        self.tabbedPane.add("Transverse Twiss", self.tabbedPane0)

    def setLINAC_Wizard_Window(self, linac_wizard_window):
        self.linac_wizard_window = linac_wizard_window
        self.linac_wizard_window.getMainPanel().add(self.tabbedPane,
                                                    BorderLayout.CENTER)

    def setSCL_Wizard_Document(self, scl_wizard_document):
        self.scl_wizard_document = scl_wizard_document

    def getMessageTextField(self):
        if (self.linac_wizard_window != null):
            return self.linac_wizard_window.getMessageTextField()
        else:
            return null

    def getWS_LW_Controller(self):
        return self.ws_lw_controller

    def getIO_Controller(self):
        return self.io_controller

    def getSetUp_Controller(self):
        return self.linac_setup_controller

    def setAccSeq(self, accSeq):
        self.accSeq = accSeq
        self.ws_lw_controller.setAccSeq(accSeq)

    def getAccSeq(self):
        return self.accSeq

    def getAccl(self):
        return self.accl
Exemplo n.º 2
0
class LINAC_Wizard_Document:
	def __init__(self,accl):
		self.accl = accl
		self.accSeq = null
		self.linac_wizard_window = null
		self.scl_wizard_document = null
		self.linac_setup_controller = LINAC_SetUp_Controller(self)
		self.ws_lw_controller = WS_LW_Acquisition_Controller(self)
		self.io_controller = WS_Wizard_IO_Controller(self)
		self.tr_twiss_analysis_controller = Transverse_Twiss_Analysis_Controller(self)
		self.scl_long_tuneup_controller = SCL_Long_TuneUp_Controller(self)
		#--------fill out the tabbed panel
		self.tabbedPane = JTabbedPane()		
		self.tabbedPane.add("Acc. Seq. SetUp",self.linac_setup_controller.getMainPanel())
		self.tabbedPane0 = JTabbedPane()
		self.tabbedPane0.add("WS,LW Data Acquisition",self.ws_lw_controller.getMainPanel())
		self.tabbedPane0.add("Transv. Twiss Analysis",self.tr_twiss_analysis_controller.getMainPanel())
		self.tabbedPane.add("Transverse Twiss",self.tabbedPane0)
		self.tabbedPane.add("SCL Long. TuneUp",self.scl_long_tuneup_controller.getMainPanel())
		
	def setLINAC_Wizard_Window(self,linac_wizard_window):
		self.linac_wizard_window = linac_wizard_window
		self.linac_wizard_window.getMainPanel().add(self.tabbedPane,BorderLayout.CENTER)	
		
	def setSCL_Wizard_Document(self,scl_wizard_document):
		self.scl_wizard_document = scl_wizard_document
		
		
	def getMessageTextField(self):
		if(self.linac_wizard_window != null):
			return self.linac_wizard_window.getMessageTextField()
		else:
			return null
		
	def getWS_LW_Controller(self):
		return self.ws_lw_controller
		
	def getIO_Controller(self):
		return self.io_controller
		
	def getSetUp_Controller(self):
		return self.linac_setup_controller
		
	def setAccSeq(self,accSeq):
		self.accSeq = accSeq
		self.ws_lw_controller.setAccSeq(accSeq)
		
	def getAccSeq(self):
		return self.accSeq 
		
	def getAccl(self):
		return self.accl
Exemplo n.º 3
0
 def __init__(self, accl):
     self.accl = accl
     self.accSeq = null
     self.linac_wizard_window = null
     self.scl_wizard_document = null
     self.linac_setup_controller = LINAC_SetUp_Controller(self)
     self.ws_lw_controller = WS_LW_Acquisition_Controller(self)
     self.io_controller = WS_Wizard_IO_Controller(self)
     self.tr_twiss_analysis_controller = Transverse_Twiss_Analysis_Controller(
         self)
     self.scl_long_tuneup_controller = SCL_Long_TuneUp_Controller(self)
     #--------fill out the tabbed panel
     self.tabbedPane = JTabbedPane()
     self.tabbedPane.add("SCL Long. TuneUp",
                         self.scl_long_tuneup_controller.getMainPanel())
     self.tabbedPane.add("Acc. Seq. SetUp for Transverse Analysis",
                         self.linac_setup_controller.getMainPanel())
     self.tabbedPane0 = JTabbedPane()
     self.tabbedPane0.add("WS,LW Data Acquisition",
                          self.ws_lw_controller.getMainPanel())
     self.tabbedPane0.add("Transv. Twiss Analysis",
                          self.tr_twiss_analysis_controller.getMainPanel())
     self.tabbedPane.add("Transverse Twiss", self.tabbedPane0)
Exemplo n.º 4
0
	def __init__(self,accl):
		self.accl = accl
		self.accSeq = null
		self.linac_wizard_window = null
		self.scl_wizard_document = null
		self.linac_setup_controller = LINAC_SetUp_Controller(self)
		self.ws_lw_controller = WS_LW_Acquisition_Controller(self)
		self.io_controller = WS_Wizard_IO_Controller(self)
		self.tr_twiss_analysis_controller = Transverse_Twiss_Analysis_Controller(self)
		self.scl_long_tuneup_controller = SCL_Long_TuneUp_Controller(self)
		#--------fill out the tabbed panel
		self.tabbedPane = JTabbedPane()		
		self.tabbedPane.add("Acc. Seq. SetUp",self.linac_setup_controller.getMainPanel())
		self.tabbedPane0 = JTabbedPane()
		self.tabbedPane0.add("WS,LW Data Acquisition",self.ws_lw_controller.getMainPanel())
		self.tabbedPane0.add("Transv. Twiss Analysis",self.tr_twiss_analysis_controller.getMainPanel())
		self.tabbedPane.add("Transverse Twiss",self.tabbedPane0)
		self.tabbedPane.add("SCL Long. TuneUp",self.scl_long_tuneup_controller.getMainPanel())