Пример #1
0
 private void ValidateLoadPatternsAllTheSame()
 {
     if (LoadPatterns.Any(p => LoadPatternTypeConverter.Convert(p.Pattern) != LoadPatternType))
     {
         throw new InvalidDataException("did not expect mismatched load patterns in the same load case");
     }
 }
Пример #2
0
        public LoadCase(string description, IEnumerable <FactoredLoadPattern> loadPatterns, PredominantDirection direction)
        {
            Description          = description;
            LoadPatterns         = loadPatterns.ToList();
            LoadPatternType      = LoadPatternTypeConverter.Convert(LoadPatterns.First().Pattern);
            PredominantDirection = direction;

            ValidateLoadPatternsAllTheSame();
        }