Skip to content

Commit

Permalink
Add built-in scalar types
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 2, 2020
1 parent ef7e263 commit edb4eb0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ \section{Predefined Types and Classes}\label{predefined-types-and-classes}

\subsection{Real Type}\label{real-type}

The following is the predefined \lstinline!Real! type:
The following is the predefined \lstinline!Real!\index{Real@\indexinline{Real}} type:
\begin{lstlisting}[language=modelica]
type Real // Note: Defined with Modelica syntax although predefined
RealType value; // Accessed without dot-notation
Expand Down Expand Up @@ -1341,7 +1341,8 @@ \subsection{Real Type}\label{real-type}
\end{nonnormative}

\subsection{Integer Type}\label{integer-type}
The following is the predefined \lstinline!Integer! type:

The following is the predefined \lstinline!Integer!\index{Integer@\indexinline{Integer}} type:
\begin{lstlisting}[language=modelica]
type Integer // Note: Defined with Modelica syntax although predefined
IntegerType value; // Accessed without dot-notation
Expand All @@ -1358,7 +1359,8 @@ \subsection{Integer Type}\label{integer-type}
The minimal recommended number range for \lstinline!IntegerType! is from -2147483648 to +2147483647, corresponding to a two's-complement 32-bit integer implementation.

\subsection{Boolean Type}\label{boolean-type}
The following is the predefined \lstinline!Boolean! type:

The following is the predefined \lstinline!Boolean!\index{Boolean@\indexinline{Boolean}} type:
\begin{lstlisting}[language=modelica]
type Boolean // Note: Defined with Modelica syntax although predefined
BooleanType value; // Accessed without dot-notation
Expand All @@ -1371,7 +1373,7 @@ \subsection{Boolean Type}\label{boolean-type}

\subsection{String Type}\label{string-type}

The following is the predefined \lstinline!String! type:
The following is the predefined \lstinline!String!\index{String@\indexinline{String}} type:
\begin{lstlisting}[language=modelica]
type String // Note: Defined with Modelica syntax although predefined
StringType value; // Accessed without dot-notation
Expand All @@ -1384,7 +1386,7 @@ \subsection{String Type}\label{string-type}

\subsection{Enumeration Types}\label{enumeration-types}

A declaration of the form
A declaration of the form\index{enumeration@\indexinline{enumeration}}
\begin{lstlisting}[language=modelica]
type E = enumeration([enum-list]);
\end{lstlisting}
Expand Down Expand Up @@ -1551,13 +1553,11 @@ \subsubsection{Type Conversion of Integer to Enumeration Values}\label{type-conv
\end{lstlisting}
\end{example}

\subsubsection{Unspecified enumeration}\label{unspecified-enumeration}

An enumeration type defined using \lstinline!enumeration(:)! is unspecified and can
be used as a replaceable enumeration type that can be freely redeclared
to any enumeration type. There can be no enumeration variables declared
using \lstinline!enumeration(:)! in a simulation model.
\subsubsection{Unspecified enumeration}\label{unspecified-enumeration}

An enumeration type defined using \lstinline!enumeration(:)!\index{enumeration@\indexinline{enumeration}!unspecified} is unspecified and can be used as a replaceable enumeration type that can be freely redeclared to any enumeration type.
There can be no enumeration variables declared using \lstinline!enumeration(:)! in a simulation model.


\subsection{Attributes start, fixed, nominal, and unbounded}\label{attributes-start-fixed-nominal-and-unbounded}
Expand Down

0 comments on commit edb4eb0

Please sign in to comment.