@@ -838,4 +838,60 @@ def get_temperature_value(self, temperature_type: str):
838
838
if hasattr (obj , temperature_type ):
839
839
return getattr (obj , temperature_type )
840
840
841
- raise ValueError (f"Temperature type '{ temperature_type } ' not found in any temperature properties." )
841
+ raise ValueError (f"Temperature type '{ temperature_type } ' not found in any temperature properties." )
842
+
843
+ def get_moisture_value (self , moisture_type : str ):
844
+ """
845
+ Get the moisture values for a specific moisture measurement type.
846
+ """
847
+ load_objects = [
848
+ self .moisture
849
+ ]
850
+
851
+ for obj in load_objects :
852
+ if hasattr (obj , moisture_type ):
853
+ return getattr (obj , moisture_type )
854
+
855
+ raise ValueError (f"Moisture type '{ moisture_type } ' not found in any moisture properties." )
856
+
857
+ def get_ventilation_mass_flow_value (self , ventilation_type : str ):
858
+ """
859
+ Get the ventilation mass flow value for a specific ventilation type.
860
+ """
861
+ load_objects = [
862
+ self .ventilation_mass_flows
863
+ ]
864
+
865
+ for obj in load_objects :
866
+ if hasattr (obj , ventilation_type ):
867
+ return getattr (obj , ventilation_type )
868
+
869
+ raise ValueError (f"Moisture type '{ ventilation_type } ' not found in any ventilation properties." )
870
+
871
+ def get_occupancy_value (self , occupancy_var : str ):
872
+ """
873
+ Get the value for a specific occupancy-related variable.
874
+ """
875
+ load_objects = [
876
+ self .occupancy
877
+ ]
878
+
879
+ for obj in load_objects :
880
+ if hasattr (obj , occupancy_var ):
881
+ return getattr (obj , occupancy_var )
882
+
883
+ raise ValueError (f"Moisture type '{ occupancy_var } ' not found in any occupancy-related properties." )
884
+
885
+ def get_solar_value (self , solar_irradiation_type : str ):
886
+ """
887
+ Get the solar irradiation value for a specific solar irradiation type.
888
+ """
889
+ load_objects = [
890
+ self .solar
891
+ ]
892
+
893
+ for obj in load_objects :
894
+ if hasattr (obj , solar_irradiation_type ):
895
+ return getattr (obj , solar_irradiation_type )
896
+
897
+ raise ValueError (f"Moisture type '{ solar_irradiation_type } ' not found in any occupancy-related properties." )
0 commit comments