Brain Dump

Model-View-Controller

Tags
soft-eng

A transform centre architecture for graphical user interfaces.

\begin{figure}
  \begin{tikzpicture}[line/.style={very thick, dashed}]
    \begin{umlpackage}{Model}\end{umlpackage}
    \begin{umlpackage}[x=4, y=-2]{Controller}\end{umlpackage}
    \begin{umlpackage}[y=-4]{View}\end{umlpackage}

    \draw [line, <->] (Controller) -- (Model);
    \draw [line, <->] (Controller) -- (View);  \end{tikzpicture}
  \caption{MVC visualised}
\end{figure}
Table 1: Division of labour.
MVCDescription
ModelObjects that model the business domain.
ViewGUI objects that display views and detect events.
ControllerEvent handlers that synchronise views and model data.