epb_view_models 2.2.14 → 2.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/api/schemas/data/orchestrate.json +8 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -0
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/ExternalDefinitions.xml +1832 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/ExternalDefinitions.xsd +267 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/AssessorManagement.xsd +212 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/EPC-Certificate.xsd +399 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/EPC-CollectedData.xsd +1453 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/Property.xsd +67 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.xsd +179 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/UDT/EPC-Domains.xsd +940 -0
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/UDT/SAP-Domains.xsd +3557 -0
- data/lib/epb_view_models.rb +1 -1
- data/lib/view_model/factory.rb +2 -0
- data/lib/view_model/rd_sap_schema_s_180/common_schema.rb +541 -0
- data/lib/view_model/rd_sap_schema_s_190/common_schema.rb +44 -44
- data/lib/view_model/rd_sap_schema_s_210/common_schema.rb +670 -0
- data/lib/view_model/rd_sap_wrapper.rb +4 -0
- data/lib/view_model/sap_schema_s_1900/common_schema.rb +6 -10
- metadata +24 -1
|
@@ -543,7 +543,7 @@ module ViewModel
|
|
|
543
543
|
@xml_doc
|
|
544
544
|
.search("SAP-Building-Part")
|
|
545
545
|
.map do |node|
|
|
546
|
-
|
|
546
|
+
xpath(%w[Party-Wall-Construction], node)
|
|
547
547
|
end
|
|
548
548
|
end
|
|
549
549
|
|
|
@@ -551,16 +551,16 @@ module ViewModel
|
|
|
551
551
|
@xml_doc
|
|
552
552
|
.search("SAP-Building-Part")
|
|
553
553
|
.map do |node|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
554
|
+
{
|
|
555
|
+
alternative_wall_thickness: node.at_xpath("SAP-Alternative-Wall/Wall-Thickness")&.content,
|
|
556
|
+
alternative_wall_thickness_measured: node.at_xpath("SAP-Alternative-Wall/Wall-Thickness-Measured")&.content,
|
|
557
|
+
alternative_wall_construction: node.at_xpath("SAP-Alternative-Wall/Wall-Construction")&.content,
|
|
558
|
+
alternative_wall_u_value: node.at_xpath("SAP-Alternative-Wall/Wall-U-Value")&.content,
|
|
559
|
+
alternative_wall_insulation_thickness: node.at_xpath("SAP-Alternative-Wall/Wall-Insulation-Thickness")&.content,
|
|
560
|
+
wall_thickness: node.at_xpath("Wall-Thickness")&.content,
|
|
561
|
+
wall_construction: node.at_xpath("Wall-Construction")&.content,
|
|
562
|
+
wall_thickness_measured: node.at_xpath("Wall-Thickness-Measured")&.content,
|
|
563
|
+
}
|
|
564
564
|
end
|
|
565
565
|
end
|
|
566
566
|
|
|
@@ -568,18 +568,18 @@ module ViewModel
|
|
|
568
568
|
@xml_doc
|
|
569
569
|
.search("SAP-Building-Part")
|
|
570
570
|
.map do |node|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
571
|
+
{
|
|
572
|
+
roof_insulation_location: node.at_xpath("Roof-Insulation-Location")&.content,
|
|
573
|
+
roof_construction: node.at_xpath("Roof-Construction")&.content,
|
|
574
|
+
}
|
|
575
575
|
end
|
|
576
576
|
end
|
|
577
577
|
|
|
578
578
|
def rooms_in_roof_insulation
|
|
579
579
|
@xml_doc
|
|
580
580
|
.search("SAP-Building-Part")
|
|
581
|
-
.map do |
|
|
582
|
-
|
|
581
|
+
.map do |_node|
|
|
582
|
+
xpath(%w[SAP-Room-In-Roof Insulation])
|
|
583
583
|
end
|
|
584
584
|
end
|
|
585
585
|
|
|
@@ -587,10 +587,10 @@ module ViewModel
|
|
|
587
587
|
@xml_doc
|
|
588
588
|
.search("SAP-Building-Part")
|
|
589
589
|
.map do |node|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
590
|
+
{
|
|
591
|
+
floor_u_value: node.at_xpath("Floor-U-Value")&.content,
|
|
592
|
+
floor_insulation_thickness: node.at_xpath("Floor-Insulation-Thickness")&.content,
|
|
593
|
+
}
|
|
594
594
|
end
|
|
595
595
|
end
|
|
596
596
|
|
|
@@ -598,13 +598,13 @@ module ViewModel
|
|
|
598
598
|
@xml_doc
|
|
599
599
|
.search("SAP-Building-Part")
|
|
600
600
|
.map do |node|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
601
|
+
{
|
|
602
|
+
roof_u_value: node.at_xpath("Roof-U-Value")&.content,
|
|
603
|
+
roof_insulation_thickness: node.at_xpath("Roof-Insulation-Thickness")&.content,
|
|
604
|
+
rafter_insulation_thickness: node.at_xpath("Rafter-Insulation-Thickness")&.content,
|
|
605
|
+
flat_roof_insulation_thickness: node.at_xpath("Flat-Roof-Insulation-Thickness")&.content,
|
|
606
|
+
sloping_ceiling_insulation_thickness: node.at_xpath("Sloping-Ceiling-Insulation-Thickness")&.content,
|
|
607
|
+
}
|
|
608
608
|
end
|
|
609
609
|
end
|
|
610
610
|
|
|
@@ -612,10 +612,10 @@ module ViewModel
|
|
|
612
612
|
@xml_doc
|
|
613
613
|
.search("SAP-Building-Part")
|
|
614
614
|
.map do |node|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
{
|
|
616
|
+
wall_u_value: node.at_xpath("Wall-U-Value")&.content,
|
|
617
|
+
wall_insulation_thickness: node.at_xpath("Wall-Insulation-Thickness")&.content,
|
|
618
|
+
}
|
|
619
619
|
end
|
|
620
620
|
end
|
|
621
621
|
|
|
@@ -623,30 +623,30 @@ module ViewModel
|
|
|
623
623
|
@xml_doc
|
|
624
624
|
.search("SAP-Building-Part")
|
|
625
625
|
.map do |node|
|
|
626
|
-
|
|
626
|
+
node.at_xpath("SAP-Room-In-Roof")&.content.to_s
|
|
627
627
|
end
|
|
628
628
|
end
|
|
629
629
|
|
|
630
630
|
def rooms_in_roof_roof_insulation
|
|
631
631
|
@xml_doc
|
|
632
632
|
.search("SAP-Building-Part")
|
|
633
|
-
.map do |
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
633
|
+
.map do |_node|
|
|
634
|
+
{
|
|
635
|
+
roof_insulation_thickness: xpath(%w[SAP-Room-In-Roof Roof-Insulation-Thickness]),
|
|
636
|
+
room_in_roof_details: xpath(%w[SAP-Room-In-Roof Room-In-Roof-Details]),
|
|
637
|
+
}
|
|
638
638
|
end
|
|
639
639
|
end
|
|
640
640
|
|
|
641
641
|
def main_heating_details
|
|
642
642
|
@xml_doc
|
|
643
643
|
.search("Main-Heating")
|
|
644
|
-
.map do |
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
644
|
+
.map do |_node|
|
|
645
|
+
{
|
|
646
|
+
main_heating_index_number: xpath(%w[Main-Heating-Index-Number]),
|
|
647
|
+
sap_main_heating_code: xpath(%w[SAP-Main-Heating-Code]),
|
|
648
|
+
main_fuel_type: xpath(%w[Main-Fuel-Type]),
|
|
649
|
+
}
|
|
650
650
|
end
|
|
651
651
|
end
|
|
652
652
|
|