Record Class GrammarTreeViewService.GrammarTreeView

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.web.service.GrammarTreeViewService.GrammarTreeView
Enclosing class:
GrammarTreeViewService

public static record GrammarTreeViewService.GrammarTreeView(String runId, String representationType, String infix, String prefix, String latex, String dot, Map<String,Object> ast, Map<String,Object> metrics, List<Integer> decisionVector, List<Double> ercValues, String source) extends Record
Tree visualization payload returned by API.
  • Constructor Details

    • GrammarTreeView

      public GrammarTreeView(String runId, String representationType, String infix, String prefix, String latex, String dot, Map<String,Object> ast, Map<String,Object> metrics, List<Integer> decisionVector, List<Double> ercValues, String source)
      Creates an instance of a GrammarTreeView record class.
      Parameters:
      runId - the value for the runId record component
      representationType - the value for the representationType record component
      infix - the value for the infix record component
      prefix - the value for the prefix record component
      latex - the value for the latex record component
      dot - the value for the dot record component
      ast - the value for the ast record component
      metrics - the value for the metrics record component
      decisionVector - the value for the decisionVector record component
      ercValues - the value for the ercValues record component
      source - the value for the source 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • runId

      public String runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId record component
    • representationType

      public String representationType()
      Returns the value of the representationType record component.
      Returns:
      the value of the representationType record component
    • infix

      public String infix()
      Returns the value of the infix record component.
      Returns:
      the value of the infix record component
    • prefix

      public String prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component
    • latex

      public String latex()
      Returns the value of the latex record component.
      Returns:
      the value of the latex record component
    • dot

      public String dot()
      Returns the value of the dot record component.
      Returns:
      the value of the dot record component
    • ast

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

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

      public List<Integer> decisionVector()
      Returns the value of the decisionVector record component.
      Returns:
      the value of the decisionVector record component
    • ercValues

      public List<Double> ercValues()
      Returns the value of the ercValues record component.
      Returns:
      the value of the ercValues record component
    • source

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