Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EpwSchema" /> class.
 /// </summary>
 /// <param name="Header">Header (required).</param>
 /// <param name="Location">Location (required).</param>
 /// <param name="Data">Data (required).</param>
 public EpwSchema(List <string> Header = default(List <string>), EpwLocationSchema Location = default(EpwLocationSchema), List <DataCollectionSchema> Data = default(List <DataCollectionSchema>))
 {
     // to ensure "Header" is required (not null)
     if (Header == null)
     {
         throw new InvalidDataException("Header is a required property for EpwSchema and cannot be null");
     }
     else
     {
         this.Header = Header;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for EpwSchema and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     // to ensure "Data" is required (not null)
     if (Data == null)
     {
         throw new InvalidDataException("Data is a required property for EpwSchema and cannot be null");
     }
     else
     {
         this.Data = Data;
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SkySchema" /> class.
 /// </summary>
 /// <param name="Location">Location.</param>
 /// <param name="Hour">hour of the day - minvalue 0 and max value 23.</param>
 /// <param name="Day">day of the month - minvalue 1 and max value 31.</param>
 /// <param name="Month">month of the year - minvalue 1 and max value 12.</param>
 /// <param name="North">angle in degrees between 0-360 to indicate North.</param>
 /// <param name="SkyType">0 - Sunny with sun, 1 - sunny without sun, 2 - intermediate with sun, 3 - intermediate without sun, 4 - cloudy sky, 5 - uniform sky.</param>
 public SkySchema(EpwLocationSchema Location = default(EpwLocationSchema), int?Hour = default(int?), int?Day = default(int?), int?Month = default(int?), decimal?North = default(decimal?), int?SkyType = default(int?))
 {
     this.Location = Location;
     this.Hour     = Hour;
     this.Day      = Day;
     this.Month    = Month;
     this.North    = North;
     this.SkyType  = SkyType;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WeaSchema" /> class.
 /// </summary>
 /// <param name="Header">Header (required).</param>
 /// <param name="Location">Location (required).</param>
 /// <param name="DirectNormalRadiation">DirectNormalRadiation.</param>
 /// <param name="DiffuseHorizontalRadiation">DiffuseHorizontalRadiation.</param>
 public WeaSchema(List <string> Header = default(List <string>), EpwLocationSchema Location = default(EpwLocationSchema), DataCollectionSchema DirectNormalRadiation = default(DataCollectionSchema), DataCollectionSchema DiffuseHorizontalRadiation = default(DataCollectionSchema))
 {
     // to ensure "Header" is required (not null)
     if (Header == null)
     {
         throw new InvalidDataException("Header is a required property for WeaSchema and cannot be null");
     }
     else
     {
         this.Header = Header;
     }
     // to ensure "Location" is required (not null)
     if (Location == null)
     {
         throw new InvalidDataException("Location is a required property for WeaSchema and cannot be null");
     }
     else
     {
         this.Location = Location;
     }
     this.DirectNormalRadiation      = DirectNormalRadiation;
     this.DiffuseHorizontalRadiation = DiffuseHorizontalRadiation;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DirectReflectionGridBasedSchema" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Type">Type.</param>
 /// <param name="AnalysisGrids">AnalysisGrids.</param>
 /// <param name="Surfaces">Surfaces.</param>
 /// <param name="Location">Location.</param>
 /// <param name="Hoys">Hoys.</param>
 /// <param name="SunVectors">A list of vectors if location is not provided.</param>
 public DirectReflectionGridBasedSchema(IdEnum?Id = default(IdEnum?), TypeEnum?Type = default(TypeEnum?), List <AnalysisGridSchema> AnalysisGrids = default(List <AnalysisGridSchema>), List <HBSurfaceSchema> Surfaces = default(List <HBSurfaceSchema>), EpwLocationSchema Location = default(EpwLocationSchema), HoyListSchema Hoys = default(HoyListSchema), List <VectorSchema> SunVectors = default(List <VectorSchema>))
 {
     this.Id            = Id;
     this.Type          = Type;
     this.AnalysisGrids = AnalysisGrids;
     this.Surfaces      = Surfaces;
     this.Location      = Location;
     this.Hoys          = Hoys;
     this.SunVectors    = SunVectors;
 }