Esempio n. 1
0
        /// <summary> //////////////////////////////////////////////////////////////////////////
        /// Person constructor - Uses input from Mortality risk file to create a person object
        /// that stores relative risk as a function of start age (which maps 1-1 to birth calendar
        /// year), current age, and gender.
        /// </summary> /////////////////////////////////////////////////////////////////////////
        public Person(MortRiskPersonInitializer x)
        {
            // Set InitializeOK flag to true;
            initializeOK = true;

            // Set disease states
            ageStart = x.ageStart;
            ageNow   = x.ageNow;
            gender   = x.gender;
        }
Esempio n. 2
0
        public static Person MortRiskTablePerson(int lineNum, string inputData)
        {
            MortRiskPersonInitializer myMortRiskPersonInitializer =
                new MortRiskPersonInitializer(inputData, lineNum);

            if (!myMortRiskPersonInitializer.initializeOK)
            {
                return(new Person(false));
            }
            return(new Person(myMortRiskPersonInitializer));
        }
Esempio n. 3
0
        /// <summary> //////////////////////////////////////////////////////////////////////////
        /// Person constructor - Uses input from MORTALITY RISK file to create a person object
        /// that stores relative risk as a function of start age (which maps 1-1 to birth calendar
        /// year), current age, and gender.
        /// </summary> /////////////////////////////////////////////////////////////////////////
        public Person(MortRiskPersonInitializer x)
        {
            // Set InitializeOK flag to true;
            initializeOK = true;

            // Set disease states
            startAge = x.startAge;
            ageNow   = x.ageNow;
            gender   = x.gender;
            country  = x.country;
        }