Record Class DisjunctProblemParams
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.problems.discrete.disjunct.DisjunctProblemParams
public record DisjunctProblemParams(int m, int n, int t, int f, double epsilon, DisjunctEvaluationConfig evaluation)
extends Record
Shared typed parameter parsing for DM/RM/ADM problem plugins.
-
Constructor Summary
ConstructorsConstructorDescriptionDisjunctProblemParams(int m, int n, int t, int f, double epsilon, DisjunctEvaluationConfig evaluation) Creates an instance of aDisjunctProblemParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleepsilon()Returns the value of theepsilonrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationrecord component.intExpected genotype length for column-major encoding.intf()Returns the value of thefrecord component.static DisjunctProblemParamsParses common problem parameters from YAML plugin map.final inthashCode()Returns a hash code value for this object.intm()Returns the value of themrecord component.intn()Returns the value of thenrecord component.intt()Returns the value of thetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DisjunctProblemParams
public DisjunctProblemParams(int m, int n, int t, int f, double epsilon, DisjunctEvaluationConfig evaluation) Creates an instance of aDisjunctProblemParamsrecord class.- Parameters:
m- the value for themrecord componentn- the value for thenrecord componentt- the value for thetrecord componentf- the value for thefrecord componentepsilon- the value for theepsilonrecord componentevaluation- the value for theevaluationrecord component
-
-
Method Details
-
from
Parses common problem parameters from YAML plugin map.Supported aliases:
m|rows,n|columns,t,f,epsilon. -
expectedGenomeLength
public int expectedGenomeLength()Expected genotype length for column-major encoding. -
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. -
m
public int m()Returns the value of themrecord component.- Returns:
- the value of the
mrecord component
-
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
t
public int t()Returns the value of thetrecord component.- Returns:
- the value of the
trecord component
-
f
public int f()Returns the value of thefrecord component.- Returns:
- the value of the
frecord component
-
epsilon
public double epsilon()Returns the value of theepsilonrecord component.- Returns:
- the value of the
epsilonrecord component
-
evaluation
Returns the value of theevaluationrecord component.- Returns:
- the value of the
evaluationrecord component
-