-
Notifications
You must be signed in to change notification settings - Fork 0
Selection
A selection specifies a Restriction Condition which includes the cardinality of the selection and all criteria to be applied.
Here is an example selection statement
Here is the grammar:

CARD indicates whether one or many instances will be selected. Many means that all instances satisfying the selection criteria will be selected. One will just pick at most one arbitrary instance from among the qualifying instances.
NOTE: Considering allowing a name as well so that any number could be specified. That way you could get the top 3 or top 10 or whatever.
The complete set of selection critieria is provided as a scalar expression. During metamodel population it will be necessary to validate th expression to verify that attribute names are present and that only defined critiera are expressed.
Copyright 2020, 2021, 2022, 2023, 2025 © Leon Starr under MIT Open Source License
- Why they are problematic
- Instance attribute creation values
- Boolean values
- Special values
- Enumerated values
- Action block
- Statement
- Single line action
- Multiple dependent actions on a single line
- An action spread across multiple lines
- A conditional group of single line actions
- Comments
- Finding instances
- Attribute access
- Creation and deletion
- Subclass migration
- Creating a table from a class
- Creating a table with a definition
- Converting a table into a class
- Set operations on tables
- Set comparisons on tables
- Join
- Rename
- Extend
- Aggregation
- Rank
- Image
- Input values
- Signatures and name doubling
- Output values
- Execution order
- Sequential execution
- Conditional execution
- Signals
- Scrall has no for_each action
- Iteration