Record Class AnaliseComplexidade.Estimativa

java.lang.Object
java.lang.Record
br.unip.aps.benchmark.AnaliseComplexidade.Estimativa
Enclosing class:
AnaliseComplexidade

public static record AnaliseComplexidade.Estimativa(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, double expoenteTempo, double expoenteComparacoes, double r2Tempo, String classificacao) extends Record
Expoente empirico de um algoritmo em um criterio/cenario.
  • Constructor Details

    • Estimativa

      public Estimativa(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, double expoenteTempo, double expoenteComparacoes, double r2Tempo, String classificacao)
      Creates an instance of a Estimativa record class.
      Parameters:
      algoritmo - the value for the algoritmo record component
      criterio - the value for the criterio record component
      cenario - the value for the cenario record component
      expoenteTempo - the value for the expoenteTempo record component
      expoenteComparacoes - the value for the expoenteComparacoes record component
      r2Tempo - the value for the r2Tempo record component
      classificacao - the value for the classificacao 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.
    • algoritmo

      public String algoritmo()
      Returns the value of the algoritmo record component.
      Returns:
      the value of the algoritmo record component
    • criterio

      public CriterioOrdenacao criterio()
      Returns the value of the criterio record component.
      Returns:
      the value of the criterio record component
    • cenario

      public CenarioEntrada cenario()
      Returns the value of the cenario record component.
      Returns:
      the value of the cenario record component
    • expoenteTempo

      public double expoenteTempo()
      Returns the value of the expoenteTempo record component.
      Returns:
      the value of the expoenteTempo record component
    • expoenteComparacoes

      public double expoenteComparacoes()
      Returns the value of the expoenteComparacoes record component.
      Returns:
      the value of the expoenteComparacoes record component
    • r2Tempo

      public double r2Tempo()
      Returns the value of the r2Tempo record component.
      Returns:
      the value of the r2Tempo record component
    • classificacao

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