Module dev.civl.mc

Interface DomainIteratorStatement

All Superinterfaces:
Sourceable, Statement

public interface DomainIteratorStatement extends Statement

Updates the loop variables with the next element of a domain.

  • Method Details

    • domain

      Expression domain()
      Returns the iteration domain expression, which is the expression following the colon.
      Returns:
      the iteration domain expression
    • loopVariables

      List<Variable> loopVariables()
      Returns the list of loop variables, ordered from left to right.
      Returns:
      the list of loop variables
    • getLiteralDomCounter

      Variable getLiteralDomCounter()
      Returns a counter variable used for iterating on a literal domain step by step.
      Returns:
      the variable expression of the counter