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

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

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

            // relations properties

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