Class NumericAttributeVariationAxis
java.lang.Object
com.amalgamasimulation.studies.core.FieldVariationAxis<Double>
com.amalgamasimulation.studies.core.NumericAttributeVariationAxis
- All Implemented Interfaces:
NumericVariationAxis,VariationAxis<Double>
public class NumericAttributeVariationAxis
extends FieldVariationAxis<Double>
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) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute()createModification(Double value) Returns a human-readable description of the variation axis.Methods inherited from class com.amalgamasimulation.studies.core.FieldVariationAxis
fieldName, objectIdentifiers, objectsDescription, scope, typeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.studies.core.VariationAxis
createModificationSettingUnitsCount, scope, values
-
Constructor Details
-
NumericAttributeVariationAxis
public NumericAttributeVariationAxis(String typeName, String fieldName, boolean absolute, NumericVariationScope scope, List<String> objectIdentifiers)
-
-
Method Details
-
absolute
public boolean absolute() -
description
Returns a human-readable description of the variation axis.- Specified by:
descriptionin interfaceVariationAxis<Double>- Overrides:
descriptionin classFieldVariationAxis<Double>- Returns:
- a string such as
"Absolute variation of setupDuration of DrillingMachineType"
-
createModification
- Specified by:
createModificationin interfaceVariationAxis<Double>
-