Powered by Zoomin Software. For more details please contactZoomin

Rule Modeling

A basic collection operator

  • Last Updated: October 26, 2026
  • 1 minute read
    • Corticon
    • Version 7.1
    • Documentation

As an example, use the ->size operator.

For more information, see Size of collection.

This operator returns the number of elements in the collection that it follows in a rule expression. Using the collection from Visualization a Collection of Pilots:

aircraft.pilot -> size

returns the value of 2. In the expression:

aircraft.crewSize = aircraft.pilot -> size

crewSize (assumed to be an attribute of Aircraft) is assigned the value of 2.

Corticon Studio requires that all rules containing collection operators use unique aliases to represent the collections. How to use aliases to represent collections is described in greater detail in this chapter. A more accurate expression of the previous rule becomes:

plane.pilot -> size

or

plane.crewsize = plane.pilot -> size

where plane is an alias for the collection of pilots on aircraft.

Alert