Record Class BenchmarkResult

java.lang.Object
java.lang.Record
br.unip.aps.benchmark.BenchmarkResult

public record BenchmarkResult(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, int n, int repeticoes, double mediaNs, double desvioNs, long minNs, long maxNs, long comparacoes, long trocas, long atribuicoes, long acessos, boolean verificado) extends Record
Medicao de um caso do benchmark (um algoritmo, um criterio, um cenario, um tamanho).
  • Constructor Summary

    Constructors
    Constructor
    Description
    BenchmarkResult(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, int n, int repeticoes, double mediaNs, double desvioNs, long minNs, long maxNs, long comparacoes, long trocas, long atribuicoes, long acessos, boolean verificado)
    Creates an instance of a BenchmarkResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the acessos record component.
    Returns the value of the algoritmo record component.
    long
    Returns the value of the atribuicoes record component.
    Returns the value of the cenario record component.
    double
     
    long
    Returns the value of the comparacoes record component.
    Returns the value of the criterio record component.
    double
     
    double
    Returns the value of the desvioNs record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the maxNs record component.
    double
     
    double
    Returns the value of the mediaNs record component.
    long
    Returns the value of the minNs record component.
    int
    n()
    Returns the value of the n record component.
    double
     
    double
     
    int
    Returns the value of the repeticoes record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the trocas record component.
    boolean
    Returns the value of the verificado record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BenchmarkResult

      public BenchmarkResult(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, int n, int repeticoes, double mediaNs, double desvioNs, long minNs, long maxNs, long comparacoes, long trocas, long atribuicoes, long acessos, boolean verificado)
      Creates an instance of a BenchmarkResult 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
      n - the value for the n record component
      repeticoes - the value for the repeticoes record component
      mediaNs - the value for the mediaNs record component
      desvioNs - the value for the desvioNs record component
      minNs - the value for the minNs record component
      maxNs - the value for the maxNs record component
      comparacoes - the value for the comparacoes record component
      trocas - the value for the trocas record component
      atribuicoes - the value for the atribuicoes record component
      acessos - the value for the acessos record component
      verificado - the value for the verificado record component
  • Method Details

    • mediaMs

      public double mediaMs()
    • desvioMs

      public double desvioMs()
    • coeficienteVariacao

      public double coeficienteVariacao()
    • referenciaNLogN

      public double referenciaNLogN()
    • referenciaN2

      public double referenciaN2()
    • 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
    • n

      public int n()
      Returns the value of the n record component.
      Returns:
      the value of the n record component
    • repeticoes

      public int repeticoes()
      Returns the value of the repeticoes record component.
      Returns:
      the value of the repeticoes record component
    • mediaNs

      public double mediaNs()
      Returns the value of the mediaNs record component.
      Returns:
      the value of the mediaNs record component
    • desvioNs

      public double desvioNs()
      Returns the value of the desvioNs record component.
      Returns:
      the value of the desvioNs record component
    • minNs

      public long minNs()
      Returns the value of the minNs record component.
      Returns:
      the value of the minNs record component
    • maxNs

      public long maxNs()
      Returns the value of the maxNs record component.
      Returns:
      the value of the maxNs record component
    • comparacoes

      public long comparacoes()
      Returns the value of the comparacoes record component.
      Returns:
      the value of the comparacoes record component
    • trocas

      public long trocas()
      Returns the value of the trocas record component.
      Returns:
      the value of the trocas record component
    • atribuicoes

      public long atribuicoes()
      Returns the value of the atribuicoes record component.
      Returns:
      the value of the atribuicoes record component
    • acessos

      public long acessos()
      Returns the value of the acessos record component.
      Returns:
      the value of the acessos record component
    • verificado

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