{% extends "generator/index.html" %} {% from "generator/_macros.html" import info, section, check_field %} {% block title %}Generate random feature models{% endblock %} {% block wizard_content %} {% if errors.get('global') %}
{{ errors['global'] }}
{% endif %}
{{ icon('layers', size=24, class_='gen-alert-icon') }}
Pick the UVL levels your models need. Boolean is always on, it's the base. Arithmetic unlocks numeric attributes, arithmetic constraints, feature cardinality and aggregates. Type unlocks typed attributes and string constraints. The later steps only show sections that apply to the levels you pick here.
{{ section('Language levels', 'Scope of expressivity. Minor levels depend on their major, turning a minor on automatically requires its major.') }}
Major levels
{{ check_field('boolean_level', 'Boolean', 'Always active. Core UVL level for Boolean features and relations.', values, default=True, disabled=True, hidden_fallback=True) }} {{ check_field('arithmetic_level', 'Arithmetic', 'Enables integer and real attributes and arithmetic constraints. Required for Feature cardinality and Aggregate functions.', values) }} {{ check_field('type_level', 'Type', 'Enables typed attributes. Required for String constraints.', values) }}
Minor levels
{{ check_field('group_cardinality', 'Group cardinality', 'Allows groups with arbitrary cardinality bounds (not just or/alt).', values) }} {{ check_field('feature_cardinality', 'Feature cardinality', 'A feature can be instantiated between Min and Max times. Requires Arithmetic.', values, hidden=(not values.get('arithmetic_level'))) }} {{ check_field('aggregate_functions', 'Aggregate functions', 'Enables sum()/avg() aggregate functions in arithmetic constraints. Requires Arithmetic.', values, hidden=(not values.get('arithmetic_level'))) }} {{ check_field('string_constraints', 'String constraints', 'Enables len() and string operators in constraints. Requires Type.', values, hidden=(not values.get('type_level'))) }}
{{ icon('info', size=24, class_='gen-icon-sm align-text-bottom me-1') }} You can always come back and change these, the wizard shows only the sections that apply.
{% endblock %}