Package org.acemq.workloads
Record Class RampReport.Step
java.lang.Object
java.lang.Record
org.acemq.workloads.RampReport.Step
- Record Components:
rate- the offered raterefinement- whether this was a bisection step rather than one of the climbreport- what the step measuredstoppedBy- the rules that made it bad, comma-separated, or null when it was sustained
- Enclosing class:
RampReport
public static record RampReport.Step(long rate, boolean refinement, WorkloadReport report, String stoppedBy)
extends Record
One step.
-
Constructor Summary
ConstructorsConstructorDescriptionStep(long rate, boolean refinement, WorkloadReport report, String stoppedBy) Creates an instance of aSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longrate()Returns the value of theraterecord component.booleanReturns the value of therefinementrecord component.report()Returns the value of thereportrecord component.Returns the value of thestoppedByrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Step
Creates an instance of aSteprecord class.- Parameters:
rate- the value for theraterecord componentrefinement- the value for therefinementrecord componentreport- the value for thereportrecord componentstoppedBy- the value for thestoppedByrecord component
-
-
Method Details
-
sustained
public boolean sustained()- Returns:
- whether every rule and objective held at this rate
-
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 '=='. -
rate
public long rate()Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
refinement
public boolean refinement()Returns the value of therefinementrecord component.- Returns:
- the value of the
refinementrecord component
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-
stoppedBy
Returns the value of thestoppedByrecord component.- Returns:
- the value of the
stoppedByrecord component
-