Skip to content

Commit

Permalink
Try to clarify design pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Sep 29, 2022
1 parent 0f1ed88 commit 6e91963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1183,10 +1183,10 @@ \section{Balanced Models}\label{balanced-models}
end BaseProperties;
\end{lstlisting}

The use of connector here is a special design pattern.
The model \lstinline!BaseProperties! together with its use in derived classes and as component relies on a special design pattern defined below.
The variables \lstinline!p!, \lstinline!h!, \lstinline!Xi! are marked as input to get correct equation count.
Since they are connectors they should neither be given binding equations in derived classes nor when using the model.
The design pattern is to give textual equations for them (as below); using \lstinline!connect!-equations for these connectors would be possible (and would work) but is not part of the design.
The design pattern is to give textual equations for them (as below); using \lstinline!connect!-equations for these connectors would be possible (and would work) but is not part of the design pattern.

This partial model defines that \lstinline!T!, \lstinline!d!, \lstinline!u! can be computed from
the medium model, provided \lstinline!p!, \lstinline!h!, \lstinline!Xi! are given. Every medium with
Expand Down

0 comments on commit 6e91963

Please sign in to comment.