Class EsoReader
Reads and writes result files in eso format.
public class EsoReader
- Inheritance
-
objectEsoReader
- Extension Methods
Constructors
EsoReader()
Reads eplusout.eso from default DesignBuilder EnergyPlus folder.
public EsoReader()
EsoReader(string)
Reads an Eso file.
public EsoReader(string esoFilePath)
Parameters
esoFilePathstringEso file absolute path.
EsoReader(params string[])
Reads more than one eso file as a joined set of results.
public EsoReader(params string[] esoFilePaths)
Parameters
esoFilePathsstring[]List of absolute paths.
Properties
Environments
public List<string> Environments { get; set; }
Property Value
- List<string>
Id
Returns a unique Id for a resultset.
public static int Id { get; }
Property Value
- int
Id integer number.
this[Func<string, bool>]
Retrieves all the ResultSets that meet the conditions specified by the filter function.
public IEnumerable<ResultSet> this[Func<string, bool> filter] { get; }
Parameters
filterFunc<string, bool>A function that takes a string (component name) and returns a boolean indicating whether the ResultSet should be included.
Property Value
- IEnumerable<ResultSet>
An IEnumerable of ResultSet that meet the conditions specified by the filter function.
this[string]
Retrieves all the ResultSets that match the specified report type.
public IEnumerable<ResultSet> this[string reportType] { get; }
Parameters
reportTypestringThe report type to filter the ResultSets.
Property Value
- IEnumerable<ResultSet>
An IEnumerable of ResultSet that match the specified report type.
OldResults
Retrieves the list of existent resultsets
public List<ResultSet> OldResults { get; set; }
Property Value
- List<ResultSet>
ResultSet list.
Results
Retrieves the list of existent + newly created resultsets
public IEnumerable<ResultSet> Results { get; }
Property Value
- IEnumerable<ResultSet>
ResultSet list.
SingleEnvironment
public bool SingleEnvironment { get; set; }
Property Value
Methods
Add(ResultSet)
Add a resultset.
public void Add(ResultSet result)
Parameters
resultResultSetResultSet.
Add(params ResultSet[])
Add a param array of resultset.
public void Add(params ResultSet[] results)
Parameters
resultsResultSet[]Param array of ResultSets.
Add(IEnumerable<ResultSet>)
Adds a list of resultsets.
public void Add(IEnumerable<ResultSet> results)
Parameters
resultsIEnumerable<ResultSet>List of resultsets.
AddEsoFile(string)
Reads another eso file and combines it with current results.
public void AddEsoFile(string esoFilePath)
Parameters
esoFilePathstringAbsolute eso file path.
First(string, string, Frequencies)
Returns the first ResultSet that meets the conditions. Null if not found.
public ResultSet First(string component, string reportType, Frequencies frequency)
Parameters
componentstringreportTypestringfrequencyFrequencies
Returns
Get(Func<ResultSet, bool>)
Retrieves all the ResultSets that meet the conditions.
public IEnumerable<ResultSet> Get(Func<ResultSet, bool> conditions)
Parameters
Returns
- IEnumerable<ResultSet>
Get(string)
Retrieves all the ResultSets that meet the conditions.
public IEnumerable<ResultSet> Get(string componentOrreportType)
Parameters
componentOrreportTypestring
Returns
- IEnumerable<ResultSet>
Get(string, Frequencies)
Retrieves all the ResultSets that meet the conditions.
public IEnumerable<ResultSet> Get(string componentOrreportType, Frequencies frequency)
Parameters
componentOrreportTypestringfrequencyFrequencies
Returns
- IEnumerable<ResultSet>
Save(bool)
Saves the eso file overwriting current eso file.
public void Save(bool newResultsOnly = false)
Parameters
newResultsOnlyboolOnly save newly created results.
Save(string, bool, bool)
Saves the eso file in an new file.
public void Save(string esoFilePath, bool newResultsOnly = false, bool sortNew = true)
Parameters
esoFilePathstringAbsolute path for the new eso file.
newResultsOnlyboolOnly save newly created results.
sortNewboolAdds a first blank character to new results so they appear first in Results Viewer
TryGet(Func<ResultSet, bool>, out ResultSet)
Finds the first ResultSet that meets the conditions. A return value indicates whether the result is found or not.
public bool TryGet(Func<ResultSet, bool> conditions, out ResultSet result)
Parameters
Returns
TryGet(string, string, Frequencies, out ResultSet)
Finds the ResultSet that meets the conditions. A return value indicates whether the result is found or not.
public bool TryGet(string component, string reportType, Frequencies frequency, out ResultSet result)
Parameters
componentstringreportTypestringfrequencyFrequenciesresultResultSet
Returns
TryGet(string, string, out ResultSet)
Finds the first ResultSet that meets the conditions. A return value indicates whether the result is found or not.
public bool TryGet(string component, string reportType, out ResultSet result)