Record Class InputVarietyDenominator

java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.inputvariety.InputVarietyDenominator
Record Components:
floor - the 1-wise "each-choice" floor = Σ leaf class-counts — the headline and future gate basis; the count of value-classes a competent suite must exercise at least once. 0 when exempt.
pairwiseDenominator - the pairwise "opportunity ceiling" = Σ over leaf pairs (i<j) of classCount(li) × classCount(lj); for a single leaf it is that leaf's class count; informational (§4.6), never the gate target. 0 when exempt.
perParameterConfidence - one ClassConfidence per LEAF, in flattened order — a pair cell is EXACT iff both its leaves are (§4.3).
exempt - true when the construct has no input dimension at all (k == 0 with no receiver) — e.g. a no-arg function or constructor.

public record InputVarietyDenominator(long floor, long pairwiseDenominator, List<ClassConfidence> perParameterConfidence, boolean exempt) extends Record
The input-variation figures for one public construct, computed over its flattened leaf dimensions (records decompose to fields; receiver-p0 included) — design §4.1 / §4.6. Two numbers fall out of the one leaf list:
  • Constructor Details

    • InputVarietyDenominator

      public InputVarietyDenominator(long floor, long pairwiseDenominator, List<ClassConfidence> perParameterConfidence, boolean exempt)
      Creates an instance of a InputVarietyDenominator record class.
      Parameters:
      floor - the value for the floor record component
      pairwiseDenominator - the value for the pairwiseDenominator record component
      perParameterConfidence - the value for the perParameterConfidence record component
      exempt - the value for the exempt record component
  • Method Details

    • forNoParameters

      public static InputVarietyDenominator forNoParameters()
      The exempt figures — a construct with no input dimension (k == 0, no receiver).
    • 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 the compare method from their corresponding wrapper classes.
      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.
    • floor

      public long floor()
      Returns the value of the floor record component.
      Returns:
      the value of the floor record component
    • pairwiseDenominator

      public long pairwiseDenominator()
      Returns the value of the pairwiseDenominator record component.
      Returns:
      the value of the pairwiseDenominator record component
    • perParameterConfidence

      public List<ClassConfidence> perParameterConfidence()
      Returns the value of the perParameterConfidence record component.
      Returns:
      the value of the perParameterConfidence record component
    • exempt

      public boolean exempt()
      Returns the value of the exempt record component.
      Returns:
      the value of the exempt record component