?? subject_44037.htm
字號:
<p>
序號:44037 發表者:dongfanghong 發表日期:2003-06-16 08:59:27
<br>主題:類的構造
<br>內容:RUP中,分析類的構造,將類分成邊界類,控制類,實體類。<BR>和MVC模式是否是一回事?
<br><a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p>
<hr size=1>
<blockquote><p>
回復者:dongfanghong 回復日期:2003-06-16 09:12:13
<br>內容:偶正在學習,有興趣的進來討論討論。
<br>
<a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回復者:木一 回復日期:2003-08-02 21:23:25
<br>內容:非常類似,我對聯MVC了解不多,簡單看了MVC的<BR><BR>MVC模式本身--簡單的從字面上以及應用上說,通過將系統的設計分為Model模型/邏輯、View視圖/界面、Controller控制/流程三個邏輯部分達到良好的項目效果,以此便利各部分開發者的工作并降低日后的維護成本<BR><BR>相對權威一點的解釋如下:<BR><BR>The MVC paradigm is a way of breaking an application, or even just a piece of an application's interface, into three parts: the model, the view, and the controller. MVC was originally developed to map the traditional input, processing, output roles into the GUI realm:<BR><BR>Input --> Processing --> Output<BR>Controller --> Model --> View<BR><BR>The user input, the modeling of the external world, and the visual feedback to the user are separated and handled by model, viewport and controller objects. The controller interprets mouse and keyboard inputs from the user and maps these user actions into commands that are sent to the model and/or viewport to effect the appropriate change. The model manages one or more data elements, responds to queries about its state, and responds to instructions to change state. The viewport manages a rectangular area of the display and is responsible for presenting data to the user through a combination of graphics and text.<BR><BR>The model, viewport and controller are intimately related and in constant contact. Therefore, they must reference each other. The picture below illustrates the basic Model-View-Controller relationship: <BR><BR> +------------+<BR> | Model |<BR> +------------+<BR> /\ . /\<BR> / . \<BR> / . \<BR> / . \<BR> / \/ \<BR> +------------+ <------ +------------+<BR> | View | | Controller |<BR> +------------+ ......> +------------+<BR><BR><BR>另一解釋<BR><BR><BR>In the MVC paradigm the user input, the modeling of the external world, and the visual feedback to the user are explicitly separated and handled by three types of object, each specialized for its task. The view manages the graphical and/or textual output to the portion of the bitmapped display that is allocated to its application. The controller interprets the mouse and keyboard inputs from the user, commanding the model and/or the view to change as appropriate. Finally, the model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). The formal separation of these three tasks is an important notion that is particularly suited to Smalltalk-80 where the basic behavior can be embodied in abstract objects: View, Controller, Model and Object. The MVC behavior is then inherited, added to, and modified as necessary to provide a flexible and powerful system.<BR><BR><BR><BR>而邊界類,控制類,實體類的目的也與之相似。可以這樣認為,MVC是一種具體化。<BR><BR>http://www.sdmagazine.com/documents/s=815/sdm0103c/0103cf5.gif<BR>邊界類,控制類,實體類之間相互訪問,有一個允可問題,參見上圖(不知怎么貼圖)<BR><BR><BR>2003-8-2 22:23:41
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -