Table of Contents

Class EsoReader

Namespace
EpNet.Results
Assembly
EpNet.dll

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 string

Eso 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

List<string>

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

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

bool

Methods

Add(ResultSet)

Add a resultset.

public void Add(ResultSet result)

Parameters

result ResultSet

ResultSet.

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 string

Absolute 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 string
reportType string
frequency Frequencies

Returns

ResultSet

Get(Func<ResultSet, bool>)

Retrieves all the ResultSets that meet the conditions.

public IEnumerable<ResultSet> Get(Func<ResultSet, bool> conditions)

Parameters

conditions Func<ResultSet, bool>

Returns

IEnumerable<ResultSet>

Get(string)

Retrieves all the ResultSets that meet the conditions.

public IEnumerable<ResultSet> Get(string componentOrreportType)

Parameters

componentOrreportType string

Returns

IEnumerable<ResultSet>

Get(string, Frequencies)

Retrieves all the ResultSets that meet the conditions.

public IEnumerable<ResultSet> Get(string componentOrreportType, Frequencies frequency)

Parameters

componentOrreportType string
frequency Frequencies

Returns

IEnumerable<ResultSet>

Save(bool)

Saves the eso file overwriting current eso file.

public void Save(bool newResultsOnly = false)

Parameters

newResultsOnly bool

Only 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 string

Absolute path for the new eso file.

newResultsOnly bool

Only save newly created results.

sortNew bool

Adds 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

conditions Func<ResultSet, bool>
result ResultSet

Returns

bool

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 string
reportType string
frequency Frequencies
result ResultSet

Returns

bool

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)

Parameters

component string
reportType string
result ResultSet

Returns

bool