Status process¶
http://dietadiary.com/how-many-calories
http://www.brianmac.co.uk/food.htm
http://www.takzdorovo.ru/db/nutritives/index/#
http://www.missfit.ru/diet/table-calory/
http://hudeemtut.ru/htmldocs/tables/energozatraty.shtml
http://www.ediet.ru/s.php/2292.htm
http://www.delavie.ru/diet1000.htm
http://www.tatosha.ru/index.php?topic=486.0
http://dietolog.com.ua/class.php
Diet Control¶
Nutrition in Journal.xml
<food time="" date="">
<protein></protein>
<fat></fat>
<carbohydrate></carbohydrate>
<energy></energy>
</food>
Spent calories < Consumed calories => Fat
Spent calories = Consumed calories => Normal
Spent calories > Consumed calories => Slimming
1 gr of the fat = 8 kcal
1 gr of the carbohydrates = 4 kcal
1 gr of the protein = 4 kcal
True nutrition:
Fat = 25% of the all energy
Protein = 25% of the all energy
Carbohydrate = 50% of the all energy
Breakfast - 25-30%;
Lunch - 10-15%;
Dinner - 40-45%;
Evening - 25-10%
Tracker color¶
Fat or proteinRed
- fat>=50% of the all
- fat<=10% of the all
- fat> goal && fat>recommended
- 35%<fat<50%
- 10%<fat<20%
- fat>goal && fat<recommended
- fat<goal && fat>recommended
- 20%<fat<50%
- fat<=goal && fat<=recommended
Red
- car>=80% of the all
- car<=30% of the all
- car> goal && car>recommended
- 60%<=car<80%
- 30%<car<=40%
- fat>goal && fat<recommended
- fat<goal && fat>recommended
- 40%<car<60%
- car<=goal && fat<=car
Energy
In current version tracker color always will be cyan. Later may be the tracker color will changed according to dietary habits.
Activity
cyan - metabolism
green - activity
U (usual) = metabolism * koef activity = bd.getNeedEnergyR()
G (goal) = all recommended = fitnessPlan (in BasePersonal.xml)
Activity control¶
Current status
Method getSpendCalorie(double time) in Bridget - allow to calculate spending calorie in quiescent state, time - number of the minutes in quiescent state. (time = time in Journal - current time)
Method setFitnessCosts()in StatusWindow - to calculate all spend calorie using Journal.xml and getSpendCalorie(double time).
<act date="">
<time></time>
<name></name>
<energy></energy>
</act>
Calculation fitness costs:
- calculate energy using Journal
- calculate activity time in Journal
- (current time - time in Journal)*metabolism speed + energy in Journal
Problem: user may to enter time of the action more then current time
Indicators update¶
Indicators is updated:
-every minutes: if activity status isn't set then updated activity indicator (+ metabolism energy in minute) else updated activity indicator (+ activity energy - metabolism energy)
-if user change personal data
-if user add product or action in journal
-if user change goal