Class ExtensionMethods
public static class ExtensionMethods
- Inheritance
-
objectExtensionMethods
Methods
Average(IEnumerable<ResultSet>)
Averages a list of result sets. If more than one frequency, picks the shorter one.
public static ResultSet Average(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- ResultSet
Resulting Result Set.
AverageAll(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> AverageAll(this IEnumerable<ResultSet> mixedResults)
Parameters
mixedResults
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>
FirstAnnual(IEnumerable<ResultSet>, Func<string, bool>)
public static ResultSet FirstAnnual(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
FirstDaily(IEnumerable<ResultSet>, Func<string, bool>)
public static ResultSet FirstDaily(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
FirstHourly(IEnumerable<ResultSet>, Func<string, bool>)
public static ResultSet FirstHourly(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
FirstMonthly(IEnumerable<ResultSet>, Func<string, bool>)
public static ResultSet FirstMonthly(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
FirstRunPeriod(IEnumerable<ResultSet>, Func<string, bool>)
public static ResultSet FirstRunPeriod(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
FirstTimestep(IEnumerable<ResultSet>, Func<string, bool>)
public static ResultSet FirstTimestep(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
Get(IEnumerable<ResultSet>, string, string, Frequencies)
Gets the result that matches the conditions.
public static ResultSet Get(this IEnumerable<ResultSet> results, string component, string resultType, Frequencies frequency)
Parameters
results
IEnumerable<ResultSet>component
stringresultType
stringfrequency
Frequencies
Returns
GetAll(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetAll(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetAnnual(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetAnnual(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetDaily(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetDaily(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetHourly(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetHourly(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetMonthly(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetMonthly(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetRunPeriod(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetRunPeriod(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetTimestep(IEnumerable<ResultSet>, Func<string, bool>)
public static IEnumerable<ResultSet> GetTimestep(this IEnumerable<ResultSet> results, Func<string, bool> filter = null)
Parameters
Returns
- IEnumerable<ResultSet>
GetZone(ResultSet, IdfReader)
public static IdfObject GetZone(this ResultSet result, IdfReader idf)
Parameters
Returns
GetZoneArea(ResultSet, IdfReader)
public static double GetZoneArea(this ResultSet result, IdfReader idf)
Parameters
Returns
GetZoneArea(IEnumerable<ResultSet>, IdfReader)
public static double GetZoneArea(this IEnumerable<ResultSet> results, IdfReader idf)
Parameters
Returns
GetZoneVolume(ResultSet, IdfReader)
public static double GetZoneVolume(this ResultSet result, IdfReader idf)
Parameters
Returns
GetZoneVolume(IEnumerable<ResultSet>, IdfReader)
public static double GetZoneVolume(this IEnumerable<ResultSet> results, IdfReader idf)
Parameters
Returns
GetZones(IEnumerable<ResultSet>, IdfReader)
public static IEnumerable<IdfObject> GetZones(this IEnumerable<ResultSet> results, IdfReader idf)
Parameters
Returns
- IEnumerable<IdfObject>
GroupByBlock(IEnumerable<ResultSet>, IEnumerable<IdfObject>)
public static Dictionary<string, IEnumerable<ResultSet>> GroupByBlock(this IEnumerable<ResultSet> results, IEnumerable<IdfObject> Idf)
Parameters
Returns
GroupByComponent(IEnumerable<ResultSet>, IEnumerable<string>)
public static Dictionary<string, IEnumerable<ResultSet>> GroupByComponent(this IEnumerable<ResultSet> results, IEnumerable<string> componentSubstrings)
Parameters
Returns
GroupByZone(IEnumerable<ResultSet>, IEnumerable<IdfObject>)
public static Dictionary<string, IEnumerable<ResultSet>> GroupByZone(this IEnumerable<ResultSet> results, IEnumerable<IdfObject> Idf)
Parameters
Returns
SetReportType(IEnumerable<ResultSet>, string)
public static IEnumerable<ResultSet> SetReportType(this IEnumerable<ResultSet> results, string reportType)
Parameters
Returns
- IEnumerable<ResultSet>
SetUnits(IEnumerable<ResultSet>, string)
public static IEnumerable<ResultSet> SetUnits(this IEnumerable<ResultSet> results, string units)
Parameters
Returns
- IEnumerable<ResultSet>
Sum(IEnumerable<ResultSet>)
Sums a list of result sets. If more than one frequency, picks the shorter one.
public static ResultSet Sum(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- ResultSet
Resulting Result Set.
SumAll(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> SumAll(this IEnumerable<ResultSet> mixedResults)
Parameters
mixedResults
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>
ToAnnual(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> ToAnnual(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>
ToDaily(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> ToDaily(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>
ToFrequency(IEnumerable<ResultSet>, Frequencies, bool)
Transforms a list of result sets from a specified frequency to another. Results can be summed or averaged during the transformation.
public static IEnumerable<ResultSet> ToFrequency(this IEnumerable<ResultSet> results, Frequencies finalFrequency, bool average = false)
Parameters
results
IEnumerable<ResultSet>List of result sets to process.
finalFrequency
FrequenciesFinal Frequency.
average
boolIf true, results are averaged.
Returns
- IEnumerable<ResultSet>
ToHourly(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> ToHourly(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>
ToKWh(double)
Converts from J to kWh (divides between 3600000)
public static double ToKWh(this double value)
Parameters
value
doubleValue in J
Returns
- double
Value in kWh
ToMonthly(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> ToMonthly(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>
ToRunPeriod(IEnumerable<ResultSet>)
public static IEnumerable<ResultSet> ToRunPeriod(this IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>
Returns
- IEnumerable<ResultSet>