next up previous contents index
Next: Matrix element Up: Elements of the Fib Previous: Retrieve domain properties   Contents   Index


Set-element


The set element assigns sets of values in succession to a number of variables. The variables apply everywhere in the subobject.


Syntax:

\begin{eqnarray*}
Obj &=& set( (Variable_1, \ldots, Variable_n), [DomainNr,]\\
...
...}, \ldots, W_{n.1}), \ldots,(W_{1.k}, \ldots, W_{n.k}) ), Obj_1)
\end{eqnarray*}


Description of the elements:

The variables $(Variable_1, \ldots, Variable_n)$ are sequentially assigned to the individual sets of values of $(W_{1.g}, \ldots, W_{n.g})$. Where the variable $Variable_i$ will only be set to the values $W_{i.g}$ ($g=1, \ldots k$). Thus there are $k$ bindings of variables, in which the variable $Variable_i$ is first set to the value of $W_{i.1}$, after this to $W_{i.2}$, etc. . If an element $W_{i.g}$ is a variable, the $Variable_i$ will be set to the value of variable of $W_{i.g}$ .


Example:


Note: Not all dependencies of several variables can be easily represented by functions. Therefore, the set element offer the ability to assign multiple variables sequentially to sets of values.

It is conceivable, for example, to create a database object, which codes a character set ("font"). With the input parameters/variables of this database object the letter and the display position of the letters are assignable. However, it can not be assumed, that the input variables for the letters of a text are in a simple functional dependenc. With the set element the input variables can be easily assigned to the values for each letter of the text.


next up previous contents index
Next: Matrix element Up: Elements of the Fib Previous: Retrieve domain properties   Contents   Index
Betti Österholz 2013-02-13