internal HB.ModelEnergyProperties CheckResources()
        {
            var eng = new ModelEnergyProperties();

            eng.AddSchedule(this.ScheduleRuleset);
            eng.AddScheduleTypeLimit(this.TypeLimitObj);
            return(eng.DuplicateModelEnergyProperties());
        }
Beispiel #2
0
        internal HB.ModelEnergyProperties CheckResources(HB.ModelEnergyProperties libSource)
        {
            var eng = new ModelEnergyProperties();

            eng.AddProgramType(this.ProgramType);

            var names = (this.ProgramType as ProgramTypeAbridged).GetAllSchedules();
            var sches = names
                        .Select(_ => libSource.ScheduleList.FirstOrDefault(m => m.Identifier == _)).Where(_ => _ != null);
            var schTypes = libSource.ScheduleTypeLimits.Where(_ => _ != null);

            eng.AddSchedules(sches);
            eng.AddScheduleTypeLimits(schTypes);
            return(eng.DuplicateModelEnergyProperties());
        }