Esempio n. 1
0
        /***************************************************/
        /**** 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,
     });
 }
Esempio n. 3
0
        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));
 }
Esempio n. 5
0
 public static List <SimulationResult> ResultsByType(this List <SimulationResult> results, SimulationResultType type)
 {
     return(results.Where(x => x.SimulationResultType == type).ToList());
 }
Esempio n. 6
0
 public static List <SimulationResult> FilterResultsByTypeUnit(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnit unit)
 {
     results = results.FilterResultsByType(simulationType);
     return(results.FilterResultsByUnit(unit));
 }
Esempio n. 7
0
 public static SimulationResult SimulationResult(SimulationResultType type, ProfileResult result)
 {
     return(SimulationResult(type, new List <ProfileResult> {
         result
     }));
 }
Esempio n. 8
0
 public static List <SimulationResult> ResultsByTypeByUnit(this List <SimulationResult> results, SimulationResultType simulationType, ProfileResultUnits unitType)
 {
     results = results.ResultsByType(simulationType);
     return(results.ResultsByUnit(unitType));
 }