Previous Topic: Constraints

Next Topic: External Form—Input and Output

SET OF Type

The SET OF type allows the definition of either an arbitrary or fixed number of items of the same type, where order is not important. The definition includes only the type of the SET item, and does not name the component, for example:

PokerHand ::= SET OF Cards

In NCL, SET OF items are referenced by index only, within their parent structure. In the example above, the following index values are used to reference the set items of a component named card of type PokerHand:

card.{1}
card.{2}
...
card.{n}