Example #1
0
        private static TWrapper CreateWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper)
        {
            var type     = typeof(TWrapper);
            var instance = Activator.CreateInstance(type, jointTour, householdDayWrapper);

            return((TWrapper)instance);
        }
Example #2
0
        public JointTourWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper)
        {
            _jointTour = jointTour;

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

            // relations properties

            Household    = householdDayWrapper.Household;
            HouseholdDay = householdDayWrapper;
        }
Example #3
0
        public JointTourWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper)
        {
            _jointTour = jointTour;

            _exporter =
                Global
                .Kernel
                .Get <IPersistenceFactory <IJointTour> >()
                .Exporter;

            // relations properties

            Household    = householdDayWrapper.Household;
            HouseholdDay = householdDayWrapper;
        }
Example #4
0
 IJointTourWrapper IJointTourCreator.CreateWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper)
 {
     return(CreateWrapper(jointTour, householdDayWrapper));
 }
Example #5
0
 public JointTourWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper) : base(jointTour, householdDayWrapper)
 {
     _jointTour = (IActumJointTour)jointTour;
 }