[Next] [Previous] [Up] [Top] [Contents]
Section 1 - Clauses, Types and Rules
1.13 Defining a Clause
Go back to the Type: UniversalAgent browser, and select the Definitions page. Click the command button of the mouse within the categories pane and select add category and then enter consumer in the dialogue box that appears. In the top right pane use the command button on the mouse to select add definition and enter noConsumers in the dialogue box. Then double click at the end of the text in the comment box to select it all and enter the comment the number of consumers in the model and accept it. Then click on the Syntax tab and click on the noConsumers rectangle in the bottom pane until it is highlighted (in yellow). Use the command button to select add type node and scroll down to select the Number type.Finally use the command button to select terminal node and accept this syntax button with the tick box. Check that the tick box is greyed.
You have now defined the keyword noConsumers as a clause which has one argument which has to be a number.
Select the general category and in a similar manner to the above enter a definition for consumer with the following syntax:

Also enter a suitable comment.
An introduction to SDML - Bruce Edmonds - 13 JUL 99
[Next] [Previous] [Up] [Top] [Contents]
Generated with CERN WebMaker