Title: ?????????????????????????????????? Object Oriented Analysis and Design
1??????????????????????????????????Object
Oriented Analysis and Design
- ??? ?. ??????? ????????
- xnattapong_at_hotmail.com
- songneam_at_gmail.com
2????? 1 ????? Object Orientation
- ??????????
- ?????????????????????????????? Object Orientation
- ????????????????????????????????????????
Object-Oriented Software Engineering - ??????????????????????????????? ?????? Problem
Domain , Object , Class , Abstration , OOA , OOD
, OOP ???????
3Agenda
- ????? 1
- OO ???????
- Relationship
- Interaction
- Domain
- Object ??? Classes
- class ???? Abstract Object
- Abstraction Instantiation
- Attributes ??? Functions
- Attribute
- Functions
- OOSE
- OOA
- OOD
- OOP
41.1 Object Orientation ???????
- ??????????????? ??????????? ? ????????????????????
? ????????????????????????????? (Tangible)
???????????????????? (Intangible) - ?.?. ??? Tangible ?????? gtgt ??????????? , ???? ,
?????? , ?? , ????? ??? - ?.?. ??? Intangible ?????? gtgt ??????? ???? ??????
(????????????????) , ?????????? , ????? , ???? ,
??????? , ????????? ? ???????? (??????????????????
?) ???
5Tangible Object
6Intangible Object
- ??????? ???? ?????? (????????????????)
- ??????????
- ?????
- ????
- ??????? , ????????? ?
- ???????? (???????????????????)
- ???
71.1 Object Orientation ??????? (???..)
- ????????????????? ????????????? Object ???? ?
?????? ?????????????????? Object ???? ? ?????
???????(Activities) ??????????? (Movement)
???????????? (Action ) ???? - ????????????????
- ???????????????
- ??????????????????????
- ??????????????????????????????????????????????????
????????? - ??????????????????????????????? ??????????? ?
??????????????????????????????????????????????????
????????????????? (Relationship)
??????????????????? (Interaction) ??????? Obeject
2 ????????? ????????????????????????????????????
81.1 Object Orientation ??????? (???..)
- ???????? ??????????????????????? ???????
Interaction ????????? ??????? ??????????
?????????? Relationship ???????????
????????????????? ( ???????????????????????
??????????????????????? ) - ???????? ????????????????????? ???????
Interaction ?????? ??????? ??????????????????
?????????? Relationship ?????
????????????????????? - ???????? ?????????????????? ??????? Interaction
???????? ??????? ???????? ??????????
Relationship ????????? ????????
9?.?. ??? 1.1
??? ?. ????????????????? A (?????????????? ?.
???) ??????????? (?????????????????) ??????
- Object ???????????????????????? ??? ?. ,
????????????? A , ?????? - Relationship ??????? Object ?????????? ??????
- ??? ?. ???????????????????????? A
- ?????????????????????? A
- Interaction ??????? Object ????????????????
- ??? ?. ????????????????? A
- ??? ?. ???????
- ??? ?. ???????
10Relationship Interaction
- Relationship ??? ?????????????????????
??????????????????? Object 2 ????????? ????
???-??? ???????????????????????? ??????? - Interaction ??? ????????????????????????? ?
?????????????????? Object 2 ????????? ????
???????? ?????????????? ??????? ??????????
??????? ???? Interaction ??????????????????
??????? ( Activities ) ???? ? ????????
11Domain
- ?????????????? 1.1 ???????????????????????
??????????? Object ?????????? ???? Relationships
?????????? ??????? ????? ?????????? ??????????
??????????????????????????????????????? ?????
????????????????????? ? ??????????????????????????
? ???????????????????????????????????????????????
???????????? ?????? ? ????????????????????????????
????? ??????? ?????????????? 1.1
??????????????????????????? ? ????????? ????
????????????????????????????????? ???? ???
???????????????????????????????? ??? ?.
???????????????????????????????? ???? ??????????
????????????????????
12Domain (???)
- ?? Domain ????? ???????????? Object ?????????? 2
????????? ???????????????????
13Object ??? Classes
- Concept ?
- ?????????????????? Object ????????? Domain
????????????????? (Real World) ????????
?????????????????????????? (Model) ???????? ?
????????????????????????????????????????? - Concept ???????
- Concept ??????? ??????????????????????????????????
?? ? ( ??????????????????????????????
????????????????????????????????????????? ) - ???????????? ?????? ?????????? Concept ?????????
??????? ???????????????????? ?????
???????????????? ??????????????????? concept
????????? ????? ( ??????????????? ) ???????
????????????????? 4 ?? ???? ????? ?????????? ???
?????????????????????
141.3 Attribute Function
- Attribute
- ??????????????????????????? object ???? ?
???????? ????????????????????????????????????????
??????????????????? Domain ?????????????????
???? ???????????????????????????? ???? ?????????
??????????????????????? ???????
???????????????????????????? Attribute - Function
- ?????????????????????????????????? ?
?????????????????????
15?????????????????????? Class
Car BrandName Price Color Wheel NumOfDoor Run()
Spin() Stop()
Class Name Attribute 1 Attribute 2 Attribute
3 Function 1 Function 2 Function 3
161.4 Object-Oriented Software Engineering (OOSE)
- OOSE ??????? ??????????????????????????????
??????????????????? ????????? ???????????????
????????????? ???????????????? Object-Orientation
- OOA Object Oriented Analysis
- OOD Object Oriented Design
- OOP Object Oriented Programming
17???????????
- ???????? ???????????????????? Class ??????????
Object