User Guide - Diet Manager

Content

  1. Introduction
  2. Quick Start
  3. Features
    1. Profile Features
      1. Set user profile
      2. View user profile
      3. Set user name
      4. Set user age
      5. Set user gender
      6. Set user height
      7. Set user weight-goal
      8. Set user weight
      9. Delete user weight record
      10. Check user weight progress
      11. Check user BMI
    2. Daily Food Record Features
      1. Record meals
      2. Check meals
      3. Clear food records
      4. Check required calories
      5. Calculate calories
    3. Food Nutrition Record Features
      1. List food database
      2. Add food into database
      3. Delete food from database
    4. Recipe Features
      1. Get a recommended recipe
      2. View recipe
    5. Utility Features
      1. Help
      2. Exit application
  4. FAQ
  5. Command Summary

1 Introduction

Diet Manager is an personal text-based chat-bot application used for managing an individual’s diet.

Diet Manager is capable of the following functions:

2 Quick Start

Note that most command features are locked until a valid profile has been created. Only the set-profile, help and exit commands are usable upon first start-up

    Please create a profile before using this command. Enter:
    set-profile {name} {age} {gender} {height} {weight} {weight goal}

3 Features

Note that:

3.1 Profile Features

Set user profile

Creates a new profile

Format: set-profile NAME AGE GENDER HEIGHT WEIGHT WEIGHTGOAL

Example of usage:

set-profile John 20 male 180 80 75

View user profile

View user profile details

Format: profile

Example of usage:

profile

Set user name

Update name in profile.

Format: set-name NAME

Example of usage:

set-name Jane

Set user age

Update age in profile.

Format: set-age AGE

Example of usage:

set-age 18

Set user gender

Update gender in profile.

Format: set-gender GENDER

Example of usage:

set-gender female

Set user height

Update height in profile.

Format: set-height HEIGHT

Example of usage:

set-height 170

Set user weight-goal

Update weight-goal in profile.

Format: set-weight-goal WEIGHT-GOAL

Example of usage:

set-weight-goal 65

Set user weight

Update weight in profile when there are changes to user’s weight.
Application will keep track and store records of user’s weight over time.

Format: set-weight WEIGHT

Example of usage:

set-weight 70

Delete user weight record

Delete a specific weight record.

Format: delete-weight INDEX

Example of usage:

delete-weight 1

Check user weight progress

Check user weight record progression.

Format: check-weight-progress

Example of usage:

check-weight-progress

Check user BMI

Check user BMI and BMI classification.

Format: check-bmi

Example of usage:

check-bmi

3.2 Daily Food Record Features

Record meals

Records meals for the user(so they can refer record history and calculate calories intake later).

Format: record-meal DATE TIMEPERIOD /FOOD1 {-- 10.0} /FOOD2 {-- 6.00} /...

Attention:

Example of usage:

record-meal Saturday morning /egg prata -- 5 /noodles -- xxx

Check meals

Check what the profile had eaten for a meal.

Format: check-meal DATE TIMEPERIOD

Attention:

Example of usage:

check-meal Monday morning

Expected Output:

Format: clear-records

Example of usage:

clear-records

Check required calories

Check the required calories for the current profile based on the activity level for the day.

Format: check-required-cal DATE ACTIVITYLEVEL

Attention:

`DATE` is restricted to the range of `Monday` to `Sunday`.
`ACTIVITYLEVEL` is restricted to `low`, `moderate` or `high`.

Example of usage:

check-required-cal Monday low

Calculate calories

Calculates calories intake on a day or during a time period.

Format:

Attention:

`DATE` is restricted to the range of `Monday` to `Sunday`.

Example of usage:

3.3 Food Nutrition Record Features

List food database

Lists all foods and relevant calories info recorded in our database.

Format: list-food

Example of usage: list-food

Add food into database

Adds a new food into database.

Format: addf FOODNAME --CALORIES

Example of usage: addf beef noodles -- 7.0

Attention: If calories info is incorrect, you expect to see:

Sorry, to add new food to database you must input correct calories info.
It has to be positive Integer or Float

Delete food from database

Deletes a food from the database

Format: delf FOODNAME

Example of usage:

3.4 Recipe Features

Get a recommend recipe based on user’s physical conditions and activity level.

Format: new-recipe MAXIMUM_FODD_TYPES ACTIVITY_LEVEL

Explanation:

MAXIMUM_FOOD_TYPES is the maximum number of food types the user want to have in a meal. 
ACTIVITY_LEVEL has three levels : low/moderate/high. Based on different activity levels the app recommends different recipes.

Attention:

1.  The maximum number of allowed food types in a meal is 3.
2.  The recipe is generated randomly, so the same input is expected to get different recipe.
3.  If user is unsatisfied with the current recipe, just run the command again and get a new one.

Example of usage:

View recipe

Show the recipe recommended for the user.

Format: show-recipe

Example of usage:show-recipe

3.5 Utility Features

Help

Show the help function table with supported commands.

Format: help

Example of usage:

help

Exit application

Terminates and exits the application.

Format: exit

Example of usage:

exit

4 FAQ

Q: What do I do if the application cannot be launched?

A: Ensure that you have Java 11 and above installed on your device, and that you have the most updated version of the application.

Q: How do I transfer my data to another device?

A: All recorded user-related data will be stored in a folder when running the application. Simply copying and moving that specific folder would be sufficient.

Q: What if I want to use this application for multiple users on the same device?

A: The application is localised and user data is dependent on the specific data files present. Simply switch the data files to that of another user, or have multiple folders present for multiple users.

Q: Can I directly change the data in the data files?

A: You can, but it is strongly discouraged as it could lead to the data file being corrupt and the application being forced to delete the data file and create a new one.

5 Command Summary

No. Profile Commands Description
1 set-profile NAME AGE GENDER HEIGHT WEIGHT WEIGHTGOAL Creates a new profile
2 profile View user profile details
3 set-name NAME Update name in profile.
4 set-age AGE Update age in profile.
5 set-age GENDER Update gender in profile.
6 set-height HEIGHT Update height in profile.
7 set-weight-goal WEIGHT-GOAL Update weight-goal in profile.
8 set-weight WEIGHT Update weight in profile.
9 delete-weight INDEX Delete a specific weight record.
10 check-weight-progress Check user weight record progression.
11 check-bmi Check user BMI and BMI classification.
12 record-meal DATE TIMEPERIOD /FOOD1 {-- 10.0} /FOOD2 {-- 6.00} /... Record a meal
13 check-meal DATE TIMEPERIOD Check a meal
14 clear-records Clear all food records
15 check-required-cal DATE ACTIVITYLEVEL Check calories required based on user’s activity level
16 calculate {DATE1}->{DATE2} Calculates calories intake on a day or during a time period
17 list-food List all foods recorded in the database
18 addf FOODNAME --CALORIES Add a new food into database
19 delf FOODNAME Delete a food from the database
20 new-recipe MAXIMUM_FODD_TYPES ACTIVITY_LEVEL Create a recommended recipe for user
21 show-recipe Show the recipe recommended for user
22 help Show the help function table with supported commands.
23 exit Terminates and exits the application.

Click here to go back to the main page.