예제 #1
0
    def _do_set_sensitive(self, **kwargs):
        """
        Set widget sensitivity as needed for the selected meter.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        AssessmentResults.do_set_sensitive(self, *kwargs)
        _attributes = self._dtc_data_controller.request_get_attributes(
            self._hardware_id)

        self.txtPiA.set_sensitive(False)
        self.txtPiF.set_sensitive(False)
        self.txtPiT.set_sensitive(False)

        if _attributes['hazard_rate_method_id'] == 2:
            self.txtPiE.set_sensitive(True)
            if self._subcategory_id == 2:
                self.txtPiA.set_sensitive(True)
                self.txtPiF.set_sensitive(True)
            elif self._subcategory_id == 1:
                self.txtPiT.set_sensitive(True)
                self.txtPiQ.set_sensitive(False)

        return _return
예제 #2
0
파일: Switch.py 프로젝트: diegohrey/ramstk
    def __init__(self, controller, **kwargs):
        """
        Initialize an instance of the Switch assessment result view.

        :param controller: the hardware data controller instance.
        :type controller: :class:`ramstk.hardware.Controller.HardwareBoMDataController`
        """
        AssessmentResults.__init__(self, controller, **kwargs)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.
        self._lst_labels.append(u"\u03C0<sub>CYC</sub>:")
        self._lst_labels.append(u"\u03C0<sub>L</sub>:")
        self._lst_labels.append(u"\u03C0<sub>C</sub>:")
        self._lst_labels.append(u"\u03C0<sub>N</sub>:")
        self._lst_labels.append(u"\u03C0<sub>U</sub>:")

        # Initialize private scalar attributes.
        self._lblModel.set_tooltip_markup(
            _(u"The assessment model used to calculate the switch failure "
              u"rate."))

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.txtPiCYC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The cycling factor for the switch."))
        self.txtPiL = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The load stress factor for the switch."))
        self.txtPiC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The contact form and quantity factor for the switch."))
        self.txtPiN = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The number of active contacts factor for the switch."))
        self.txtPiU = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The use factor for the breaker."))

        self._make_page()
        self.show_all()

        pub.subscribe(self._do_load_page, 'calculatedHardware')
예제 #3
0
    def _do_set_sensitive(self, **kwargs):  # pylint: disable=unused-argument
        """
        Set widget sensitivity as needed for the selected integrated circuit.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        AssessmentResults.do_set_sensitive(self, **kwargs)
        _attributes = self._dtc_data_controller.request_get_attributes(
            self._hardware_id)

        self.txtC1.set_sensitive(False)
        self.txtPiT.set_sensitive(False)
        self.txtC2.set_sensitive(False)
        self.txtPiL.set_sensitive(False)
        self.txtLambdaCYC.set_sensitive(False)
        self.txtLambdaBD.set_sensitive(False)
        self.txtPiMFG.set_sensitive(False)
        self.txtPiCD.set_sensitive(False)
        self.txtLambdaBP.set_sensitive(False)
        self.txtPiPT.set_sensitive(False)
        self.txtLambdaEOS.set_sensitive(False)
        self.txtPiA.set_sensitive(False)

        if _attributes['subcategory_id'] == 10:
            self.txtLambdaB.set_sensitive(False)
            self.txtLambdaB.set_visible(False)
            self.txtLambdaBD.set_sensitive(True)
            self.txtPiMFG.set_sensitive(True)
            self.txtPiCD.set_sensitive(True)
            self.txtLambdaBP.set_sensitive(True)
            self.txtPiPT.set_sensitive(True)
            self.txtLambdaEOS.set_sensitive(True)
            self.txtPiE.set_sensitive(True)

        if _attributes['hazard_rate_method_id'] == 1:
            self.txtLambdaB.set_sensitive(True)
        else:
            self.txtPiT.set_sensitive(True)
            self.txtPiE.set_sensitive(True)
            self.txtPiQ.set_sensitive(True)

            if _attributes['subcategory_id'] in [1, 2, 3, 4, 5, 6, 7, 8, 9]:
                self.txtC1.set_sensitive(True)
                self.txtC2.set_sensitive(True)
                self.txtPiL.set_sensitive(True)

            if _attributes['subcategory_id'] in [5, 6, 7, 8]:
                self.txtLambdaCYC.set_sensitive(True)

            if _attributes['subcategory_id'] == 9:
                self.txtPiA.set_sensitive(True)

        return _return
예제 #4
0
    def _make_page(self):
        """
        Make the integrated circuit gtk.Notebook() assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        self._do_set_sensitive()

        # Build the container for capacitors.
        _x_pos, _y_pos = AssessmentResults.make_page(self)

        self.put(self.txtC1, _x_pos, _y_pos[3])
        self.put(self.txtPiT, _x_pos, _y_pos[4])
        self.put(self.txtC2, _x_pos, _y_pos[5])
        self.put(self.txtPiL, _x_pos, _y_pos[6])
        self.put(self.txtLambdaCYC, _x_pos, _y_pos[7])
        self.put(self.txtLambdaBD, _x_pos, _y_pos[8])
        self.put(self.txtPiMFG, _x_pos, _y_pos[9])
        self.put(self.txtPiCD, _x_pos, _y_pos[10])
        self.put(self.txtLambdaBP, _x_pos, _y_pos[11])
        self.put(self.txtPiPT, _x_pos, _y_pos[12])
        self.put(self.txtLambdaEOS, _x_pos, _y_pos[13])
        self.put(self.txtPiA, _x_pos, _y_pos[14])

        return None
예제 #5
0
    def _do_set_sensitive(self, **kwargs):
        """
        Set widget sensitivity as needed for the selected resistor.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = AssessmentResults.do_set_sensitive(self, **kwargs)
        _attributes = self._dtc_data_controller.request_get_attributes(
            self._hardware_id)

        self.txtPiR.set_sensitive(False)
        self.txtPiT.set_sensitive(False)
        self.txtPiNR.set_sensitive(False)
        self.txtPiTAPS.set_sensitive(False)
        self.txtPiV.set_sensitive(False)
        self.txtPiC.set_sensitive(False)

        if _attributes['hazard_rate_method_id'] == 2:
            self.txtPiE.set_sensitive(True)
            if _attributes['subcategory_id'] != 8:
                self.txtPiR.set_sensitive(True)
            if _attributes['subcategory_id'] == 4:
                self.txtPiT.set_sensitive(True)
                self.txtPiNR.set_sensitive(True)
            if _attributes['subcategory_id'] in [9, 10, 11, 12, 13, 14, 15]:
                self.txtPiTAPS.set_sensitive(True)
                self.txtPiV.set_sensitive(True)
            if _attributes['subcategory_id'] in [10, 12]:
                self.txtPiC.set_sensitive(True)

        return _return
예제 #6
0
    def _do_load_page(self, **kwargs):
        """
        Load the integrated circuit assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, *kwargs)

        self.txtC1.set_text(str(self.fmt.format(_attributes['C1'])))
        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))
        self.txtC2.set_text(str(self.fmt.format(_attributes['C2'])))
        self.txtPiL.set_text(str(self.fmt.format(_attributes['piL'])))
        self.txtLambdaCYC.set_text(
            str(self.fmt.format(_attributes['lambdaCYC'])))
        self.txtLambdaBD.set_text(str(self.fmt.format(
            _attributes['lambdaBD'])))
        self.txtPiMFG.set_text(str(self.fmt.format(_attributes['piMFG'])))
        self.txtPiCD.set_text(str(self.fmt.format(_attributes['piCD'])))
        self.txtLambdaBP.set_text(str(self.fmt.format(
            _attributes['lambdaBP'])))
        self.txtPiPT.set_text(str(self.fmt.format(_attributes['piPT'])))
        self.txtLambdaEOS.set_text(
            str(self.fmt.format(_attributes['lambdaEOS'])))
        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))

        return _return
예제 #7
0
    def __init__(self, controller, **kwargs):
        """
        Initialize an instance of the Capacitor assessment result view.

        :param controller: the Hardware data controller instance.
        :type controller: :class:`ramstk.hardware.Controller.HardwareBoMDataController`
        """
        AssessmentResults.__init__(self, controller, **kwargs)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.
        self._lst_labels.append(u"\u03C0<sub>CV</sub>:")
        self._lst_labels.append(u"\u03C0<sub>CF</sub>:")
        self._lst_labels.append(u"\u03C0<sub>C</sub>:")

        # Initialize private scalar attributes.
        self._lblModel.set_tooltip_markup(
            _(u"The assessment model used to calculate the capacitor failure "
              u"rate."))

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.txtPiCV = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The capacitance factor for the capacitor."))
        self.txtPiCF = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The configuration factor for the capacitor."))
        self.txtPiC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The construction factor for the capacitor."))

        self._make_page()
        self.show_all()

        pub.subscribe(self._do_load_page, 'calculatedHardware')
예제 #8
0
    def _do_load_page(self, **kwargs):
        """
        Load the inductive device assessment results wodgets.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))

        return _return
예제 #9
0
    def __init__(self, controller, **kwargs):
        """
        Initialize an instance of the Inductor assessment result view.

        :param controller: the hardware data controller instance.
        :type controller: :class:`ramstk.hardware.Controller.HardwareBoMDataController`
        :param int hardware_id: the hardware ID of the currently selected
                                inductor.
        :param int subcategory_id: the ID of the inductor subcategory.
        """
        AssessmentResults.__init__(self, controller, **kwargs)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.
        self._lst_labels.append(u"\u03C0<sub>C</sub>:")

        # Initialize private scalar attributes.
        self._lblModel.set_tooltip_markup(
            _(u"The assessment model used to calculate the inductive device's "
              u"failure rate."))

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.txtPiC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The construction factor for the coil."))

        self._make_page()
        self.show_all()

        pub.subscribe(self._do_load_page, 'calculatedHardware')
예제 #10
0
    def _make_page(self):
        """
        Make the inductor gtk.Notebook() assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        self._do_set_sensitive()

        # Build the container for capacitors.
        _x_pos, _y_pos = AssessmentResults.make_page(self)

        self.put(self.txtPiC, _x_pos, _y_pos[3])

        return None
예제 #11
0
    def _do_load_page(self, **kwargs):
        """
        Load the meter assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))
        self.txtPiF.set_text(str(self.fmt.format(_attributes['piF'])))
        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))

        return _return
예제 #12
0
    def _do_load_page(self, **kwargs):  # pylint: disable=unused-argument
        """
        Load the capacitor assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiCV.set_text(str(self.fmt.format(_attributes['piCV'])))
        self.txtPiCF.set_text(str(self.fmt.format(_attributes['piCF'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))

        return _return
예제 #13
0
    def _make_page(self):
        """
        Make the resistor gtk.Notebook() assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        # Build the container for resistors.
        _x_pos, _y_pos = AssessmentResults.make_page(self)

        self.put(self.txtPiR, _x_pos, _y_pos[3])
        self.put(self.txtPiT, _x_pos, _y_pos[4])
        self.put(self.txtPiNR, _x_pos, _y_pos[5])
        self.put(self.txtPiTAPS, _x_pos, _y_pos[6])
        self.put(self.txtPiV, _x_pos, _y_pos[7])
        self.put(self.txtPiC, _x_pos, _y_pos[8])

        return None
예제 #14
0
파일: Switch.py 프로젝트: diegohrey/ramstk
    def _do_load_page(self, **kwargs):
        """
        Load the switch assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiCYC.set_text(str(self.fmt.format(_attributes['piCYC'])))
        self.txtPiL.set_text(str(self.fmt.format(_attributes['piL'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))
        self.txtPiN.set_text(str(self.fmt.format(_attributes['piN'])))
        self.txtPiU.set_text(str(self.fmt.format(_attributes['piU'])))

        return _return
예제 #15
0
    def _do_load_page(self, **kwargs):
        """
        Load the Resistor assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiR.set_text(str(self.fmt.format(_attributes['piR'])))
        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))
        self.txtPiNR.set_text(str(self.fmt.format(_attributes['piNR'])))
        self.txtPiTAPS.set_text(str(self.fmt.format(_attributes['piTAPS'])))
        self.txtPiV.set_text(str(self.fmt.format(_attributes['piV'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))

        return _return
예제 #16
0
    def _make_page(self):
        """
        Make the semiconductor gtk.Notebook() assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        # Build the container for capacitors.
        _x_pos, _y_pos = AssessmentResults.make_page(self)

        self.put(self.txtPiT, _x_pos, _y_pos[3])
        self.put(self.txtPiA, _x_pos, _y_pos[4])
        self.put(self.txtPiC, _x_pos, _y_pos[5])
        self.put(self.txtPiR, _x_pos, _y_pos[6])
        self.put(self.txtPiM, _x_pos, _y_pos[7])
        self.put(self.txtPiI, _x_pos, _y_pos[8])
        self.put(self.txtPiP, _x_pos, _y_pos[9])
        self.put(self.txtPiS, _x_pos, _y_pos[10])

        return None
예제 #17
0
    def _do_load_page(self, **kwargs):
        """
        Load the miscellaneous devices assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiU.set_text(str(self.fmt.format(_attributes['piU'])))
        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))

        if (_attributes['hazard_rate_method_id'] == 1
                and _attributes['subcategory_id'] in [3, 4]):
            self._lblModel.set_markup(
                u"<span foreground=\"blue\">\u03BB<sub>EQUIP</sub> = "
                u"\u03BB<sub>g</sub></span>")

        return _return
예제 #18
0
    def _do_load_page(self, **kwargs):
        """
        Load the semiconductor assessment results page.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = False

        _attributes = AssessmentResults.do_load_page(self, **kwargs)

        self.txtPiT.set_text(str(self.fmt.format(_attributes['piT'])))
        self.txtPiA.set_text(str(self.fmt.format(_attributes['piA'])))
        self.txtPiC.set_text(str(self.fmt.format(_attributes['piC'])))
        self.txtPiR.set_text(str(self.fmt.format(_attributes['piR'])))
        self.txtPiM.set_text(str(self.fmt.format(_attributes['piM'])))
        self.txtPiI.set_text(str(self.fmt.format(_attributes['piI'])))
        self.txtPiP.set_text(str(self.fmt.format(_attributes['piP'])))
        self.txtPiS.set_text(str(self.fmt.format(_attributes['piS'])))

        return _return
예제 #19
0
    def _do_set_sensitive(self, **kwargs):
        """
        Set widget sensitivity as needed for the selected semiconductor.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = AssessmentResults.do_set_sensitive(self, **kwargs)
        _attributes = self._dtc_data_controller.request_get_attributes(
            self._hardware_id)

        self.txtPiT.set_sensitive(False)
        self.txtPiA.set_sensitive(False)
        self.txtPiC.set_sensitive(False)
        self.txtPiR.set_sensitive(False)
        self.txtPiM.set_sensitive(False)
        self.txtPiI.set_sensitive(False)
        self.txtPiP.set_sensitive(False)
        self.txtPiS.set_sensitive(False)

        if _attributes['hazard_rate_method_id'] == 2:
            self.txtPiE.set_sensitive(True)
            self.txtPiT.set_sensitive(True)
            if _attributes['subcategory_id'] == 1:
                self.txtPiC.set_sensitive(True)
            if _attributes['subcategory_id'] == 13:
                self.txtPiI.set_sensitive(True)
                self.txtPiP.set_sensitive(True)
            if _attributes['subcategory_id'] in [2, 3, 4, 7, 8, 13]:
                self.txtPiA.set_sensitive(True)
            if _attributes['subcategory_id'] in [7, 8]:
                self.txtPiM.set_sensitive(True)
            if _attributes['subcategory_id'] in [2, 3, 6, 10]:
                self.txtPiR.set_sensitive(True)
            if _attributes['subcategory_id'] in [1, 3, 6, 10]:
                self.txtPiS.set_sensitive(True)

        return _return
예제 #20
0
    def _do_set_sensitive(self, **kwargs):  # pylint: disable=unused-argument
        """
        Set widget sensitivity as needed for the selected capacitor.

        :return: False if successful or True if an error is encountered.
        :rtype: bool
        """
        _return = AssessmentResults.do_set_sensitive(self)
        _attributes = self._dtc_data_controller.request_get_attributes(
            self._hardware_id)

        if _attributes['hazard_rate_method_id'] == 1:
            self.txtPiCV.set_sensitive(False)
            self.txtPiCF.set_sensitive(False)
            self.txtPiC.set_sensitive(False)
            self.txtPiE.set_sensitive(False)
        else:
            self.txtPiCV.set_sensitive(True)
            self.txtPiCF.set_sensitive(True)
            self.txtPiC.set_sensitive(True)
            self.txtPiE.set_sensitive(True)

        return _return
예제 #21
0
    def __init__(self, controller, **kwargs):
        """
        Initialize an instance of the Resistor assessment result view.

        :param controller: the hardware data controller instance.
        :type controller: :class:`ramstk.hardware.Controller.HardwareBoMDataController`
        """
        AssessmentResults.__init__(self, controller, **kwargs)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.
        self._lst_labels.append(u"\u03C0<sub>R</sub>:")
        self._lst_labels.append(u"\u03C0<sub>T</sub>:")
        self._lst_labels.append(u"\u03C0<sub>NR</sub>:")
        self._lst_labels.append(u"\u03C0<sub>TAPS</sub>")
        self._lst_labels.append(u"\u03C0<sub>V</sub>:")
        self._lst_labels.append(u"\u03C0<sub>C</sub>:")

        # Initialize private scalar attributes.
        self._lblModel.set_tooltip_markup(
            _(u"The assessment model used to calculate the resistor "
              u"failure rate."))

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.txtPiR = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The resistance factor for the resistor."))
        self.txtPiT = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The temperature factor for the resistor."))
        self.txtPiNR = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The number of resistors factor for the resistor."))
        self.txtPiTAPS = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The potentiometer taps factor for the resistor."))
        self.txtPiV = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The voltage factor for the resistor."))
        self.txtPiC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The construction class factor for the resistor."))

        self._make_page()
        self.show_all()

        pub.subscribe(self._do_load_page, 'calculatedHardware')
예제 #22
0
    def __init__(self, controller, **kwargs):
        """
        Initialize an instance of the Semiconductor assessment result view.

        :param controller: the hardware data controller instance.
        :type controller: :class:`ramstk.hardware.Controller.HardwareBoMDataController`
        """
        AssessmentResults.__init__(self, controller, **kwargs)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.
        self._lst_labels.append(u"\u03C0<sub>T</sub>:")
        self._lst_labels.append(u"\u03C0<sub>A</sub>:")
        self._lst_labels.append(u"\u03C0<sub>C</sub>:")
        self._lst_labels.append(u"\u03C0<sub>R</sub>:")
        self._lst_labels.append(u"\u03C0<sub>M</sub>:")
        self._lst_labels.append(u"\u03C0<sub>I</sub>:")
        self._lst_labels.append(u"\u03C0<sub>P</sub>:")
        self._lst_labels.append(u"\u03C0<sub>S</sub>:")

        # Initialize private scalar attributes.
        self._lblModel.set_tooltip_markup(
            _(u"The assessment model used to calculate the semiconductor "
              u"failure rate."))

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.txtPiT = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The temperature factor for the semiconductor."))
        self.txtPiA = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The application factor for the semiconductor."))
        self.txtPiC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The construction factor for the semiconductor."))
        self.txtPiR = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The power rating factor for the semiconductor."))
        self.txtPiM = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The matching network factor for the semiconductor."))
        self.txtPiI = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The forward current factor for the semiconductor."))
        self.txtPiP = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The power degradation factor for the semiconductor."))
        self.txtPiS = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The electrical stress factor for the semiconductor."))

        self._make_page()
        self.show_all()

        pub.subscribe(self._do_load_page, 'calculatedHardware')
예제 #23
0
    def __init__(self, controller, **kwargs):
        """
        Initialize an instance of the Integrated Circuit assessment result view.

        :param controller: the hardware data controller instance.
        :type controller: :class:`ramstk.hardware.IntegratedCircuitBoMDataController`
        """
        AssessmentResults.__init__(self, controller, **kwargs)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.
        self._lst_labels.append(u"C1:")
        self._lst_labels.append(u"\u03C0<sub>T</sub>:")
        self._lst_labels.append(u"C2:")
        self._lst_labels.append(u"\u03C0<sub>L</sub>:")
        self._lst_labels.append(u"\u03BB<sub>CYC</sub>:")
        self._lst_labels.append(u"\u03BB<sub>BD</sub>")
        self._lst_labels.append(u"\u03C0<sub>MFG</sub>")
        self._lst_labels.append(u"\u03C0<sub>CD</sub>")
        self._lst_labels.append(u"\u03BB<sub>BP</sub>")
        self._lst_labels.append(u"\u03C0<sub>PT</sub>")
        self._lst_labels.append(u"\u03BB<sub>EOS</sub>")
        self._lst_labels.append(u"\u03C0<sub>A</sub>")

        # Initialize private scalar attributes.
        self._lblModel.set_tooltip_markup(
            _(u"The assessment model used to calculate the integrated circuit "
              u"failure rate."))

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.txtC1 = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The die complexity hazard rate of the integrated "
                      u"circuit."))
        self.txtPiT = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The temperature factor for the integrated circuit."))
        self.txtC2 = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The package hazard rate for the integrated circuit."))
        self.txtPiC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The construction factor for the integrated circuit."))
        self.txtPiL = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The learning factor for the integrated circuit."))
        self.txtLambdaCYC = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The read/write cycling induced hazard rate for the "
                      u"EEPROM."))
        self.txtLambdaBD = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The die base hazard rate for the VLSI device."))
        self.txtPiMFG = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The manufacturing process correction factor for the "
                      u"VLSI device."))
        self.txtPiCD = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The die complexity correction factor for the VLSI "
                      u"device."))
        self.txtLambdaBP = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The package base hazard rate for the VLSI device."))
        self.txtPiPT = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The package type correction factor for the VLSI "
                      u"device."))
        self.txtLambdaEOS = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The electrical overstress hazard rate for the VLSI "
                      u"device."))
        self.txtPiA = ramstk.RAMSTKEntry(
            width=125,
            editable=False,
            bold=True,
            tooltip=_(u"The application correction factor for the GaAs "
                      u"device."))

        self._make_page()
        self.show_all()

        pub.subscribe(self._do_load_page, 'calculatedHardware')