abouttutorialspricingterms
Login

  • Quick start
  • Modelling and data generation (part 1)
  • Modelling and data generation (part 2)
  • Integration with Java
  • Integration with C++
  • Integration with C#
  • Integration with Python
  • Integration with Node.js
  • Examples

Documentation

  • JUnit runner
  • Export templates

Modelling and data generation, part 1

Contents

Prerequisites and syntax
Model editor
Classes and methods
Parameters and choices
Hierarchical choices
Randomized choices
User types
Constraints
Data generation
Data export

Hierarchical choices

Now we will add a parameter representing the first name. Let's name it firstName and change its type to String, as in the case of familyName.

In the case of family names, at least in English, the form doesn't determine the owner's gender. That is not the case of given names, so it may have sense to distinguish male and female names. Let's then add two choices to the firstName parameter: male and female. Do not bother to define values for these choices as they will never be used. Instead, add three choices to both male and female choices:



  • male:

    • short (John)
    • long (Alexander)
    • two names (Jean Pierre)
  • female:

    • short (Eva)
    • long (Margaret)
    • two names (Mary Jane)



Choices that have other choices as children will be referred as abstract choices. Choices on the bottom of the hierarchy will be called leaf choices.