public Building(Floor floor, Walls walls, Roof roof, int minOuterTemp, int innerTemp) { Floor = floor; Walls = walls; Roof = roof; MinOuterTemperature = minOuterTemp; InnerTemperature = innerTemp; }
public double Calculate() { Floor floor = new Floor(Width, Length, CreateSandwichConstructionForFloor(Surface, MaterialNames, MaterialThickness)); Walls walls = new Walls(Length, Height, CreateSandwichConstructionForWall(Surface, MaterialNames, MaterialThickness)); Roof roof = new Roof(Length, Width, CreateSandwichConstructionForRoof(Surface, MaterialNames, MaterialThickness)); Building building = new Building(floor, walls, roof, MinOuterTemperature, InnerTemperature); Calculator calculator = new Calculator(); return(calculator.CalculateLosses(building)); }