blob: b7f5e695df062950ddc6448ab6f6721bb764da31 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>5.8.4.&nbsp;Constrained Variable List</title><link href="style.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.72.0" name="generator"><link rel="start" href="index.html" title="The VIATRA2 Model Transformation Framework"><link rel="up" href="sec_Parameters.html" title="5.8.&nbsp;Parameters and Variable Lists"><link rel="prev" href="def_ActualParameter.html" title="5.8.3.&nbsp;Actual Parameters"><link rel="next" href="sec_VTCLTokens.html" title="6.&nbsp;Tokens in the VTCL Language"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">5.8.4.&nbsp;Constrained Variable List</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="def_ActualParameter.html">Prev</a>&nbsp;</td><th align="center" width="60%">5.8.&nbsp;Parameters and Variable Lists</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="sec_VTCLTokens.html">Next</a></td></tr></table><hr></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="def_ConstrainedVariableList"></a>5.8.4.&nbsp;Constrained Variable List</h4></div></div></div><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip: Description"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Tip]" src="images/tip.png"></td><th align="left"><a name="def_ConstrainedVariableList_Description"></a>Description</th></tr><tr><td valign="top" align="left"><p>
A <span class="strong"><strong>constrained variable list</strong></span>
<a name="N130D6" class="indexterm"></a>
is a list of variables where the
variables are placeholders for model elements. The possible values of these variables
are restricted by <a href="def_ContainmentConstraint.html" title="2.1.9.&nbsp;Containment Constraint">containment constraints</a>,
to certain locations in the containment hierarchy of the model space.
</p></td></tr></table></div><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Important: Syntax"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Important]" src="images/important.png"></td><th align="left"><a name="def_ConstrainedVariableList_Syntax"></a>Syntax</th></tr><tr><td valign="top" align="left"><pre class="programlisting">
ConstrainedVariablesOptAST ::= $empty
| ConstrainedVariablesAST
ConstrainedVariablesAST ::= <a href="def_Variable.html" title="5.7.2.&nbsp;Variable">VariableDefAST</a> <a href="def_ContainmentConstraint.html" title="2.1.9.&nbsp;Containment Constraint">ContainmentConstraintOptAST</a>
| ConstrainedVariablesAST COMMA <a href="def_Variable.html" title="5.7.2.&nbsp;Variable">VariableDefAST</a> <a href="def_ContainmentConstraint.html" title="2.1.9.&nbsp;Containment Constraint">ContainmentConstraintOptAST</a>
</pre></td></tr></table></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note: Semantics"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Note]" src="images/note.png"></td><th align="left"><a name="def_ConstrainedVariableList_Semantics"></a>Semantics</th></tr><tr><td valign="top" align="left"><p>
<span class="strong"><strong>Constrained variable lists</strong></span> are used in a
<a href="def_ChooseRule.html" title="4.3.6.&nbsp;Choose Rule">choose rule</a> or in a <a href="def_ForallRule.html" title="4.3.7.&nbsp;Forall Rule">forall rule</a>,
where the list of variables are quantified existentially or universally, respectively.
These variables can store only model elements and the <a href="def_ContainmentConstraint.html" title="2.1.9.&nbsp;Containment Constraint">containment constraint</a>
restricts the possible location of model elements with respect to their location in the containment hierarchy.
</p></td></tr></table></div><div class="highlights"><a name="def_ConstrainedVariableList_UsedBy"></a><p><b>Used By:&nbsp;</b>
<a href="def_ChooseRule.html" title="4.3.6.&nbsp;Choose Rule">choose rule</a>,
<a href="def_ForallRule.html" title="4.3.7.&nbsp;Forall Rule">forall rule</a>
</p></div><div class="highlights"><a name="def_ConstrainedVariableList_SeeAlso"></a><p><b>See Also:&nbsp;</b>
<a href="def_ContainmentConstraint.html" title="2.1.9.&nbsp;Containment Constraint">containment constraint</a>,
</p></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="def_ActualParameter.html">Prev</a>&nbsp;</td><td align="center" width="20%"><a accesskey="u" href="sec_Parameters.html">Up</a></td><td align="right" width="40%">&nbsp;<a accesskey="n" href="sec_VTCLTokens.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">5.8.3.&nbsp;Actual Parameters&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;6.&nbsp;Tokens in the VTCL Language</td></tr></table></div></body></html>