Record Class CryptoProblemConfig
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.problems.crypto.CryptoProblemConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord component.Returns the value of thecriterionWeightsrecord component.final booleanIndicates whether some other object is "equal to" this one.static CryptoProblemConfigParses common crypto-problem parameters from plugin params map.final inthashCode()Returns a hash code value for this object.intmaxDepth()Returns the value of themaxDepthrecord component.intn()Returns the value of thenrecord component.double[]Returns the value of theobjectiveWeightsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CryptoProblemConfig
public CryptoProblemConfig(int n, List<String> criteria, Map<String, Double> criterionWeights, double[] objectiveWeights, int maxDepth) Creates an instance of aCryptoProblemConfigrecord class.- Parameters:
n- the value for thenrecord componentcriteria- the value for thecriteriarecord componentcriterionWeights- the value for thecriterionWeightsrecord componentobjectiveWeights- the value for theobjectiveWeightsrecord componentmaxDepth- the value for themaxDepthrecord component
-
-
Method Details
-
from
Parses common crypto-problem parameters from plugin params map. -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
criteria
-
criterionWeights
-
objectiveWeights
public double[] objectiveWeights()Returns the value of theobjectiveWeightsrecord component.- Returns:
- the value of the
objectiveWeightsrecord component
-
maxDepth
public int maxDepth()Returns the value of themaxDepthrecord component.- Returns:
- the value of the
maxDepthrecord component
-