Class EsoReader
Reads and writes result files in eso format.
public class EsoReader
- Inheritance
-
EsoReader
- 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
esoFilePath
stringEso file absolute path.
EsoReader(params string[])
Reads more than one eso file as a joined set of results.
public EsoReader(params string[] esoFilePaths)
Parameters
esoFilePaths
string[]List of absolute paths.
Properties
Environments
public List<string> Environments { get; set; }
Property Value
Id
Returns a unique Id for a resultset.
public static int Id { get; }
Property Value
- int
Id integer number.
OldResults
Retrieves the list of existent resultsets
public List<ResultSet> OldResults { get; set; }
Property Value
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
result
ResultSetResultSet.
Add(params ResultSet[])
Add a param array of resultset.
public void Add(params ResultSet[] results)
Parameters
results
ResultSet[]Param array of ResultSets.
Add(IEnumerable<ResultSet>)
Adds a list of resultsets.
public void Add(IEnumerable<ResultSet> results)
Parameters
results
IEnumerable<ResultSet>List of resultsets.
AddEsoFile(string)
Reads another eso file and combines it with current results.
public void AddEsoFile(string esoFilePath)
Parameters
esoFilePath
stringAbsolute 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
component
stringreportType
stringfrequency
Frequencies
Returns
Get(Func<ResultSet, bool>)
Retrieves all the ResultSets that meet the conditions.
public IEnumerable<ResultSet> Get(Func<ResultSet, bool> conditions)
Parameters
Returns
Get(string)
Retrieves all the ResultSets that meet the conditions.
public IEnumerable<ResultSet> Get(string componentOrreportType)
Parameters
componentOrreportType
string
Returns
Get(string, Frequencies)
Retrieves all the ResultSets that meet the conditions.
public IEnumerable<ResultSet> Get(string componentOrreportType, Frequencies frequency)
Parameters
componentOrreportType
stringfrequency
Frequencies
Returns
Save(bool)
Saves the eso file overwriting current eso file.
public void Save(bool newResultsOnly = false)
Parameters
newResultsOnly
boolOnly 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
esoFilePath
stringAbsolute path for the new eso file.
newResultsOnly
boolOnly save newly created results.
sortNew
boolAdds 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
component
stringreportType
stringfrequency
Frequenciesresult
ResultSet
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)