Skip to content

Commit

Permalink
Remove bindings for these as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Nov 22, 2023
1 parent 7842e89 commit efff72f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chapters/annotations.tex
Expand Up @@ -520,11 +520,12 @@ \subsection{Single Use of Class}\label{annotation-for-single-use-of-class}\label
For state machines it is useful to have single instances of local classes.
This can be done using:
\begin{lstlisting}[language=modelica]
Boolean singleInstance = true;
Boolean singleInstance;
\end{lstlisting}

The annotation \fmtannotationindex{singleInstance} in a class indicates that there should only be one component instance of the class, and it should be in the same scope as the class is defined.
The annotation \fmtannotationindex{singleInstance} if \lstinline!true! in a class indicates that there should only be one component instance of the class, and it should be in the same scope as the class is defined.
The intent is to remove the class when the component is removed and to prevent duplication of the component.
If \lstinline!false! it has no impact.

\subsection{Connection Restrictions}\label{connection-restrictions}

Expand Down Expand Up @@ -1264,11 +1265,11 @@ \section{Graphical User Interface}\label{annotations-for-the-graphical-user-inte
The $\mathit{view}$ is a \lstinline!String! literal where \lstinline!"info"! means class documentation (``information''), \lstinline!"diagram"! means diagram view, \lstinline!"icon"! means icon view, and \lstinline!"text"! means Modelica source code (``text'').

\begin{lstlisting}
Boolean DocumentationClass = true;
Boolean DocumentationClass;
\end{lstlisting}%
\annotationindex{DocumentationClass}

Only allowed as class annotation on any kind of class and implies that this class and all classes within it are treated as having the annotation \lstinline!preferredView = "info"!.
Only allowed as class annotation on any kind of class and if set to \lstinline!true! implies that this class and all classes within it are treated as having the annotation \lstinline!preferredView = "info"!.
If the annotation \lstinline!preferredView! is explicitly set for a class, it has precedence over a \lstinline!DocumentationClass! annotation.

\begin{nonnormative}
Expand Down

0 comments on commit efff72f

Please sign in to comment.