Skip to content

Commit

Permalink
Clarify as discussed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Apr 21, 2022
1 parent f4d12b9 commit f9572a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,12 @@ \section{Annotations for Simulations}\label{annotations-for-simulations}
Real Tolerance = $\ldots{}$;
end experiment;
\end{lstlisting}
The \lstinline!experiment! annotation defines the default start time (\lstinline!StartTime!) in {[}s{]}, the default stop time (\lstinline!StopTime!) in {[}s{]}, the suitable time resolution for the result grid (\lstinline!Interval!) in {[}s{]}, and the default relative integration tolerance (\lstinline!Tolerance!) for simulation experiments to be carried out with the model or block at hand.
If \lstinline!StartTime! is not specified it is assumed to be \lstinline!0.0!.
The \lstinline!StopTime! has no default and must thus be specified.
The \lstinline!experiment! annotation defines the start time (\lstinline!StartTime!) in {[}s{]}, the stop time (\lstinline!StopTime!) in {[}s{]}, the suitable time resolution for the result grid (\lstinline!Interval!) in {[}s{]}, and the relative integration tolerance (\lstinline!Tolerance!) for simulation experiments to be carried out with the model or block at hand.
Tools should use appropriate defaults for \lstinline!Interval! and \lstinline!Tolerance! instead of the $\ldots{}$.
If \lstinline!StartTime! is not specified it is assumed to be \lstinline!0.0!.

If \lstinline!StopTime! is set the model should be a simulation model.
Tools can allow users to override these settings without modifying the model.
\end{semantics}
\end{annotationdefinition}

Expand Down

0 comments on commit f9572a8

Please sign in to comment.