Interface RangeConstraint

All Superinterfaces:
Constraint, ModelElement, NamedElement
All Known Implementing Classes:
DefaultRangeConstraint

public interface RangeConstraint extends Constraint
Restricts the value of a Property to a specific set of possible values.
Since:
SAMM 1.0.0
  • Method Details

    • getMinValue

      Optional<ScalarValue> getMinValue()
      Returns:
      the lower bound of the range. The type of the values is determined by the Type returned by RangeConstraint#getDataType().
    • getMaxValue

      Optional<ScalarValue> getMaxValue()
      Returns:
      the upper bound of the range. The type of the values is determined by the Type returned by RangeConstraint#getDataType().
    • getLowerBoundDefinition

      BoundDefinition getLowerBoundDefinition()
      Returns:
      the definition of how the lower bound of the range is to be interpreted. Possible values are 'OPEN', 'AT_LEAST' and 'GREATER_THAN'
      Since:
      SAMM 1.0.0
    • getUpperBoundDefinition

      BoundDefinition getUpperBoundDefinition()
      Returns:
      the definition of how the upper bound of the range is to be interpreted. Possible values are 'OPEN', 'AT_MOST' and 'LESS_THAN'
      Since:
      SAMM 1.0.0