Uses of Class
no.ntnu.idatt1002.demo.data.budget.GeneralBudget
Packages that use GeneralBudget
Package
Description
-
Uses of GeneralBudget in no.ntnu.idatt1002.demo.controller
Methods in no.ntnu.idatt1002.demo.controller that return GeneralBudgetModifier and TypeMethodDescriptionFinanceController.loadBudgetDataFromFile
(String fileDestination) Method that either reads data from a file with which it fills a budget register, if this is an old budget, or instantiates a budget register if this is a new budget.MainMenuController.loadBudgetDataFromFile
(String fileDestination) Method that either reads data from a file with which it fills a budget register, if this is an old budget, or instantiates a budget register if this is a new budget. -
Uses of GeneralBudget in no.ntnu.idatt1002.demo.data.budget
Methods in no.ntnu.idatt1002.demo.data.budget that return GeneralBudgetModifier and TypeMethodDescriptionstatic GeneralBudget
FileHandlingBudget.readGeneralBudgetFromFile
(String fileDestination) Method for reading (getting) a Budget from a file.Methods in no.ntnu.idatt1002.demo.data.budget with parameters of type GeneralBudgetModifier and TypeMethodDescriptionstatic void
FileHandlingBudget.writeGeneralBudgetToFile
(String fileDestination, GeneralBudget generalBudget) Method for writing (adding) a budget to a file. -
Uses of GeneralBudget in no.ntnu.idatt1002.demo.data.economics
Methods in no.ntnu.idatt1002.demo.data.economics that return GeneralBudgetConstructors in no.ntnu.idatt1002.demo.data.economics with parameters of type GeneralBudgetModifierConstructorDescriptionOverview
(GeneralBudget budget) Class constructor that take in a GeneralBudget and creates an empty incomeRegister, expenseRegister and set totalRevenue to zero.Overview
(IncomeRegister incomeRegister, ExpenseRegister expenseRegister, GeneralBudget budget) Class constructor that takes in an incomeRegister and expenseRegister and calculates total balance based on them.