Transcript JSP คืออะไร
Unified Model Language UML มหาวิทยาลัยเนชัน ่ http://www.nation.ac.th http://www.thaiall.com/class บุรน ิ ทร ์ รุจจนพันธุ ์ . ความหมาย UML (Unified Modeling Language) เป็ นเครือ ่ งมือใหมที ่ ขึน ้ ่ ไ่ ดรั ้ บการยอมรับเพิม ตลอดเวลา เริม ่ ประยุกตใช ์ ้กับระบบงาน มากขึน ้ เพราะเป็ นเครือ ่ งมือทีม ่ ค ี วาม หลากหลายในการแสดงแบบซอฟตแวร ์ ์ เป็ นโมเดลมาตรฐานทีใ่ ช้หลักการออกแบบ OOP (Object Oriented Programming) รูปแบบของภาษามี Notation เป็ น สั ญลักษณส ์ าหรับสื่ อความหมาย มี กฎระเบียบทีม ่ ค ี วามหมายตอการเขี ยน ่ โปรแกรม (Coding) ดังนั้นการใช้ UML http://www.thaiall.com/class Meaning The UML is a complete language that is used to design, visualize, construct and document systems. It is largely based on the objectoriented paradigm and is an ขอมู ้ ลจาก http://www.visualcase.com/kbase/what_is_the essential tool for developing http://www.thaiall.com/class ประวัตข ิ อง 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 http://www.thaiall.com/class ประโยชนของ UML ์ ประโยชนของยู เอ็มแอล (UML ์ Advantage) 1. วงจรการพัฒนาทีส ่ ้ั นทีส ่ ุด (Shortest Development life cycle) 2. เพิม ่ ผลผลิต (Increase productivity) 3. ปรับปรุงคุณภาพซอฟตแวร ์ ์ (Improve software quality) http://www.thaiall.com/class ส่วนประกอบของ 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 http://www.thaiall.com/class 6 ประเภท 1.1 Structural things วัตถุเชิงโครงสร้าง เป็ นส่วนประกอบหลัก ของไดอะแกรมตาง ๆ ่ 1.1.1 Logical things เช่น class, interface, collaboration, use case, active class 1.1.2 Physical things http://www.thaiall.com/class 1.1.1 Logical things Class http://www.thaiall.com/class 1.1.2 Physical things http://www.thaiall.com/class 1.2 Behavioral things วัตถุแสดงพฤติกรรม 1. Interaction กริยาของขาวสารระหว างวั ่ ่ ตถุ ลักษณะ : เส้นตรงทีม ่ ล ี ก ู ศรหัวดา 2. State machine สถานะของลาดับ และวัตถุ ลักษณะ : สี่ เหลีย ่ มทีท ่ ก ุ มุมมีลก ั ษณะโค้งมน http://www.thaiall.com/class 1.3 Group things Package แสดงกลุมของวั ตถุ ่ ลักษณะ : สี่ เหลีย ่ ม 2 รูปวางตอกั ่ มดานบน ่ นอยู่ แตสี่ ่ เหลีย ้ ซ้ายจะขนาดเล็กกวา่ http://www.thaiall.com/class 1.4 Annotational things Annotation แสดงการอธิบายเพิม ่ เติมหรือหมายเหตุ ลักษณะ : สี่ เหลีย ่ มทีพ ่ บ ั ลงมุมทีม ่ ุมบนขวา http://www.thaiall.com/class 2.1 Meaning เส้นแสดงความสั มพันธเชิ ์ งความหมาย 1. Dependency เส้นแสดงความสั มพันธต ย ่ นแปลงทีข ่ น ึ้ ์ อการเปลี ่ ตอกั ่ น (Change to one thing will affect the other) ลักษณะเส้น : เส้นประทีล ่ ก ู ศรไมปิ่ ดฐานศร 2. Realization ความสั มพันธระหว างวั งความหมาย ์ ่ ตถุเชิงอางอิ ้ (A specification of a constract between two entities) http://www.thaiall.com/class 2.2 Structural Association แสดงความสั มพันธอาจเป็ นแบบ one to many หรือ one to ์ one (Set of links between objects) ลักษณะเส้น : มี สั ญลักษณ ์ 0..1 หรือ 0..* ทีป ่ ลายเส้น และมีหวั ลูกศรแสดง ทิศทาง ขอมู ้ ลจาก http://www.visualcase.com/kbase/associations http://www.thaiall.com/class 2.3 Generalized Generalized/Specialized ความสั มพันธเชิ ์ งสื บทอด (Used for inheritance) ลักษณะเส้น : เส้นทีล ่ ก ู ศรและเป็ นลูกศรหัวโปรง่ ขอมู ้ ลจาก http://www.visualcase.com/kbase/generalizati http://www.thaiall.com/class 3.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_case.h http://www.thaiall.com/class 3.2 Class Diagram แสดงความสั มพันธระหว างคลาส ่ ์ The class diagram is core to objectoriented design. It describes the types of objects in the system and the static relationships between them. http://www.thaiall.com/class 3.3 Object Diagram แสดงความสั มพันธระหว างวั ่ ตถุ ์ http://www.thaiall.com/class 3.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 http://www.thaiall.com/class 3.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 http://www.thaiall.com/class 3.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 http://www.thaiall.com/class 3.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 http://www.thaiall.com/class 3.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. http://www.thaiall.com/class 3.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_case.h ขอมู ้ ลจาก http://en.wikipedia.org/wiki/Deployment_diagram http://www.thaiall.com/class