next up previous
Next: Global Signature Up: Description Class Previous: Section FORMAL PARAMETERS

   
Section BASE CLASSES

As already mentioned a description class can be derived from another one. Consider for example a description class of a binary sensor. This is a sensor that can deliver the values 0 and 1. For instance a motion detector is a binary sensor. The following example illustrates the derivation of a binary sensor from a general sensor (see the example of a domain parameter). The general description classes from which a more concrete class inherits are mentioned in the BASE CLASSES section.

\fbox{
\begin{minipage}{13cm}
\textbf{\large Description Class BinarySensor}
\pa...
...ble measured values.
\end{tabular}\par \hspace*{1cm}$\vdots$\par \end{minipage}}

Example: Inheritance

If a description class is derived from another one, the concrete class inherits all designations and properties of the general class. In the example above this means that all designations introduced in the description class Sensor can also be used in the description class BinarySensor. Moreover, all statements of the DOMAIN KNOWLEDGE and REQUIREMENTS/SPECIFICATIONS sections of the Sensor class are also valid in the BinarySensor class.



Forest-System
1999-06-04