XHCC For flexible control of complex heating systems or combined heating and cooling systems