Record Class ConstraintInteractionAnalysis.ContextResult

java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintInteractionAnalysis.ContextResult
Enclosing class:
ConstraintInteractionAnalysis

public static record ConstraintInteractionAnalysis.ContextResult(String contextFqn, ConstraintInteractionAnalysis.Status status, List<String> constraintFqns, List<ConstraintInteractionAnalysis.Gap> unsupported, List<ConstraintInteractionAnalysis.Domain> domains, int examinedStates, Map<String,Object> scalarAssignment, List<String> undefinedAttributes, String reasonCode) extends Record
  • Constructor Details

    • ContextResult

      public ContextResult(String contextFqn, ConstraintInteractionAnalysis.Status status, List<String> constraintFqns, List<ConstraintInteractionAnalysis.Gap> unsupported, List<ConstraintInteractionAnalysis.Domain> domains, int examinedStates, Map<String,Object> scalarAssignment, List<String> undefinedAttributes, String reasonCode)
      Creates an instance of a ContextResult record class.
      Parameters:
      contextFqn - the value for the contextFqn record component
      status - the value for the status record component
      constraintFqns - the value for the constraintFqns record component
      unsupported - the value for the unsupported record component
      domains - the value for the domains record component
      examinedStates - the value for the examinedStates record component
      scalarAssignment - the value for the scalarAssignment record component
      undefinedAttributes - the value for the undefinedAttributes record component
      reasonCode - the value for the reasonCode record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contextFqn

      public String contextFqn()
      Returns the value of the contextFqn record component.
      Returns:
      the value of the contextFqn record component
    • status

      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • constraintFqns

      public List<String> constraintFqns()
      Returns the value of the constraintFqns record component.
      Returns:
      the value of the constraintFqns record component
    • unsupported

      public List<ConstraintInteractionAnalysis.Gap> unsupported()
      Returns the value of the unsupported record component.
      Returns:
      the value of the unsupported record component
    • domains

      Returns the value of the domains record component.
      Returns:
      the value of the domains record component
    • examinedStates

      public int examinedStates()
      Returns the value of the examinedStates record component.
      Returns:
      the value of the examinedStates record component
    • scalarAssignment

      public Map<String,Object> scalarAssignment()
      Returns the value of the scalarAssignment record component.
      Returns:
      the value of the scalarAssignment record component
    • undefinedAttributes

      public List<String> undefinedAttributes()
      Returns the value of the undefinedAttributes record component.
      Returns:
      the value of the undefinedAttributes record component
    • reasonCode

      public String reasonCode()
      Returns the value of the reasonCode record component.
      Returns:
      the value of the reasonCode record component