Monday, February 6, 2012

Finishing my design, group meeting.

I finished my design today, which was a good thing.  The major concept is to use layers.  The Bucket is the top layer and is in charge of adding and removing bucket nodes, as will s containing references to all of the bucket nodes.  It acts as the facade that the user interacts with.  

The BucketNode is in charge of adding and removing nodes, knowing its name, and to know what ItemNodes that it holds.  

The item node is in charge of knowing its name and which bucket it belongs to.  It also has a link to the next bucketNode that has that item and the previous node that has that Item.  To find a listing of which buckets contain an itemNode, the itemNodes just talk to themselves and return the information to the bucket.  So, the bucket only has to worry about what is in it.

So there is a picture too...

We also had a group meeting about design, and got into one of those good design arguments, so I think it will really help.  There were other designs that are far better than mine.  Since we have to create our own data-structures it really complicates them so we are not sure if we want the group coding it to hate us or not.  I am worried about a traffic of questions... so we will see...

We are going to try some prototypes and tracers and see if it is a good option or not.  If not, we may go with a design that has less performance, but that will save us time as it will be easier to explain and hopefully there will be less questions...

Choices....  

No comments:

Post a Comment