
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A problem description and potential uml class design for a park scenario involving customers, hunters (birds and dogs), and prey (turkeys). The abilities and behaviors of each entity, such as flying, barking, hiding, chasing, and tracking. The uml class design includes classes for customer, hawk, turkey, greyhound, bloodhound, and hound.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

CMSC 132 Homework 3 - Solution
Problem Description
A park contains customers and two types of animals, birds and dogs. Birds can be either turkeys or hawks. Some dogs are hounds. Hounds can be either greyhounds or bloodhounds. Customers, hawks, and hounds (hunting dogs) are all hunters. Turkeys are prey. Animals can travel at different speeds. Birds can fly and dogs can bark. All hunters can detect and capture prey. All prey can hide to avoid detection. Greyhounds can chase prey, and bloodhounds can track prey. Customers may bring hawks or hounds to the park to help hunt turkeys. Whether a turkey is captured depends on its ability to hide or run from hunters.
Possible UML Class Design