Removed amount from ElectricDevice model, removec controls for amount and
StandbyHoursPerDay in AddElectricDeviceActivity, added control
"isDeviceRunningStandby", and StandbyHoursPerDay are calculated based on
this variable and hoursPerDay for given ElectricDevice.#
Added SetStandby button and its functionality to
AddElectricDeviceActivity. Proper images still to be added.#
Now AddElectricDeviceActivity starts with a selected device already.#
AddElectricDeviceActivity, AddWaterActivityActivity and
AddRefuseProductionActivity are now only launchable by clicking an item
from User's item list. Selection spinners are removed, each of these
activities is launched with a specific selection made (passed by Extras
bundle).#
Added FullSelection class in Model. This is a container that stores
complete lists of ElectricDevices, WaterActivities and RefuseProductions.
It is used in ShowUserActivity now to provide all possible selections on
screen for the User to select.
Elements selected by user in ShowUserActivity are now highlighted by the
border around their buttons. Border coded in
image_button_selection_border.xml, logic coded in ImageButtonAdapter.java,
to be improved later in the project.#
Added methods to remove single elements from User's containers. Created
tests for single elements removal. Created #
Added AddElementBasicActivity, to create an universal menu for setting
basic element usage.#
Added functionality for removing a single element from User's elements to
DataManager. Created tests.#
Created NameAndType class to provide common interface for all elements in
GUI to be easily recognized. All methods related to recognizing an element
an getting its number are now moved to NameAndType. Methods are yet to be
improved. Clicking an element in ShowUserActivity will now lead to
AddElementsBasicActivity.#
AddElementBasicActivity now supports all buttons (layout still to be
worked on). Improved structure - all devices data moved to
model.FullSelection. NameAndType now recognize name, type and index of an
element. Algorithm for recognizing much improved.#
Improved NameAndType class (now showing dependencies through interfaces),
created tests for NameAndType.#
Fixed data balance - now small/medium/large usage changes only how
long/how much user uses a device/activity. Power consumption and water
liters usage are always set as average.#
Now DataSaver.saveDataToFile is called after every modification of user's
collection.#
Minor bugs fixes. Now the name of the selection is displayed on top of
BasicSettings screen.
Finished general architecture rebuild and upgrade.#