Class ConstraintType

java.lang.Object
net.ssehub.easy.varModel.model.datatypes.BasisDatatype
net.ssehub.easy.varModel.model.datatypes.ConstraintType
All Implemented Interfaces:
IDatatype, IDatatypeVisitable

public class ConstraintType extends BasisDatatype
Defines the basis datatype for holding constraints. This datatype allows to define varying constraints (required by HIS).
Author:
Holger Eichelberger
  • Field Details

    • TYPE

      public static final IDatatype TYPE
    • TYPE_OF

      public static final Operation TYPE_OF
    • EQUALS

      public static final Operation EQUALS
    • UNEQUALS

      public static final Operation UNEQUALS
    • UNEQUALS_ALIAS

      public static final Operation UNEQUALS_ALIAS
    • ASSIGNMENT

      public static final Operation ASSIGNMENT
    • IS_DEFINED

      public static final Operation IS_DEFINED
    • IF_DEFINED

      public static final Operation IF_DEFINED
  • Constructor Details

    • ConstraintType

      private ConstraintType()
      Constructor for a new ConstraintType.
  • Method Details

    • accept

      public void accept(IDatatypeVisitor visitor)
      Description copied from interface: IDatatypeVisitable
      Accepts a specialized visitor for creating a textual representation of the identity of this type.
      Specified by:
      accept in interface IDatatypeVisitable
      Specified by:
      accept in class BasisDatatype
      Parameters:
      visitor - the visitor to accept
    • isAssignableFrom

      public boolean isAssignableFrom(IDatatype type)
      Description copied from class: BasisDatatype
      Determines if the data type represented by this object is either the same as, or is a supertype of type.
      Specified by:
      isAssignableFrom in interface IDatatype
      Overrides:
      isAssignableFrom in class BasisDatatype
      Parameters:
      type - the type being checked
      Returns:
      true if this type is either the same or a supertype of type, true else
    • isConstraint

      public static boolean isConstraint(IDatatype type)
      Returns whether type is a constraint. This method is required as constraints are assignable to Boolean.
      Parameters:
      type - the type
      Returns:
      true in case of a constraint false else