update AbstractParametricBuilding class and related functions