private static TWrapper CreateWrapper(IPersonDay personDay, IPersonWrapper personWrapper, IHouseholdDayWrapper householdDayWrapper) { Type type = typeof(TWrapper); object instance = Activator.CreateInstance(type, personDay, personWrapper, householdDayWrapper); return((TWrapper)instance); }
public PersonDayWrapper(IPersonDay personDay, IPersonWrapper personWrapper, IHouseholdDayWrapper householdDayWrapper) { _personDay = personDay; _exporter = Global .Kernel .Get <IPersistenceFactory <IPersonDay> >() .Exporter; // person day fields _personDayCreator = Global .Kernel .Get <IWrapperFactory <IPersonDayCreator> >() .Creator; // tour fields _tourReader = Global .Kernel .Get <IPersistenceFactory <ITour> >() .Reader; _tourCreator = Global .Kernel .Get <IWrapperFactory <ITourCreator> >() .Creator; // relations properties Household = personWrapper.Household; Person = personWrapper; HouseholdDay = householdDayWrapper; // domain model properies SetExpansionFactor(); // flags/choice model/etc. properties TimeWindow = new TimeWindow(); }
public PersonDayWrapper(IPersonDay personDay, IPersonWrapper personWrapper, IHouseholdDayWrapper householdDayWrapper) : base(personDay, personWrapper, householdDayWrapper) { _personDay = (IActumPersonDay)personDay; }
IPersonDayWrapper IPersonDayCreator.CreateWrapper(IPersonDay personDay, IPersonWrapper personWrapper, IHouseholdDayWrapper householdDayWrapper) { return(CreateWrapper(personDay, personWrapper, householdDayWrapper)); }
public virtual void Reset() { TimeWindow = new TimeWindow(); _personDay = ResetPersonDay(); _tourSequence = 0; SimulatedHomeBasedTours = 0; SimulatedWorkTours = 0; SimulatedSchoolTours = 0; SimulatedEscortTours = 0; SimulatedPersonalBusinessTours = 0; SimulatedShoppingTours = 0; SimulatedMealTours = 0; SimulatedSocialTours = 0; SimulatedWorkStops = 0; SimulatedSchoolStops = 0; SimulatedEscortStops = 0; SimulatedPersonalBusinessStops = 0; SimulatedShoppingStops = 0; SimulatedMealStops = 0; SimulatedSocialStops = 0; CreatedWorkTours = 0; CreatedSchoolTours = 0; CreatedEscortTours = 0; CreatedPersonalBusinessTours = 0; CreatedShoppingTours = 0; CreatedMealTours = 0; CreatedSocialTours = 0; CreatedRecreationTours = 0; CreatedMedicalTours = 0; WorkTours = 0; SchoolTours = 0; EscortTours = 0; PersonalBusinessTours = 0; ShoppingTours = 0; MealTours = 0; SocialTours = 0; RecreationTours = 0; MedicalTours = 0; WorkStops = 0; SchoolStops = 0; EscortStops = 0; PersonalBusinessStops = 0; ShoppingStops = 0; MealStops = 0; SocialStops = 0; RecreationStops = 0; MedicalStops = 0; UsualWorkplaceTours = 0; HomeBasedTours = 0; WorkBasedTours = 0; JointTours = 0; EscortJointTours = 0; PersonalBusinessJointTours = 0; ShoppingJointTours = 0; MealJointTours = 0; SocialJointTours = 0; RecreationJointTours = 0; MedicalJointTours = 0; EscortFullHalfTours = 0; HasMandatoryTourToUsualLocation = false; WorksAtHomeFlag = 0; //JLB 20160323 CreatedBusinessTours = 0; SimulatedBusinessTours = 0; SimulatedBusinessStops = 0; BusinessTours = 0; BusinessStops = 0; }
public IPersonDayWrapper CreateWrapper(IPersonDay personDay, IPersonWrapper personWrapper, IHouseholdDayWrapper householdDayWrapper) { throw new NotImplementedException(); }