Package br.unip.aps.benchmark
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 Summary
ConstructorsConstructorDescriptionEstimativa(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, double expoenteTempo, double expoenteComparacoes, double r2Tempo, String classificacao) Creates an instance of aEstimativarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgoritmorecord component.cenario()Returns the value of thecenariorecord component.Returns the value of theclassificacaorecord component.criterio()Returns the value of thecriteriorecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexpoenteComparacoesrecord component.doubleReturns the value of theexpoenteTemporecord component.final inthashCode()Returns a hash code value for this object.doubler2Tempo()Returns the value of ther2Temporecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Estimativa
public Estimativa(String algoritmo, CriterioOrdenacao criterio, CenarioEntrada cenario, double expoenteTempo, double expoenteComparacoes, double r2Tempo, String classificacao) Creates an instance of aEstimativarecord class.- Parameters:
algoritmo- the value for thealgoritmorecord componentcriterio- the value for thecriteriorecord componentcenario- the value for thecenariorecord componentexpoenteTempo- the value for theexpoenteTemporecord componentexpoenteComparacoes- the value for theexpoenteComparacoesrecord componentr2Tempo- the value for ther2Temporecord componentclassificacao- the value for theclassificacaorecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
algoritmo
Returns the value of thealgoritmorecord component.- Returns:
- the value of the
algoritmorecord component
-
criterio
Returns the value of thecriteriorecord component.- Returns:
- the value of the
criteriorecord component
-
cenario
Returns the value of thecenariorecord component.- Returns:
- the value of the
cenariorecord component
-
expoenteTempo
public double expoenteTempo()Returns the value of theexpoenteTemporecord component.- Returns:
- the value of the
expoenteTemporecord component
-
expoenteComparacoes
public double expoenteComparacoes()Returns the value of theexpoenteComparacoesrecord component.- Returns:
- the value of the
expoenteComparacoesrecord component
-
r2Tempo
public double r2Tempo()Returns the value of ther2Temporecord component.- Returns:
- the value of the
r2Temporecord component
-
classificacao
Returns the value of theclassificacaorecord component.- Returns:
- the value of the
classificacaorecord component
-