Example #1
0
        internal static void GeneratePersonSchedules(this ITashaHousehold household, Random random, int householdIterations, Time minimumAtHomeTime)
        {
            var data = (household["SData"] as SchedHouseholdData);

            // Generate each person's schedule
            foreach (var person in household.Persons)
            {
                person.GenerateWorkSchoolSchedule(random);
            }
            // Make each person attend the household level projects
            household.AddHouseholdProjects(data, random);

            //Generate other/market schedules
            foreach (var person in household.Persons)
            {
                //person.Generate
                person.AddPersonalProjects(random);
            }

            // Clean up the people's schedules
            household.CleanupSchedules();

            // Add in the trip chains here for each person
            household.BuildChains(householdIterations, minimumAtHomeTime);
        }