Ejemplo n.º 1
0
        public static Dictionary <string, object> GetPeakZoneGroupGains(BuildingData BuildingData, TSDZoneArray TSDZoneArray, List <ZoneDataGroup> ZoneDataGroups)
        {
            List <string> aValues = new List <string>();

            foreach (ZoneDataGroup aZoneDataGroup in ZoneDataGroups)
            {
                string aValue = ZoneDataGroup.Name(aZoneDataGroup);
                foreach (ZoneData aZoneData in ZoneDataGroup.GetZonesData(aZoneDataGroup))
                {
                    aValue += ":" + ZoneData.GUID(aZoneData);
                }

                aValues.Add(aValue);
            }

            object[,] aResults = BuildingData.pBuildingData.GetPeakZoneGroupGains(aValues.ToArray(), new TSDZoneArray[] { TSDZoneArray }) as object[, ];
            List <List <object> > aListList = new List <List <object> >();

            for (int i = 0; i < aResults.GetLength(0); i++)
            {
                List <object> aList = new List <object>();
                for (int j = 0; j < aResults.GetLength(1); j++)
                {
                    aList.Add(aResults[i, j]);
                }
                aListList.Add(aList);
            }

            return(new Dictionary <string, object>
            {
                { "ZoneDataGroupNames", aListList[0] },
                { "Gains", aListList[1] },
                { "Indexes", aListList[2] }
            });
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Get Peak Zone Group Gain
        /// </summary>
        /// <param name="BuildingData">TSD Building Data</param>
        /// <param name="TSDZoneArray">TSD Zone Array</param>
        /// <param name="ZonesData">TSD Zones Data</param>
        /// <returns name="Values">Values</returns>
        /// <search>
        /// TAS, TSDDocument, TSDDocument, BuildingData, tas, tsddocument, tsddocument, GetPeakZoneGroupGain, Get Peak Zone Group Gain
        /// </search>
        public static float GetPeakZoneGroupGain(BuildingData BuildingData, TSDZoneArray TSDZoneArray, IEnumerable <ZoneData> ZonesData)
        {
            string[] aGuids = new string[ZonesData.Count()];
            for (int i = 0; i < aGuids.Length; i++)
            {
                aGuids[i] = ZoneData.GUID(ZonesData.ElementAt(i));
            }

            return(BuildingData.pBuildingData.GetPeakZoneGroupGain(aGuids, new TSDZoneArray[] { TSDZoneArray }));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets Surfaces Data for Zone Data
        /// </summary>
        /// <param name="ZoneData">TAS Zone Data</param>
        /// <returns name="SurfaceData">Surface Data List</returns>
        /// <search>
        /// TAS, Surface Data, Zone Data, zonedata, zone data, surfacedata, surface data
        /// </search>
        public static List <SurfaceData> SurfaceData(ZoneData ZoneData)
        {
            List <SurfaceData> aSurfaceDataList = new List <SurfaceData>();

            int aIndex = 1;

            TSD.SurfaceData aSurfaceData = ZoneData.pZoneData.GetSurfaceData(aIndex);
            while (aSurfaceData != null)
            {
                aSurfaceDataList.Add(new SurfaceData(aSurfaceData));
                aIndex++;
                aSurfaceData = ZoneData.pZoneData.GetSurfaceData(aIndex);
            }
            return(aSurfaceDataList);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets Daily Zone Results for Zone Data
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="Day">Day</param>
 /// <param name="TSDZoneArray">TSD Zone Array</param>
 /// <returns name="Result">Daily Zone Result for Zone Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, tas, tsddocument, GetDailyZoneResult, Get Daily Zone Result, get daily zone result, get daily zone result
 /// </search>
 public static object GetDailyZoneResult(ZoneData ZoneData, int Day, TSDZoneArray TSDZoneArray)
 {
     return(ZoneData.pZoneData.GetDailyZoneResult(Day, (int)TSDZoneArray));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets TAS Annual Zone Volume
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="Volume">TAS Zone Data Volume</returns>
 /// <search>
 /// TAS, tas, TBDDocument, tbddocument, ZoneData, zonedata, Zone Data, zone data, Volume, volume, SurfacesData, Surfaces Data
 /// </search>
 public static float Volume(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.volume);
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Get Peak Zone Group Gain
        /// </summary>
        /// <param name="BuildingData">TSD Building Data</param>
        /// <param name="TSDZoneArray">TSD Zone Array</param>
        /// <param name="ZoneDataGroup">TSD Zone Data Group</param>
        /// <returns name="Values">Values</returns>
        /// <search>
        /// TAS, TSDDocument, TSDDocument, BuildingData, tas, tsddocument, tsddocument, GetPeakZoneGroupGain, Get Peak Zone Group Gain
        /// </search>
        public static float GetPeakZoneGroupGain(BuildingData BuildingData, TSDZoneArray TSDZoneArray, ZoneDataGroup ZoneDataGroup)
        {
            List <ZoneData> aZoneDataList = ZoneDataGroup.GetZonesData(ZoneDataGroup);

            return(BuildingData.pBuildingData.GetPeakZoneGroupGain(aZoneDataList.ConvertAll(x => ZoneData.GUID(x)).ToArray(), new TSDZoneArray[] { TSDZoneArray }));
        }
Ejemplo n.º 7
0
 /// <summary>
 /// Gets TAS Annual Zone Data GUID
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="GUID">TAS Zone Data GUID</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Zone GUID, tas, tsddocument, tsddocument Zone GUID, zoneguid, guid
 /// </search>
 public static string GUID(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.zoneGUID);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Gets TAS Annual Zone Convective Common Ratio
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="Ratio">TAS Zone Data Convective Common Ratio</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Zone Convective Common Ratio, tas, tsddocument, tsddocument zone convective common ratio, ConvectiveCommonRatio, convectivecommonratio
 /// </search>
 public static float ConvectiveCommonRatio(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.convectiveCommonRatio);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Gets TAS Annual Zone Result
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="Name">TAS Zone Data Name</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Zone Name, tas, tsddocument, tsddocument Zone Name, zonename
 /// </search>
 public static string Name(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.name);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Gets TAS Annual Zone Data Number
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="Number">TAS Zone Data Number</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Zone Number, tas, tsddocument, tsddocument Zone Number, zonenumber
 /// </search>
 public static int Number(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.zoneNumber);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Gets TAS Annual Zone Result
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="Index">TSD Data Index</param>
 /// <returns name="Data">TAS Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Annual Zone Result, tas, tsddocument, tsddocument AnnualZoneResult, annualzoneresult
 /// </search>
 public static object AnnualZoneResult(ZoneData ZoneData, int Index)
 {
     return(ZoneData.pZoneData.GetAnnualZoneResult(Index));
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Gets TAS Annual Zone Result
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="TSDZoneArray">TSDZoneArray</param>
 /// <returns name="Data">TAS Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Annual Zone Result, tas, tsddocument, tsddocument AnnualZoneResult, annualzoneresult
 /// </search>
 public static object AnnualZoneResult(ZoneData ZoneData, TSDZoneArray TSDZoneArray)
 {
     return(ZoneData.pZoneData.GetAnnualZoneResult((int)TSDZoneArray));
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Gets Surface Data from Zone Data
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="Index">Surface Index</param>
 /// <returns name="SurfaceData">Surface Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, Get Zone Surface Data, tas, tsddocument, tsddocument Zone SurfaceData, SurfaceData, surfacedata, surface data
 /// </search>
 public static SurfaceData GetSurfaceData(ZoneData ZoneData, int Index)
 {
     return(new SurfaceData(ZoneData.pZoneData.GetSurfaceData(Index)));
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Gets Hourly Zone Results for Zone Data
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="Hour">Hour</param>
 /// <param name="TSDZoneArray">TSD Zone Array</param>
 /// <returns name="Result">Hourly Zone Result for Zone Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, tas, tsddocument, GetHourlyZoneResult, Get Hourly Zone Result, get hourly zone result, get hourly zone result
 /// </search>
 public static float GetHourlyZoneResult(ZoneData ZoneData, int Hour, TSDZoneArray TSDZoneArray)
 {
     return(ZoneData.pZoneData.GetHourlyZoneResult(Hour, (int)TSDZoneArray));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Gets Hourly Zone Results for Zone Data
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="Hour">Hour</param>
 /// <param name="Index">Index</param>
 /// <returns name="Result">Hourly Zone Result for Zone Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, tas, tsddocument, GetHourlyZoneResult, Get Hourly Zone Result, get hourly zone result, get hourly zone result
 /// </search>
 public static float GetHourlyZoneResult(ZoneData ZoneData, int Hour, int Index)
 {
     return(ZoneData.pZoneData.GetHourlyZoneResult(Hour, Index));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Gets Daily Zone Results for Zone Data
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <param name="Day">Day</param>
 /// <param name="Index">Index</param>
 /// <returns name="Result">Daily Zone Result for Zone Data</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, tas, tsddocument, GetDailyZoneResult, Get Daily Zone Result, get daily zone result, get daily zone result
 /// </search>
 public static object GetDailyZoneResult(ZoneData ZoneData, int Day, int Index)
 {
     return(ZoneData.pZoneData.GetDailyZoneResult(Day, Index));
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Gets TAS Zone Data Conv Weighting Factors
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="Factors">TAS Zone Data Conv Weighting Factors</returns>
 /// <search>
 /// TAS, tas, TBDDocument, tbddocument, ZoneData, zonedata, GetConvWeightingFactors, getconvweightingfactors, Get Conv Weighting Factors, get conv weighting factors
 /// </search>
 public static object GetConvWeightingFactors(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.GetConvWeightingFactors());
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Gets TAS Annual Zone Description
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="Description">TAS Zone Data Descriprion</returns>
 /// <search>
 /// TAS, tas, TBDDocument, tbddocument, ZoneData, zonedata, Zone Data, zone data, Description, description
 /// </search>
 public static string Description(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.description);
 }
Ejemplo n.º 19
0
 /// <summary>
 /// Gets TAS Zone Data Floor Area
 /// </summary>
 /// <param name="ZoneData">TSD Zone Data</param>
 /// <returns name="FloorArea">Floor Area</returns>
 /// <search>
 /// TAS, TBDDocument, TBDDocument, ZoneData, FloorArea, Floor Area,
 /// </search>
 public static float FloorArea(ZoneData ZoneData)
 {
     return(ZoneData.pZoneData.floorArea);
 }