|
|
## Syntax of the Web Service
|
|
|
|
|
|
Buildings physics properties are available thru a web service at:
|
|
|
|
|
|
'''http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/{countryID}/{SubClass}/{SubClassID}'''
|
... | ... | @@ -67,6 +69,8 @@ Responses are provided in JSON representation for |
|
|
disposalDescription float
|
|
|
```
|
|
|
|
|
|
## WADL representation
|
|
|
|
|
|
```
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
<application xmlns="http://wadl.dev.java.net/2009/02">
|
... | ... | @@ -144,3 +148,78 @@ Responses are provided in JSON representation for |
|
|
</resources>
|
|
|
</application>
|
|
|
```
|
|
|
## Samples
|
|
|
|
|
|
1. Calling the Web Service
|
|
|
|
|
|
[http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics](http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics)
|
|
|
|
|
|
Response in JSON:
|
|
|
```
|
|
|
0:
|
|
|
name: "germany"
|
|
|
href: "[http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany](http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany)"
|
|
|
1:
|
|
|
name: "united-states-of-america"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/united-states-of-america"
|
|
|
```
|
|
|
|
|
|
2. Get a list of available window types for Germany
|
|
|
|
|
|
[http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window](http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window)
|
|
|
|
|
|
Response in JSON:
|
|
|
```
|
|
|
0:
|
|
|
id: "0"
|
|
|
name: "Double-glazed window with old wooden/aluminum frame"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/0"
|
|
|
1:
|
|
|
id: "1"
|
|
|
name: "Double-glazed window with plastic frame"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/1"
|
|
|
2:
|
|
|
id: "2"
|
|
|
name: "Low-E double-glazed window"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/2"
|
|
|
3:
|
|
|
id: "3"
|
|
|
name: "Low-E double-glazed window EnEV2016"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/3"
|
|
|
4:
|
|
|
id: "4"
|
|
|
name: "Low-E triple-glazed window"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/4"
|
|
|
5:
|
|
|
id: "5"
|
|
|
name: "Low-E triple-glazed window KfW 40"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/5"
|
|
|
6:
|
|
|
id: "6"
|
|
|
name: "Low-E triple-glazed window KfW 55"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/6"
|
|
|
7:
|
|
|
id: "7"
|
|
|
name: "Single-glazed window"
|
|
|
href: "http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/7"
|
|
|
```
|
|
|
|
|
|
3. Get the properties for a single glazed window in Germany
|
|
|
|
|
|
[http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/7](http://dmz02.rz.hft-stuttgart.de:8080/simstadtlibrary/buildingphysics/germany/window/7)
|
|
|
|
|
|
Response in JSON:
|
|
|
```
|
|
|
id: "7"
|
|
|
name: "Single-glazed window"
|
|
|
uValue: 5
|
|
|
gValue: 0.86
|
|
|
glazingNumber: 1
|
|
|
frameRatio: 0.3
|
|
|
embodiedEnergy: null
|
|
|
embodiedCarbon: null
|
|
|
constructionDescription: null
|
|
|
disposalEnergy: null
|
|
|
disposalCarbon: null
|
|
|
disposalDescription: null
|
|
|
``` |