Example #1
0
        private static TWrapper CreateWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper)
        {
            Type   type     = typeof(TWrapper);
            object instance = Activator.CreateInstance(type, partialHalfTour, householdDayWrapper);

            return((TWrapper)instance);
        }
Example #2
0
        public PartialHalfTourWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper)
        {
            _partialHalfTour = partialHalfTour;

            _exporter =
                Global
                .ContainerDaySim.GetInstance <IPersistenceFactory <IPartialHalfTour> >()
                .Exporter;

            // relations properties

            Household    = householdDayWrapper.Household;
            HouseholdDay = householdDayWrapper;
        }
Example #3
0
 IPartialHalfTourWrapper IPartialHalfTourCreator.CreateWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper)
 {
     return(CreateWrapper(partialHalfTour, householdDayWrapper));
 }
Example #4
0
 public PartialHalfTourWrapper(IPartialHalfTour partialHalfTour, IHouseholdDayWrapper householdDayWrapper) : base(partialHalfTour, householdDayWrapper)
 {
     _partialHalfTour = (ILDPartialHalfTour)partialHalfTour;
 }