5.2.2. Controllers and mediators
A software pattern is named problem/solution pair that
can be applied in a new problem situation (Larman, 1997).
Patterns are general principles and solutions that are used in
software development.
General Responsibility Assignment Software Patterns,
or GRASP patterns, aim to resolve problems related to
assigning responsibilities to objects during software
design. All main GRASP patterns, namely ‘Expert’,
‘High Cohesion’, ‘Low Coupling’ and ‘Controller’, were
used while designing JessGUI. For example, JessGUI
uses one controller class for governing each implemented
use case, as well as one class that represents global
controller that coordinates work of other controller
classes and manages main operations.
Design of JessGUI was based also on well-known
design patterns, or GoF patterns. They represent descriptions
of communicating objects and classes that are
customized to solve a general design problem in a
particular context (Gamma, Helm, Johnson, & Vlissides,
1995). For example, JessGUI takes advantages of the
‘Mediator’ pattern that introduces an object responsible for
interaction between a set of objects, thus promoting lowlevel
coupling between them. JessGUI’s classes
‘Mediator’, ‘FramesControler’ and ‘FactsControler’
implement this pattern. Their interconnection can be
observed in Fig. 5.
5.2.2 . ควบคุมและไกล่เกลี่ยรูปแบบซอฟต์แวร์แก้ไขปัญหา / คู่ที่ชื่อสามารถใช้ในสถานการณ์ปัญหาใหม่ ( larman , 1997 )รูปแบบเป็นหลักการทั่วไปและโซลูชั่นที่ใช้ในการพัฒนาซอฟต์แวร์รับผิดชอบงานทั่วไปซอฟต์แวร์รูปแบบหรือเข้าใจรูปแบบ มุ่งแก้ไขปัญหาที่เกี่ยวข้องกับมอบหมายความรับผิดชอบให้วัตถุในซอฟต์แวร์การออกแบบ เข้าใจรูปแบบหลักคือ " ผู้เชี่ยวชาญ "" สามัคคี " สูง " ต่ำ " และ " ควบคุม " ซึ่งคือใช้ในขณะที่การออกแบบ jessgui . ตัวอย่างเช่น jessguiใช้ควบคุมหนึ่งชั้นปกครองแต่ละ ดำเนินการกรณีใช้เป็นหนึ่งชั้นเรียนที่แสดงถึงโลกควบคุมการทำงานของเครื่องควบคุมตำแหน่งชั้นเรียนและจัดการการดำเนินงานหลักออกแบบ jessgui อยู่ใน ที่รู้จักกันดีรูปแบบการออกแบบหรือ gof รูปแบบ พวกเขาแสดงคำอธิบายการสื่อสารและการเรียนที่เป็นวัตถุปรับแต่งแก้ไขปัญหาทั่วไปในการออกแบบบริบทเฉพาะ ( Gamma , หางเสือ , Johnson & vlissides , ,1995 ) ตัวอย่างเช่น jessgui ใช้ข้อดีของ" คนกลาง " แบบที่แนะนำวัตถุต้องรับผิดชอบปฏิสัมพันธ์ระหว่างชุดของวัตถุจึงส่งเสริมระดับต่ำการเชื่อมต่อระหว่างพวกเขา เรียน jessgui คือ" คนกลาง " , " " และ " " framescontroler factscontrolerใช้รูปแบบนี้ การเชื่อมต่อของพวกเขาสามารถสังเกตในรูปที่ 5
การแปล กรุณารอสักครู่..
