Source code for honeybee_energy_ph.properties.hot_water.hw_program

# -*- coding: utf-8 -*-
# -*- Python Version: 2.7 -*-

"""Honeybee-Energy-PH Properties Extension for ServiceHotWater (Program) objects."""

try:
    pass
except:
    pass  # IronPython

try:
    from honeybee_energy.properties.extension import ServiceHotWaterProperties
except ImportError as e:
    raise ImportError("Failed to import honeybee_energy.", e)


[docs] class ServiceHotWaterPhProperties(object): """Honeybee-PH Properties for logging PH-style data.""" def __init__(self, _host): # type: (Optional[ServiceHotWaterProperties]) -> None self._host = _host self.id_num = 0 @property def host(self): # type: () -> Optional[ServiceHotWaterProperties] return self._host
[docs] def to_dict(self, abridged=False, include=None): # type: (bool, Optional[list]) -> dict[str, Any] return {}
[docs] @classmethod def from_dict(cls, _input_dict, _host): # type: (dict, Optional[ServiceHotWaterProperties]) -> ServiceHotWaterPhProperties new_prop = cls(_host) return new_prop
[docs] def apply_properties_from_dict(self, abridged_data): # type: (Any) -> None return
def __str__(self): return "{}()".format(self.__class__.__name__) def __repr__(self): """Properties representation.""" return "{}".format(self.__class__.__name__)
[docs] def ToString(self): """Overwrite .NET ToString.""" return self.__repr__()