Exemplo n.º 1
0
 public void SetNumOfCars(NumOfCars numCars)
 {
     myNumOfCars = numCars;
 }
Exemplo n.º 2
0
 public Household(string currZone)
 {
     myZoneID = currZone;
     myHhhldSize = HouseholdSize.Twoadults;
     myDwellType = DwellingType.House;
     myNumOfCars = NumOfCars.OneCar;
     myNumOfWorkers = NumOfWorkers.One;
     myNumOfPeople = NumOfPeople.Two;
     myNumOfKids = NumOfKids.None;
     myNumofUnivDeg = NumWithUnivDeg.One;
     myIncomeLevel = IncomeLevel.SeventyFiveToOneTwentyFive;
     myIncome = 80000;
     Type = AgentType.Household;
     myID = idCounter++;
 }
Exemplo n.º 3
0
 private Household(Household copyFrom)
 {
     myHhhldSize = copyFrom.myHhhldSize;
     numberOfAdults = copyFrom.numberOfAdults;
     myDwellType = copyFrom.myDwellType;
     myNumOfCars = copyFrom.myNumOfCars;
     myNumOfWorkers = copyFrom.myNumOfWorkers;
     myNumOfPeople = copyFrom.myNumOfPeople;
     myNumOfKids = copyFrom.myNumOfKids;
     myNumofUnivDeg = copyFrom.myNumofUnivDeg;
     myIncomeLevel = copyFrom.myIncomeLevel;
     myIncome = copyFrom.myIncome;
     Type = copyFrom.Type;
     myZoneID = copyFrom.myZoneID;
     myID = idCounter++;
 }
Exemplo n.º 4
0
        public Household(HouseholdSize size, string currZone)
        {
            myID = idCounter++;
            switch (size)
            {
                case (HouseholdSize.SingleAdult):
                    numberOfAdults = 1;
                    myHhhldSize = HouseholdSize.SingleAdult;
                    break;
                case (HouseholdSize.OneAdultOneChild):
                    numberOfAdults = 1;
                    myHhhldSize = HouseholdSize.OneAdultOneChild;
                    break;
                case (HouseholdSize.Twoadults):
                    myHhhldSize = HouseholdSize.Twoadults;
                    numberOfAdults = 2;
                    break;
                case (HouseholdSize.TwoAdultsChildren):
                    myHhhldSize = HouseholdSize.TwoAdultsChildren;
                    numberOfAdults = 2;
                    break;
                case (HouseholdSize.ThreeOrMoreAdults):
                    myHhhldSize = HouseholdSize.ThreeOrMoreAdults;
                    numberOfAdults = 3;
                    break;
                case (HouseholdSize.ThreeOrMoreAdultsChildren):
                    myHhhldSize = HouseholdSize.ThreeOrMoreAdultsChildren;
                    numberOfAdults = 3;
                    break;
                default:
                    break;
            }

            myZoneID = currZone;
            myDwellType = DwellingType.House;
            myNumOfCars = NumOfCars.OneCar;
            myNumOfWorkers = NumOfWorkers.One;
            myNumOfPeople = NumOfPeople.Two;
            myNumOfKids = NumOfKids.None;
            myNumofUnivDeg = NumWithUnivDeg.None;
            myIncomeLevel = IncomeLevel.SeventyFiveToOneTwentyFive;
            myIncome = 80000;
            Type = AgentType.Household;
        }