/***************************************************/ /**** Public Methods ****/ /***************************************************/ public static SimulationResult SimulationResult(SimulationResultType type, List <ProfileResult> results) { return(new oM.Environment.Results.SimulationResult { SimulationResultType = type, SimulationResults = results, }); }
public static SimulationResult SimulationResult(string name = "", SimulationResultType type = SimulationResultType.Undefined, List <ProfileResult> results = null) { results = results ?? new List <ProfileResult>(); return(new SimulationResult { Name = name, SimulationResultType = type, SimulationResults = results, }); }
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> ResultsByTypeUnitResultType(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnit unit, ProfileResultType resultType) { results = results.ResultsByTypeUnit(simulationType, unit); return(results.ResultsByResultType(resultType)); }
public static List <SimulationResult> ResultsByType(this List <SimulationResult> results, SimulationResultType type) { return(results.Where(x => x.SimulationResultType == type).ToList()); }
public static List <SimulationResult> FilterResultsByTypeUnit(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnit unit) { results = results.FilterResultsByType(simulationType); return(results.FilterResultsByUnit(unit)); }
public static SimulationResult SimulationResult(SimulationResultType type, ProfileResult result) { return(SimulationResult(type, new List <ProfileResult> { result })); }
public static List <SimulationResult> ResultsByTypeByUnit(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnits unitType) { results = results.ResultsByType(simulationType); return(results.ResultsByUnit(unitType)); }