About Bathtub_Test
The Famous Bathtub_Test for Android Developers
****Input
===========
It is known that bath has a capacity of 150 litres to just below the overflow. This capacity allows a person to get in to the bath without water going down the overflow.
The cold water tap has a flow of 12 Litres per minute. at 10 degrees Celsius.
The hot water tap has a flow of 10 Litres per minute.
The temperature of the water is taken from the boiler web server which returns RESTful JSON. The test JSON is attached and should be run from a test web server http://localhost/bath.json.
Assumptions & Constraints
When either tap is on it is at full rate and constant temperature (There is no warm up time or reduced flow).
****Output
============
At any point in time the system should be able to show the capacity and temperature of the bath.
Assumptions & Constraints
The bath and your home are super-efficient and there is no cooling of the bath over time.
****Expected interface
============
It should be possible to turn on each tap individually via your touch screen. The interface should show the state of the bath at any time.
Bath.json:
{
"hot_water": 50,
"cold_water": 10
}
Download and install
Bathtub_Test version 1.0 on your
Android device!
Downloaded 50+ times, content rating: Not rated
Android package:
com.sevakkalpesh.bathtub, download Bathtub_Test.apk