예제 #1
0
    def __init__(self, dao):
        """
        Initialize a PhysicsOfFailure data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.
        self._functional = False

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.dtm_mode = dtmMode(dao)
        self.dtm_mechanism = dtmMechanism(dao)
        self.dtm_opload = OpLoadDataModel(dao)
        self.dtm_opstress = OpStressDataModel(dao)
        self.dtm_testmethod = TestMethodDataModel(dao)
예제 #2
0
파일: Model.py 프로젝트: diegohrey/ramstk
    def __init__(self, dao, site_dao, configuration):
        """
        Initialize a user Preferences data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.

        # Initialize public dictionary attributes.
        self.site_preferences = {}
        self.user_preferences = {}

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.dtm_site_preferences = SitePreferencesDataModel(site_dao)
        self.dtm_user_preferences = UserPreferencesDataModel(
            dao, configuration)
예제 #3
0
    def __init__(self, dao):
        """
        Initialize a Validation data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.

        # Initialize public dictionary attributes.
        self.dic_status = {}

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.status_tree = Tree()

        # Add the root to the status Tree().  This is neccessary to allow
        # multiple entries at the top level as there can only be one root in a
        # treelib Tree().  Manipulation and viewing of a RAMSTK module tree needs
        # to ignore the root of the tree.
        try:
            self.status_tree.create_node(
                tag='Program Status', identifier=0, parent=None)
        except (tree.MultipleRootError, tree.NodeIDAbsentError,
                tree.DuplicatedNodeIdError):
            pass
예제 #4
0
    def __init__(self, dao, site_dao):
        """
        Initialize an Options data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.dtm_site_options = SiteOptionsDataModel(site_dao)
        self.dtm_program_options = ProgramOptionsDataModel(dao)
        self.site_options = None
        self.program_options = None
예제 #5
0
    def __init__(self, dao):
        """
        Initialize a FMEA data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :py:class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.
        self._functional = False

        # Initialize public dictionary attributes.
        self.item_criticality = {}

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.dtm_mode = ModeDataModel(dao)
        self.dtm_mechanism = MechanismDataModel(dao)
        self.dtm_cause = CauseDataModel(dao)
        self.dtm_control = ControlDataModel(dao)
        self.dtm_action = ActionDataModel(dao)
예제 #6
0
파일: Model.py 프로젝트: diegohrey/ramstk
    def __init__(self, dao):
        """
        Initialize a Requirement data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)
예제 #7
0
파일: Model.py 프로젝트: diegohrey/ramstk
    def __init__(self, dao):
        """
        Initialize a Site Preferences data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.
        self._site_preferences = {}
예제 #8
0
    def __init__(self, dao):
        """
        Initialize an Export data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.
        self._output_data = None
예제 #9
0
파일: Model.py 프로젝트: diegohrey/ramstk
    def __init__(self, dao, **kwargs):
        """
        Initialize a Function data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.
        self._test = kwargs['test']
예제 #10
0
파일: Model.py 프로젝트: diegohrey/ramstk
    def __init__(self, dao):
        """
        Initialize a Usage Profile data model instance.

        :param dao: the data access object for communicating with the RAMSTK
                    Program database.
        :type dao: :class:`ramstk.dao.DAO.DAO`
        """
        RAMSTKDataModel.__init__(self, dao)

        # Initialize private dictionary attributes.

        # Initialize private list attributes.

        # Initialize private scalar attributes.

        # Initialize public dictionary attributes.

        # Initialize public list attributes.

        # Initialize public scalar attributes.
        self.dtm_mission = MissionDataModel(dao)
        self.dtm_phase = MissionPhaseDataModel(dao)
        self.dtm_environment = EnvironmentDataModel(dao)