Package br.unip.aps.estruturas
Record Class MergeSortParalelo.Medicao
java.lang.Object
java.lang.Record
br.unip.aps.estruturas.MergeSortParalelo.Medicao
- Enclosing class:
MergeSortParalelo
public static record MergeSortParalelo.Medicao(int threads, double mediaMs, double speedup, double eficiencia, double fracaoSerial, OperationMetrics metricas, boolean ordenado)
extends Record
Tempo e ganho com um numero de threads.
-
Constructor Summary
ConstructorsConstructorDescriptionMedicao(int threads, double mediaMs, double speedup, double eficiencia, double fracaoSerial, OperationMetrics metricas, boolean ordenado) Creates an instance of aMedicaorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theeficienciarecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefracaoSerialrecord component.final inthashCode()Returns a hash code value for this object.doublemediaMs()Returns the value of themediaMsrecord component.metricas()Returns the value of themetricasrecord component.booleanordenado()Returns the value of theordenadorecord component.doublespeedup()Returns the value of thespeeduprecord component.intthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Medicao
public Medicao(int threads, double mediaMs, double speedup, double eficiencia, double fracaoSerial, OperationMetrics metricas, boolean ordenado) Creates an instance of aMedicaorecord class.- Parameters:
threads- the value for thethreadsrecord componentmediaMs- the value for themediaMsrecord componentspeedup- the value for thespeeduprecord componenteficiencia- the value for theeficienciarecord componentfracaoSerial- the value for thefracaoSerialrecord componentmetricas- the value for themetricasrecord componentordenado- the value for theordenadorecord 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 '=='. -
threads
public int threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-
mediaMs
public double mediaMs()Returns the value of themediaMsrecord component.- Returns:
- the value of the
mediaMsrecord component
-
speedup
public double speedup()Returns the value of thespeeduprecord component.- Returns:
- the value of the
speeduprecord component
-
eficiencia
public double eficiencia()Returns the value of theeficienciarecord component.- Returns:
- the value of the
eficienciarecord component
-
fracaoSerial
public double fracaoSerial()Returns the value of thefracaoSerialrecord component.- Returns:
- the value of the
fracaoSerialrecord component
-
metricas
Returns the value of themetricasrecord component.- Returns:
- the value of the
metricasrecord component
-
ordenado
public boolean ordenado()Returns the value of theordenadorecord component.- Returns:
- the value of the
ordenadorecord component
-