Record Class NumericAttributeVariationAxis
java.lang.Object
java.lang.Record
com.amalgamasimulation.studies.core.NumericAttributeVariationAxis
- All Implemented Interfaces:
NumericVariationAxis
public record NumericAttributeVariationAxis(String typeName, String fieldName, boolean absolute, NumericVariationScope scope, List<String> objectIdentifiers)
extends Record
implements NumericVariationAxis
Represents a variation axis for a numeric attribute in a simulation study.
This axis defines a sequence of values between the minimum and the maximum,
spaced by the step, for applying changes to a specific numeric field of EMF
data model objects.
The variation can be either:
- Absolute: The values generated by this axis directly replace the attribute's value.
- Relative: The values are treated as multipliers (e.g., 1.1 = +10%) applied to the attribute’s base value.
- Author:
- Andrey Malykhanov
-
Constructor Summary
ConstructorsConstructorDescriptionNumericAttributeVariationAxis(String typeName, String fieldName, boolean absolute, NumericVariationScope scope, List<String> objectIdentifiers) Creates an instance of aNumericAttributeVariationAxisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute()Returns the value of theabsoluterecord component.createModification(double value) Returns a human-readable description of the variation axis.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectIdentifiersrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.amalgamasimulation.studies.core.NumericVariationAxis
values
-
Constructor Details
-
NumericAttributeVariationAxis
public NumericAttributeVariationAxis(String typeName, String fieldName, boolean absolute, NumericVariationScope scope, List<String> objectIdentifiers) Creates an instance of aNumericAttributeVariationAxisrecord class.- Parameters:
typeName- the value for thetypeNamerecord componentfieldName- the value for thefieldNamerecord componentabsolute- the value for theabsoluterecord componentscope- the value for thescoperecord componentobjectIdentifiers- the value for theobjectIdentifiersrecord component
-
-
Method Details
-
description
Returns a human-readable description of the variation axis.- Specified by:
descriptionin interfaceNumericVariationAxis- Returns:
- a string such as
"Absolute variation of setupDuration of DrillingMachineType"
-
createModification
- Specified by:
createModificationin interfaceNumericVariationAxis
-
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 '=='. -
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
absolute
public boolean absolute()Returns the value of theabsoluterecord component.- Returns:
- the value of the
absoluterecord component
-
scope
Returns the value of thescoperecord component.- Specified by:
scopein interfaceNumericVariationAxis- Returns:
- the value of the
scoperecord component
-
objectIdentifiers
Returns the value of theobjectIdentifiersrecord component.- Returns:
- the value of the
objectIdentifiersrecord component
-