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://calorie.bestfitnes.ru/

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 protein
Red
  1. fat>=50% of the all
  2. fat<=10% of the all
  3. fat> goal && fat>recommended
Yellow
  1. 35%<fat<50%
  2. 10%<fat<20%
  3. fat>goal && fat<recommended
  4. fat<goal && fat>recommended
Green
  1. 20%<fat<50%
  2. fat<=goal && fat<=recommended
Carbohydrates
Red
  1. car>=80% of the all
  2. car<=30% of the all
  3. car> goal && car>recommended
Yellow
  1. 60%<=car<80%
  2. 30%<car<=40%
  3. fat>goal && fat<recommended
  4. fat<goal && fat>recommended
Green
  1. 40%<car<60%
  2. 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).

Activity in Journal.xml:

<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