rodrigjg/GenomicsSimulator — pull request #18 by AreeshaSalman (2014-03-10 01:41:02+00:00)
Title: March 9 2014

-- Made an enumeration called TraitsEnum
- Each instance of this enumeration is a trait category (for example, eyeColour, hairColour, etc)
- Each instance has two instance variables: one is a list of possible traits for that category, the other is a list of all of the DNA lists for that category
-- Edited the person class
- the person class is initiated with an array
- each element in the array corresponds to a specific trait for each category (for example, the first element in the array is the name of the person, the second their gender, the third their eye colour, etc.
- the person class also makes an array of all of the traits (of type TraitsEnum)
-- Edited tester
- made the popups into a loop, each time the loop runs the chosen trait is added to the momTraits array or the dadTraits array
- these traits are then passed to the person class to make a person called mom and a person called dad from their respective chosen traits
- THERE IS AN ERROR IN THE BABY RANDOMIZER PART OF THE TESTER - for some reason the string returned to the tester from the baby randomizer is null, I'll work on this but if someone can help that would be great
-- So basically:
- no need for any of the individual trait classes anymore
- shorter code in tester
- merged the enumerations idea and the list of lists idea, hopefully everyone's happy :)