Health and Fitness Application
-
Upload
mike-silvis -
Category
Documents
-
view
218 -
download
0
Transcript of Health and Fitness Application
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 1/11
Team7IST311FinalReport HealthandFitnessTrackingDevice
FranCasale,TylerGidaro,JoeSanford,MikeSilvis,andElliotSwan
5/2/2011
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 2/11
Team7 P a g e |1
TableofContents
ClassDiagram 2
ActivityDiagram 5
SequenceDiagram 6
StateDiagram 7MinimalManual 8
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 3/11
Team7 P a g e |2
Figure1:ClassDiagram
Theclassdiagramdisplaysthemanyclasses,attributes,andmethodsusedinthecreationofthehealth
andfitnesstrackingdevice.Italsodisplaystheassociationsoftheseclasses.Thediagrambeginsonthe
leftinthecontrollersectioninthecenterwithBlackout.Theclasseshavebeenlaidoutintosectionsof
model,view,andcontroller.Theviewsectioncontainsalloftheuserinterfaceclassesintheproject,the
controllersectioncontainsallofthecontrollerclasses,andthemodelsectioncontainsallofthemodel
classessuchasfoodanduserlist.
• LoginUIshowstheuserinterfaceforloggingintothesystem.
• MainMenuUIshowstheuserinterfaceforselectionanoptioncorrespondingtooneofthe
relatedusecases.
• FoodInputUIshowstheuserinterfaceforinputtingafoodintothefoodlist.
• MealPlanUIshowstheuserinterfaceforcreatinganewmealplan.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 4/11
Team7 P a g e |3
• FitnessPlanUIshowstheuserinterfaceforcreatinganewfitnessplan.
• ExerciseUIshowstheuserinterfaceforcreatinganewexercise.
• AnalysisReportUIshowstheuserinterfaceforviewingananalysisreport.
• SuggestWorkoutUIshowstheuserinterfaceforsuggestedworkouts.
• SuggestMealUIshowstheuserinterfaceforsuggestedmeals.
• ProfileUIshowstheuserinterfaceforauser’sprofile.
• EditProfileUIshowstheuserinterfaceforeditingauser’sprofile.
• CreateExerciseUIshowstheuserinterfaceforcreatinganewexercise.
• CreateFoodUIshowstheuserinterfaceforcreatinganewfood.
• Blackoutistheclassthatcallsmainandstartstheprogram.
• LoginCntlcontrolstheloginandensuresitauthenticatesaswellasgettingtheUserList.
• MainMenuCntlcontrolsthemainmenuandensurestheuserreacheshisorherdestination
afterselectingamenuoption.Italsogetstheuser’sinformation.
• FoodInputCntlcontrolswhathappenswhentheuserisaddingfoodstothefoodlistthroughthe
FoodInputUI.AlsogetstheFoodList.
• MealPlanCntlcontrolswhathappenswhentheuserismanaginghisorhermealplansthrough
theMealPlanUI.AlsogetstheMealPlanandcurrentusercaloriecount.
• FitnessPlanCntlcontrolswhathappenswhentheuserismanaginghisorherfitnessplans
throughtheFitnessPlanUI.Alsogetsthefitnessplansoftheuserandthefitnessdates.
• AnalysisReportCntlcontrolswhathappenswhentheuserismanipulatingtheAnalysisReportUI
toviewhisorheranalysisreports.Alsogetsthecompletedweeks’dataofthereport.
• SuggestWorkoutCntlcontrolswhathappenswhentheuserselectstoseeasuggestedworkout,
italsogetstheuser’scaloriecountandasuggestedworkout.
• SuggestMealCntlcontrolswhathappenswhentheuserselectstoseeasuggestedmeal,italso
getstheuser’scaloriecountandasuggestedmeal.
• ProfileCntlcontrolswhathappenswhentheuserselectstheirprofile.Italsoallowsthemtoedit
theirprofile.
• Userreturnsthename,weight,age,andgenderoftheusercurrentlyloggedin.
• UserListreturnsanarrayofuserNames,names,dateRegistered,andpasswords.
• FoodListreturnsanarrayoffoodsandfoodnames.
• FoodreturnsfoodName,foodCalories,andfoodNutritionalInfo.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 5/11
Team7 P a g e |4
• MealPlanreturnsmealPlanName,andanarrayofmealPlanMeals.
• MealPlanListreturnsanarrayofMealPlans.
• FitnessPlanreturnsfitnessName,andfitnessDateitalsogetsanarrayofMealPlansand
WorkoutPlansforaselectedtimeperiodandreturnsageneratedReport.
• AnalysisReportreturnsreportDate,anarrayofreportWorkouts,anarrayofreportMeals,
reportCurrentWeight,andreportIntake.
• Exercisereturnsinstructions,name,andtype.
• ExerciseListreturnsanarrayofexercises.
• FitnessPlanExercisereturnscalories,name,andstatusofafitnessplan.
• BlackOutPersistentObjectreturnsuserList,foodList,andworkoutListandgetsthesefrom
PersistenceFactory.
• PersistenceFactoryreturnsapersistentObjectitalsoreads,writesto,andcreatesafilecalled
BlackoutPersistentObject.serwhichstoresthepersistentdatasuchasuserList,foodList,and
workoutList.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 6/11
Team7 P a g e |5
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 7/11
Team7 P a g e |6
Figure2:ActivityDiagram
Theactivitydiagramdisplayswhathappensinourhealthandfitnesstrackingdevicefromwhentheuser
openstheproject.Itdisplaysthestepsofloggingintothesystem,whathappenswhenthemainmenu
isselected,andthenwhathappenswhenoneoftheoptionsavailableonthemainmenuisselected.
Theactionsaredisplayedinmodel,view,controller,andusercategorieswhichrepresenttheareaofthe
classdiagramtheclassthatperformsthisactionwouldbelocated.Theusercategoryreferstoactions
performedbyauser.
Figure3:SequenceDiagram
Thesequencediagramabovedescribesthetransmissionofmessagesbetweenvariousclasseswhenthe
userwishestocreateaworkout.Thediagramassumestheapplicationisopen,theuserhasloggedin,
andtheuserwantstocreateonlyoneworkoutandaddonlyoneexercisetothatworkout.Thediagram
showsthevariousclasses,usedandtheirlifelinesduringthetimetheactivityistakingplace.These
lifelinesdescribewhentheclassorobjectisactive.Alsodisplayed,arethemethodcallsthattheclasses
perform.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 8/11
Team7 P a g e |7
Figure4:StateDiagram
Thestatediagrampicturedinfigure4displaysthestatesofthefoodinputuserinterface.Itcontainsthe
differentstatesthatarisewhileaddinganewfoodtothefoodlistandincludesinformationaboutthe
transitionsbetweenthosestates,suchasguardconditions,eventsposted,andactionstakenduring
thesetransitions.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 9/11
Team7 P a g e |8
MinimalManual
TheBlackoutApplication
Thisapplicationisfortheuseoftrackingfitnessandnutritionalgoals.Uponopeningtheapplicationyou
arepromptedataloginscreeninwhichyouarerequiredtoenteryourusernameandpassword.The
reasonbehindthisisbecauseeveryone’sgoalsandnutritiontrackingisspecifictotheindividualperson.
Onceyouenteryourlogininformationyouwillbepresentedtothemainscreenshowonbelow.
Nutrition
Uponseeingthemainscreenandbeingloggedintotheapplicationitisnowtimetoinputwhatyouate
today.Thisallowstheapplicationtoseehowmanycaloriesyoudigestedandgiveyourecommendations
inareasofimprovement.Uponselecting“TrackNutrition”fromthemainmenuyouwillnowseethe
following.
Fromherepleaseselectthe“+”buttoninordertoaddyourfirstfood.Youwillbepromptedwithalist
offoodswhereyouaretoselectwhatyouactuallyate.UponselectingFrenchFriespushthe“Select”buttontoaddittoyourplannedfoodactivitylog.FromthisyouwillnowseeanupdatedMealPlanfor
thespecificdayyouaddedthefoodtoo.Afterthisiscompletedtheapplicationnowwillhaverecords
thatyouateFrenchFriesonthespecificdateyouaddeditandwillfactorthatintoyouroverallallotted
calorieseachday.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 10/11
Team7 P a g e |9
Exercise
Fromthemainscreenselectthe“TrackFitness”buttonandbegininputtinginformationaboutwhat
sports,oractivitiesyoudidtoday.Thispartoftheapplicationissimilartotheaspectofadding
nutritionalitemstoyourdaywiththeonebigdifferencebeinguponselectinganactivityitwillnow
subtractfromhowmanycaloriesyouconsumedtodaybecauseyouactuallyburnedthosecalories.
Selectthe“+”buttonfromthebottomrighthandsideandpickanactivityyoudid.Selecttheactivity
andyouwillbepromptedtoenterhowlongyoudidtheactivityfor.
Thisisinincrementsofhours.Soifyouspentanhourandahalfyouwouldenter1.5toconvert
everythingintodecimalnumbers.Uponaddingtheexercisetoyourprofileitwillnowcalculatehow
manyhoursyouburnedinthatintervalforlateruse.
Analysis
Thelastkeyaspectoftheapplicationthatyoushouldbewellawareofisthetrackingofyouroverall
inputandoutputofcalories.Thisanalyzesbothwhatyouate,andwhatactivitiesyoudid.Select“View
YourProgress”fromthemainscreen.
8/4/2019 Health and Fitness Application
http://slidepdf.com/reader/full/health-and-fitness-application 11/11
Team7 P a g e |10
Thiswillnowshowallofthecaloriesyouconsumedandallofthecaloriesyouburned.Intakerepresentsthetotalnumberofcaloriesyouconsumedforthatparticulardayonthetop,orthatweekonthe
bottom.Outarehowmanycaloriesyouburnedthroughvariousactivities.Itaddsupallofthesports,
andactivitiesyoucompletedinthegiventimeframeandcalculateshowmanyyouburned.Theaverage
personistoconsume2,000calorieseverydaysotoseewhereyouareatsimplytakeyourintakeand
subtractfromyouroutandensureyouareneverabove2,000caloriesforoneday.