Record Class NumericAttributeVariationAxis
java.lang.Object
java.lang.Record
com.amalgamasimulation.studies.core.NumericAttributeVariationAxis
public record NumericAttributeVariationAxis(String typeName, String fieldName, boolean absolute, double minValue, double maxValue, double step, List<String> objectIdentifiers)
extends Record
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, double minValue, double maxValue, double step, List<String> objectIdentifiers) Creates an instance of aNumericAttributeVariationAxisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute()Returns the value of theabsoluterecord component.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.doublemaxValue()Returns the value of themaxValuerecord component.doubleminValue()Returns the value of theminValuerecord component.Returns the value of theobjectIdentifiersrecord component.doublestep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.values()Returns the list of values to apply to the target attribute.
-
Constructor Details
-
NumericAttributeVariationAxis
public NumericAttributeVariationAxis(String typeName, String fieldName, boolean absolute, double minValue, double maxValue, double step, 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 componentminValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord componentstep- the value for thesteprecord componentobjectIdentifiers- the value for theobjectIdentifiersrecord component
-
-
Method Details
-
values
Returns the list of values to apply to the target attribute.- Returns:
- a list of
doublevalues representing the variation axis
-
description
Returns a human-readable description of the variation axis.- Returns:
- a string such as
"Absolute variation of setupDuration of DrillingMachineType"
-
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
-
minValue
public double minValue()Returns the value of theminValuerecord component.- Returns:
- the value of the
minValuerecord component
-
maxValue
public double maxValue()Returns the value of themaxValuerecord component.- Returns:
- the value of the
maxValuerecord component
-
step
public double step()Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
objectIdentifiers
Returns the value of theobjectIdentifiersrecord component.- Returns:
- the value of the
objectIdentifiersrecord component
-