Esempio n. 1
0
        /// <summary> //////////////////////////////////////////////////////////////////////////
        /// Person constructor - Uses input from DISEASE PREVALENCE file to create a person object
        /// that stores Disease prevalence as a function of startage, year & country.
        /// </summary> /////////////////////////////////////////////////////////////////////////
        public Person(DiseasePrevPersonInitializer x)
        {
            // Set InitializeOK flag to true;
            initializeOK = true;

            // Set disease prevalence lookup field values;
            ageNow  = x.ageNow;
            yearNow = x.yearNow;
            country = x.country;
            disease = x.disease;
        }
Esempio n. 2
0
        public static Person DiseasePrevTablePerson(int lineNum, string inputData, Person.diseaseType myDisease)
        {
            DiseasePrevPersonInitializer myDiseasePrevPersonInitializer =
                new DiseasePrevPersonInitializer(lineNum, inputData, myDisease);

            if (!myDiseasePrevPersonInitializer.initializeOK)
            {
                return(new Person(false));
            }
            return(new Person(myDiseasePrevPersonInitializer));
        }