, , .
, , - . , , .
, , , . .
. 8.
, . , , .
UML - , (, ), - (, , ).
:
(package) - , ;
(class) - ;
(interface) - , , , , .
- (), , , . .
UML .
, 3 :
( ) ( , ).
- , (, ).
( ). - .
, , (Exceptions).
. 9.
, .
UML :
Boundary ();
Entity ();
Control ().
(boundary classes) , . , , ( ) .
|
|
, . , , . .
-
- (entity classes) . , . - .
(control classes) . , . , , . . , -.
, . , SecurityManager ( ), , . TransactionManager ( ) , . , , .
.
, . .
, . , . (attribute visibility).
:
Public (, ). , . . UML +.
Private (, ). . UML.
Protected (). . UML #.
Package or Implementation (). , , . .
, . .
, . , . .
|
|
. , .
, . .
, . , , .
UML :
(: , 2: 2,...):
:
;
;
;
.
(implementor operations) -. , . -, , , .
. . , , , . , , - .
(manager operations) . .
. , . (access operations). , , . Get Set ( ) .
(helper operations) , , . .
, :
- . . .
- . .
- . , , Get Set.
. , . , , .
, : , , .
(association) . .
. 10.
|
|
, , . UML . , .
, . , , . , .
. , .
(dependency) , , , . , A B. B A.
, , , , , , .
. 11.
. , , .
(aggregations) . . , , , . , . . , :
. 11.
UML , . , - , , , , : . .
, , 1..1; , , (, , ).
()
() - - . (generalization) . - . , . , - - (.. ). , - - ( - , , ). .
. 12.
, , .
|
|
(multiplicity) , .
, Course () Student (). : , . , : ? ?
, . , , 0 20 .
UML .
1 - UML
. , , . , Person () Company () . , Person , ? , employs ():
. 13.
, . Person Company, , Person Company. , , . , , , . , , , . :
. 14.
.
, - . .
. 15. UML
UML - , . , , , , - .
, (, " "). , , .