Matakuliah : M0126 - Analisis dan Perancangan Sistem Informasi Lanjut Tahun : 2009 - 2010 FUNCTION COMPONENT Pertemuan 17-18 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : • Mahasiswa dapat membuat diagram / skema model component (C4) Outline Materi • Mahasiswa dapat membuat diagram / skema component architecture class 13 – 14 / 02 - 15 Function Component Purpose To determine the implementation of functions Concepts Function Component : A part of a system that implements functional requirements Operation : A process property specified in a class and activated through the class’ objects 13 – 14 / 03 - 15 Function Component (Cont’d) Principles Base the design on function types Specify complex operations Result A class diagram with operations and specifications of complex operations 13 – 14 / 04 - 15 Sub-Activities in Function-Component Design Function list, class diagram Function list, class diagram And component specification And component specification Design function As operation Model-component Model-component specification specification Explore pattern Specify complex operations Function-component Function-component specification specification Class Diagram with Operations on Classes <<Component>> <<Component>> Model Model <<component>> <<component>> Function Function 13 – 14 / 05 - 15 13 – 14 / 06 - 15 Central Questions in a Design Based on Function Types Function Type Central Questions Common to all types How should the function be implemented as operations in different classes? How is the main operation activated and what input data does it use? Which objects and connections are involved in performing the operations, and how are they identified? What is the feedback from the main operation? Update How can you determine if the update is legal? Read Which attributes and connections should be read, and how are these found? Compute Which algorithm should be carried out? Signal Which rules apply to the signaling? 13 – 14 / 07 - 15 Update A General Update function realized as a set of operations Read 13 – 14 / 08 - 15 A General Read function realized as a set of operations Compute A General Compute function realized as a set of operations 13 – 14 / 09 - 15 Signal A General Signal function realized as a set of operations 13 – 14 / 10 - 15 13 – 14 / 11 - 15 Explore Pattern Model-Class Placement This pattern is particularly useful when an operation accesses only a single object or simple aggregate structure Function-Class Placement This pattern is used when responsibility for the operation cannot be clearly placed in a model class 13 – 14 / 12 - 15 An Example of the Model-Class Placement Pattern 13 – 14 / 13 - 15 An Example of Function-Class Placement <<component>> <<component ModelModel a account <<component>> <<component>> Function Function Interest Administrator Control Interest Calculation Control Interest Calculation Transaction Transaction AccountType Type Account 13 – 14 / 14 - 15 Strategy A generic illustration of the strategy Pattern 13 – 14 / 15 - 15 Active Function Active Model The Active-Function Pattern Illustration
© Copyright 2026 Paperzz