. , :
q registration form RegForm;
q manager Manager;
q math 101 Course;
q section 1 CourseOffering;
q bill , BillingSystem .
(. 17.17).
1. Logical View.
2. New:Class. NewClass.
3. , RegForm.
4. : Manager, Course, CourseOffering BillingSystem.
(). Documentation Window (. 17.18).
1. CourseOffering.
2. Documentation Window.
, : , .
. (. 17.19) .
. 17.17. . 17.18.
Logical View Documentation Window
. 17.19.
1. Main .
2. Query:Add Classes.
3. Ȼ ( ).
4. .
5. ( , ).
( ).
UML . . Interface BillingSystem (. 17.20), (billing system).
. 17.20. Billing System
1. BillingSystem. (Class Specification).
2. Stereotype.
3. - Interface.
4. , .
. , , . , . .
|
|
. Add a Course, : RegForm Manager, Manager Course Manager BHHngSystem (. 17.21).
. 17.21.
1. ().
2. RegForm Manager.
3. :
q Manager Course;
q Manager BillingSystem.
- .
. . Course CourseOffering (. 11.22), CourseOfferings Course.
1. ( ).
2. , Course.
3. , CourseOffering.
. 17.22.
. 17.23.
, , (. 17.23).
1. CourseOffering.
2. Multipticity:0ne or More.
3. Course.
4. Multiplicity:1.
, . , . , , .
. . (CourseOffering) (attribute) - Course.
, CourseOffering (. 17.24). .
. 17.24.
1. CourseOffering.
2. Insert New Attribute. .
3. , numberStudents.
, . .
. . .
( ) . (. 17.25).
. 17.25.
|
|
1. Add a Course .
2. CourseOffering.
3. CourseOffering section 1.
. , , , . , .
. , , . (. 17.26). . -, ( ). -, , . -, , .
. 17.26.
1. add Joe. .
2. new operation. Operation Specification.
3. add.
4. Detail.
5. Arguments.
6. Insert. Joe. .
7. , .
. , , .
, . : , (. 17.27).
1. .
2. New: Operation. opname.
3. opname offeringOpen.
4. accepting students?. .
5. offeringOpen() ( ).
. 17.27.
. Tools:0ptions. Notation. Default Language. Ada 95.
, (. 17.28). , , .
1. CourseOffering . .
2. Attributes ().
3. . .
4. (Integer).
5. , .
. 17.28.
, Attribute ( attribute:data type).
offeringOpen (. 17.29).
|
|
1. CourseOffering . .
2. Operations.
3. Return type. .
4. (Integer).
5. , .
Operation Specification. () Operations Specification. Detail.
, ( operation(argument name:data type):return type).
. 17.29.