Skip to content
Fyger edited this page Mar 22, 2012 · 3 revisions

Class Design

This shows the re-working of our current classes into more concise designs that follow the design patterns laid out in our class.

Models

Mole

The Mole class is used to dictate the moles that are being tracked by the user. It will contain values for the name of the mole, the id associated with the mole in the database, the description associated with the mole, the id's of the pictures assocaited with the image (ids of the pictures in the database), and lastly tag(s) to indicate the location of the picture, and potentially tags to indicate the description of the mole itself

Variables

unsigned int id
string name
string description
ArrayList<string> tags OR unsigned int[] tags (if we have a database of tags)
unsigned int[] picture_ids

Picture

The Picture class will be storing data associated with each picture taken in the application. Within in model will be the id of the picture data stored in the picture database, the picture description (as indicated in the newest requirements), the date in which the picture was taken, the tag(s) associated with the picture (as indicated by our features list and the newest requirements), a list of mole ids that are associated with this image (as more then one mole may be present in the image), and lastly we will have the image loaded into the picture file.

Variables

unsigned int id
string description
date taken
ArrayList<string> tags OR unsigned int[] tags (if we have a database of tags)
unsigned int[] mole_ids
URI image

Factories

MoleFactory

The MoleFactory class is going to be used as a means of generating new moles and loading moles from the database. The duel nature of this factory is to ease the transition of new moles into the database as well as the pulling of moles from the database.

Functions

PictureFactory

Functions

Clone this wiki locally