Record Class IncrementalUnitsCapacityStudy.IncrementalStep
java.lang.Object
java.lang.Record
com.amalgamasimulation.studies.core.IncrementalUnitsCapacityStudy.IncrementalStep
- Enclosing class:
IncrementalUnitsCapacityStudy
public static record IncrementalUnitsCapacityStudy.IncrementalStep(IncrementalUnitsCapacityStudy study, int stepIndex, int parentStepIndex, ScenarioStudyStep baselineStudyStep, ScenarioStudyStep parentStudyStep, ScenarioStudyStep studyStep, String unitId, DistributionStatistics parentUtilization, DistributionStatistics baselineOutput, DistributionStatistics parentOutput)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIncrementalStep(IncrementalUnitsCapacityStudy study, int stepIndex, int parentStepIndex, ScenarioStudyStep baselineStudyStep, ScenarioStudyStep parentStudyStep, ScenarioStudyStep studyStep, String unitId, DistributionStatistics parentUtilization, DistributionStatistics baselineOutput, DistributionStatistics parentOutput) Creates an instance of aIncrementalSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaselineOutputrecord component.Returns the value of thebaselineStudySteprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.output()Output statistics of this incremented study step.Compares the output of this incremented step to the baseline scenario's output.Compares the output of this incremented step to the output of its parent scenario step.Returns the value of theparentOutputrecord component.intReturns the value of theparentStepIndexrecord component.Returns the value of theparentStudySteprecord component.Returns the value of theparentUtilizationrecord component.intReturns the value of thestepIndexrecord component.study()Returns the value of thestudyrecord component.Returns the value of thestudySteprecord component.final StringtoString()Returns a string representation of this record class.unitId()Returns the value of theunitIdrecord component.
-
Constructor Details
-
IncrementalStep
public IncrementalStep(IncrementalUnitsCapacityStudy study, int stepIndex, int parentStepIndex, ScenarioStudyStep baselineStudyStep, ScenarioStudyStep parentStudyStep, ScenarioStudyStep studyStep, String unitId, DistributionStatistics parentUtilization, DistributionStatistics baselineOutput, DistributionStatistics parentOutput) Creates an instance of aIncrementalSteprecord class.- Parameters:
study- the value for thestudyrecord componentstepIndex- the value for thestepIndexrecord componentparentStepIndex- the value for theparentStepIndexrecord componentbaselineStudyStep- the value for thebaselineStudySteprecord componentparentStudyStep- the value for theparentStudySteprecord componentstudyStep- the value for thestudySteprecord componentunitId- the value for theunitIdrecord componentparentUtilization- the value for theparentUtilizationrecord componentbaselineOutput- the value for thebaselineOutputrecord componentparentOutput- the value for theparentOutputrecord component
-
-
Method Details
-
output
Output statistics of this incremented study step. -
outputToBaselineComparison
Compares the output of this incremented step to the baseline scenario's output.- Returns:
- a
DistributionComparisonbetween this step and the baseline
-
outputToParentComparison
Compares the output of this incremented step to the output of its parent scenario step.- Returns:
- a
DistributionComparisonbetween this step and its parent step
-
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 '=='. -
study
Returns the value of thestudyrecord component.- Returns:
- the value of the
studyrecord component
-
stepIndex
public int stepIndex()Returns the value of thestepIndexrecord component.- Returns:
- the value of the
stepIndexrecord component
-
parentStepIndex
public int parentStepIndex()Returns the value of theparentStepIndexrecord component.- Returns:
- the value of the
parentStepIndexrecord component
-
baselineStudyStep
Returns the value of thebaselineStudySteprecord component.- Returns:
- the value of the
baselineStudySteprecord component
-
parentStudyStep
Returns the value of theparentStudySteprecord component.- Returns:
- the value of the
parentStudySteprecord component
-
studyStep
Returns the value of thestudySteprecord component.- Returns:
- the value of the
studySteprecord component
-
unitId
Returns the value of theunitIdrecord component.- Returns:
- the value of the
unitIdrecord component
-
parentUtilization
Returns the value of theparentUtilizationrecord component.- Returns:
- the value of the
parentUtilizationrecord component
-
baselineOutput
Returns the value of thebaselineOutputrecord component.- Returns:
- the value of the
baselineOutputrecord component
-
parentOutput
Returns the value of theparentOutputrecord component.- Returns:
- the value of the
parentOutputrecord component
-