Skip to content

Commit

Permalink
Merge pull request #3252 from HansOlsson/ClarifySpecialPattern
Browse files Browse the repository at this point in the history
Try to clarify design pattern.
  • Loading branch information
HansOlsson committed May 29, 2023
2 parents 1be4a33 + df60bfa commit 173d0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/classes.tex
Expand Up @@ -1292,10 +1292,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, which is used in this case, 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 173d0de

Please sign in to comment.