.


:




:

































 

 

 

 


UML




. , , , . ,
, , , , , .

, . , . , , .

, , , , . , . .. . , .

UML

UML, . UML . , , .

,
. , , , ..

, , . .

. .

- . , .

, .

, , .. , .

, . .

Feature
Structural Feature
Behavioral
Feature
Parameter
* {ordered}
0..1

, , .

. 1.

Activity . UML 1;

Class , . UML 1;

Communication ; .
UML 1 ollaboration diagram;

Component . UML 1;

Composite structure .
UML 2;

Deployment . UML 1;

Interaction overview Sequence Activity. UML 2;

Object . UML 1;

Package . UML 1;

Sequence . . UML 1;

State machine
. UML 1;

Timing . . UML 2;

Use case .
UML 1.

Diagram
Structural
Diagram
Behavior Diagrma
Class Diagram
Composite
Structure Diagram
Object Diagram
Component
Diagram
Deployment
Diagram
Package Diagram
Activity Diagram
Use Case
Diagram
State Machine
Interaction
Diagram
Sequence
Diagram
Communication
Diagram
Interaction
Overview
Diagram
Timing Diagram

. 2. UML

UML :

, ;

;

.

, ;

, ;

;

.

(Class) , , . .

(Interface) , , . .

(Collaboration) , , .

(Use ase) , , - (Actor).

(Active class) , .

(Component) , .

(Node) () , .

(Interaction) , .

(State machine) , , , .

UML

UML UML. . UML? , , ? UML . , , , UML. , , UML. ?

, UML , , . , . -UML .

, :

;

;

;

;

Use cases;

.

, . , .
, , . UML () . Java Beans get <>, set <>.

. 3.

. . , .

:
. , .

, .

, , .

, , . - : , , .

(Dependency) , , , , . , , , .

. 4.

(Generalization) , , , . ( ). .
( ), .

Payment
CashPayment
CreditPayment
CheckPayment

, CashPayment, CreditPayment, CheckPayment , , . Payment , .

. 5.

, :

;

;

, , , , ;

, , .

.

AdminMessage
interface
AbstractMessage

(Realization) (, ), ( ), .

. 6.

(Association) , . ( ) . , .

. 7.

.


, / , . , , .

 

. 8.

Presentation::EmployeeCustomer
-
ID: int
-
pageBean: PageBean
property get
+
getPageBean(): PageBean
property set
+
setPageBean(PageBean): void
Event
+
validateCard(AbstractCard): boolean
Presentation::PageBean
~
age: int
#
colorOfHair: int
-
lastName: String
-
middleName: String
-
name: String
+
weight: int
property get
+
getName(): String
property set
+
setName(String): void
+pageBean
 
 

, .

. 9.

/* # 1: :

EmployeeCustomer.java */

public class EmployeeCustomer {

private int ID = 0;

private PageBean pageBean = null;

 

public int getID() {

return this. ID;

}

public void setID(int newID) {

this. ID = newID;

}

public PageBean getPageBean() {

return this. pageBean;

}

}

AbstractCard
Presentation::
CreditCard
Presentation::
Wallet
+Owner
 
Owns
+Participant
1..*

. 11.

/* # 2: : Wallet.java, CreditCard.java */

public class Wallet {

private List<CreditCard> creditCards = null;

public void addCreditCard(CreditCard newCreditCard) {

creditCards.add(newCreditCard);

}

}

public class CreditCard {

private Wallet wallet = null;

public void setWallet(Wallet newWallet) {

this. wallet = newWallet;

}

}

. , , . getter setter , , , Java Beans. , , getter- - .

, . . .

, , , . . .

 
4

SQL

. , . . .

() . , (, , , ..):

. . -
     
     
     
     
     

. .
, . , , . () , . :

  • ( );
  • ( );
  • (
    );
  • ( );
  • ( ).

:

  • , ( SQL);
  • ( , , );
  • , ;
  • ( , );
  • ( );
  • .





:


: 2016-04-03; !; : 466 |


:

:

.
==> ...

2007 - | 1879 -


© 2015-2024 lektsii.org - -

: 0.048 .