How to use the hardware.component.Component.Model.get_attributes function in hardware

To help you get started, we’ve selected a few hardware examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ReliaQualAssociates / ramstk / rtk / hardware / component / capacitor / Capacitor.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Capacitor data model
        attributes.

        :return: (q_override, acvapplied, capacitance, base_hr, piQ, piE, piCV,
                  quality, specification, spec_sheet, reason)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.q_override, self.acvapplied,
                             self.capacitance, self.base_hr, self.piQ,
                             self.piE, self.piCV, self.quality,
                             self.specification, self.spec_sheet, self.reason)

        return _values
github ReliaQualAssociates / ramstk / rtk / hardware / component / relay / Relay.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Relay data model
        attributes.

        :return: (quality, construction, q_override, base_hr, piQ, piE, reason)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.quality, self.construction, self.q_override,
                             self.base_hr, self.piQ, self.piE, self.reason)

        return _values
github ReliaQualAssociates / ramstk / rtk / hardware / component / connection / Connection.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Connection data model
        attributes.

        :return: (q_override, base_hr, piQ, piE, quality, reason)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.q_override, self.base_hr, self.piQ, self.piE,
                             self.quality, self.reason)

        return _values
github ReliaQualAssociates / ramstk / rtk / hardware / component / semiconductor / Semiconductor.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Semiconductor data model
        attributes.

        :return: (quality, q_override, base_hr, piQ, piE, piT, reason)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.quality, self.q_override, self.base_hr,
                             self.piQ, self.piE, self.piT, self.reason)

        return _values
github ReliaQualAssociates / ramstk / rtk / hardware / component / miscellaneous / Lamp.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Lamp data model
        attributes.

        :return: (application, illuminate_hours, operate_hours, base_hr,
                  piU, piA, piE, reason)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.application, self.illuminate_hours,
                             self.operate_hours, self.base_hr, self.piU,
                             self.piA, self.piE, self.reason)

        return _values
github ReliaQualAssociates / ramstk / rtk / hardware / component / inductor / Inductor.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Inductor data model
        attributes.

        :return: (q_override, base_hr, piQ, piE, quality, reason,
                  specification, insulation_class, hot_spot_temperature)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.q_override, self.base_hr, self.piQ, self.piE,
                             self.hot_spot_temperature,  self.quality, 
                             self.specification, self.insulation_class, self.reason)

        return _values
github ReliaQualAssociates / ramstk / rtk / hardware / component / integrated_circuit / IntegratedCircuit.py View on Github external
def get_attributes(self):
        """
        Method to retrieve the current values of the Integrated Circuit data
        model attributes.

        :return: (q_override, base_hr, piQ, piE, quality, reason,
                  specification, insulation_class, hot_spot_temperature)
        :rtype: tuple
        """

        _values = Component.get_attributes(self)

        _values = _values + (self.q_override, self.base_hr, self.piQ, self.piE,
                             self.piT, self.quality, self.reason)

        return _values