UML
Use case diagrams are one of the diagrams in the UML for modeling the dynamic aspects of systems.(Activity diagrams,state diagrams,sequence diagrams,and communication diagrams are four other kinds of diagrams in the UML for modeling the dynamic aspects of system.) Use case diagrams are central to modeling the behavior fo a system, a subsystem,or a class. Each one shows a set fo use cases and actors and their relationships.
An actor is a user of the system playing a particular role.
Actor is shown with a stick figure.
Student
Use case is a particular activity a user can do on the system.
Is represented by an ellipse. 椭圆
Following are two use cases for a library system.
Use Cases
A University record system should keep information about its students and academic staff.
Records for all university members are to include their id number, surname, given name, email, address, date of birth, and telephone number.
Students and academic staff each have their own unique ID number: studN (students), acadN (academic employee), where N is an integer (N>0).
In addition to the attributes mentioned above:
Students will also have a list of subjects they are enrolled in. A student cannot be enrolled in any more than 10 subjects.
Academic employees will have a salary, and a list of subjects they teach. An academic can teach no more than 3 subjects.
手机扫一扫
移动阅读更方便
你可能感兴趣的文章