Title: JSP ???????
1Unified Model Language
UML
???????? ??????????? . ???????? 6 ???????? 2550
????????????????? http//www.nation.ac.th
2????????
UML (Unified Modeling Language)
??????????????????????????????????????????????????
??? ?????????????????????????????????
??????????????????????????????????????????????????
??????? ??????????????????????????????????? OOP
(Object Oriented Programming) ???????????????
Notation ???????????????????????????????
??????????????????????????????????????????
(Coding) ????????????? UML ?????????????????????
Notation ???? generalize, association,
dependency, class ??? package ????????????????????
????????????????????????? ???????? Implement
???????????
3Meaning
The UML is a complete language that is used to
design, visualize, construct and document
systems. It is largely based on the
object-oriented paradigm and is an essential tool
for developing robust and maintainable software
systems.
????????? http//www.visualcase.com/kbase/what_is_
the_uml_.htm
4?????????? UML ??? 3 ????
3 ?????????????????? Rational Rose Corporation
1. Grady Booch ?????????????????????? Booch
method ???????????????????????????????? ??
Diagram ???????????????????? ?????????????????????
????????????? ????????????????????? digram
??????? ????????????? Booch ??????????????????????
? Micro ??? Micro Development ????????????????????
????????????????? Iteration and Incremental
Process 2. Jame Rumbaugh Object modeling
Techniques(OMT) ????????????????????????????
General Eletric ??????????????????????? Jame
Rumbaugh ??????????????????????? ???????????
Object Model, Dynamic Model, Functional Model,
Use-case Model 3. Ivar Jacobson Object
Oriented Software Engineer(OOSE)
????????????????????????????? Requirement ????
??????????????????????? Use-Case Model ????
Use-Case Model ??? ???????????????????????????????
?????
5??????????? UML
???????????????????? (UML Advantage) 1.
????????????????????????? (Shortest Development
life cycle) 2. ??????????? (Increase
productivity) 3. ???????????????????????
(Improve software quality) 4. ???????????????????
??? (Support legacy system) 5.
?????????????????????????? (Improve team
connectivity)
6????????????? UML
UML ?????????? 3 ???????? ??? Things,
Relationships ??? Diagrams 1. Things 4 ??????
??? Structural things, Behavioral things, Group
things ??? Annotational things 2. Relationships
3 ?????? ??? Meaning, Structural ???
Generalized/Specialized 3. Diagrams 6 ??????
??? Use case, Static strucure, Interaction,
State, Activity ??? Implementation
71.1 Structural things
?????????????????? ???????????????????????????????
?? ? 1.1.1 Logical things ???? class, interface,
collaboration, use case, active class 1.1.2
Physical things ???? component ??? node
81.1.1 Logical things
Class
91.1.2 Physical things
101.2 Behavioral things
????????????????? 1. Interaction ?????????????????
?????????? ?????? ?????????????????????? 2.
State machine ????????????? ???????? ??????
?????????????????????????????????
111.3 Group things
Package ????????????????? ?????? ?????????? 2
???????????????? ?????????????????????????????????
????
121.4 Annotational things
Annotation ?????????????????????????????????? ????
?? ????????????????????????????????
132.1 Meaning
???????????????????????????????? 1.
Dependency ???????????????????????????????????????
???????????(Change to one thing will affect the
other) ?????????? ?????????????????????????? 2.
Realization ??????????????????????????????????????
????? (A specification of a constract between two
entities) ?????????? ??????????????????????????
142.2 Structural
Association ?????????????????????????? one to
many ???? one to one (Set of links between
objects) ?????????? ??????????? 0..1 ???? 0..
??????????? ???????????????????????
????????? http//www.visualcase.com/kbase/associat
ions.htm
152.3 Generalized/Specialized
Generalized ?????????????????????? (Used for
inheritance) ?????????? ???????????????????????
?????????
????????? http//www.visualcase.com/kbase/generali
zation.htm
163.1 Use Case Diagram
??????????????????????????????? ???????????
???????????????? The use case diagrams describe
system functionality as a set of tasks that the
system must carry out and actors who interact
with the system to complete the tasks.
????????? http//www.visualcase.com/kbase/visual_c
ase.htm
173.2 Class Diagram
??????????????????????????? The class diagram
is core to object-oriented design. It describes
the types of objects in the system and the static
relationships between them.
183.3 Object Diagram
????????????????????????????
193.4 Sequence Diagram
???????????????????????? Sequence diagrams
belong to a group of UML diagrams called
Interaction Diagrams. Sequence diagrams describe
how objects interact over the course of time
through an exchange of messages. A single
sequence diagram often represents the flow of
events for a single use case.
203.5 Collaboration Diagram
????????????????? ????????????????????????????????
?? Collaboration diagrams belong to a group of
UML diagrams called Interaction Diagrams.
Collaboration diagrams, like Sequence Diagrams,
show how objects interact over the course of
time. However, instead of showing the sequence
of events by the layout on the diagram,
collaboration diagrams show the sequence by
numbering the messages on the diagram. This
makes it easier to show how the objects are
linked together, but harder to see the sequence
at a glance.
213.6 State Diagram
????????????????? ???? New, Ready, Running,
Blocked, Halted State diagrams show the dynamic
behaviour of a system. The diagram shows the
various states that an object can get into and
the transitions that occur between the states.
223.7 Activity Diagram
???????????????????? (Workflow) Activity
diagrams are a variation of state diagrams which
show the sequence of activity states (states that
are doing something). The diagram can show
conditional and parallel behaviour.
233.8 Component Diagram
?????????????????????????????????? ????
?????????????????????????? ????????????????????
Component diagrams show how the physical
components of a system are organized. A component
is a distributable unit of software. The
component diagram allows you to combine
deployment nodes with components to show which
components run on each node (i.e. hardware).
243.9 Deployment Diagram
?????????????????????? HW/SW A deployment diagram
serves to model the hardware used in system
implementations, the components deployed on the
hardware, and the associations between those
components.
????????? http//www.visualcase.com/kbase/visual_c
ase.htm????????? http//en.wikipedia.org/wiki/Dep
loyment_diagram