public TasTSDAdapter(FileSettings fileSettings, TSDResultType tsdResultQuery = TSDResultType.Simulation, SimulationResultType simType = SimulationResultType.BuildingResult, ProfileResultUnit resultUnit = ProfileResultUnit.Yearly, ProfileResultType resultType = ProfileResultType.TemperatureExternal, int hour = -1, int day = -1, TASSettings tasSettings = null) { tsdFilePath = fileSettings.GetFullFileName(); tsdResultType = tsdResultQuery; SimulationResultType = simType; ProfileResultUnits = resultUnit; ProfileResultType = resultType; Hour = hour; Day = day; _tasSettings = tasSettings; if (!CheckInputCombinations()) { return; } }
public static List <SimulationResult> ResultsByUnit(this List <SimulationResult> results, ProfileResultUnit unit) { List <SimulationResult> resultList = new List <SimulationResult>(); foreach (SimulationResult sr in results) { List <ProfileResult> pResults = sr.SimulationResults.Where(x => x.Unit == unit).ToList(); if (pResults.Count > 0) { resultList.Add(Create.SimulationResult(sr.Name, sr.SimulationResultType, pResults)); } } return(resultList); }
public static ProfileResult ProfileResult(string name = "", ProfileResultType type = ProfileResultType.Undefined, ProfileResultUnit unit = ProfileResultUnit.Undefined, List <double> results = null) { results = results ?? new List <double>(); return(new ProfileResult { Name = name, Unit = unit, Type = type, Results = results, }); }
public static List <SimulationResult> ResultsByTypeUnitResultType(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnit unit, ProfileResultType resultType) { results = results.ResultsByTypeUnit(simulationType, unit); return(results.ResultsByResultType(resultType)); }
public static List <SimulationResult> FilterResultsByTypeUnit(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnit unit) { results = results.FilterResultsByType(simulationType); return(results.FilterResultsByUnit(unit)); }