Next: Representation of the domain:
Up: Unit 01
Previous: Programs
Application: We want to realize a program for a call-center that handles
requests for telephone numbers. Specifically, a certain client requests the
telephone number associated to a certain person name in a certain city, and the
operator answers to the request by selecting the telephone registry of the city
and searching there the telephone number corresponding to the person name.
- Objects:
- client
- operator
- telephone registry
- telephone numbers, person names, cities - these are just character
sequences (strings)
- Operations:
- request for the telephone number of a given person name in a given
city, done by a client
- selection of the telephone registry of the requested city, done by the
operator
- search of the telephone number corresponding to the requested person
name on the telephone registry
The program has to represent all objects that come into play and realize all
operations.
Next: Representation of the domain:
Up: Unit 01
Previous: Programs