- Name: Leyen Qian (108384916)
- Email: jiqi2811@colorado.edu
- Team Members: Ziyue Guo (107037369), Puyuan Zhang (107207898)
-
Main.java ( ./Main.java )
the entry point of the program. -
dayatthezoo.out ( ./dayatthezoo.out )
sample output (number of days: 7) -
Animal.java ( ./Animals/Animal.java )
the abstract class inherited by all beast divisions (Canine, Feline, Pachyderm and Ursidae). -
Canine, Feline, Pachyderm and Ursidae classes are inherited by animal speces under the breed directory respectively.
( ./Animals/Canine/Breed.* )
( ./Animals/Feline/Breed/* )
( ./Animals/Pachyderm.Breed/* )
( ./Animals/Ursidae/Breed/* ) -
Zoo.java ( ./Zoo/Zoo.java )
zoo class can store all employee and animal instances. -
ZooKeeper.java ( ./Zoo/Employee/Zookeeper.java )
It inherites the ZooEmployee class from the partent dictory, and provides additional function that specific to zoo keeper, such as feed animals and roll call animals.
It would be better to implement the random animal behavoirs by using the weighted random selection algorithm. But I found Java's design priciple on dictionary or key value pair are different than that in Python or C. Therefore, I choose to implement it with the random number function.