public final class LabsProblem extends java.lang.Object implements ProblemDefinition
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INTEGER_DISPLAY_FORMAT |
private int |
problemSize |
static java.lang.String |
RUN_LENGTH_DISPLAY_FORMAT |
Constructor and Description |
---|
LabsProblem(int problemSize)
Instantiates a new LABS problem.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
problemSize() |
java.lang.String |
representation() |
public static final java.lang.String RUN_LENGTH_DISPLAY_FORMAT
public static final java.lang.String INTEGER_DISPLAY_FORMAT
private final int problemSize
public LabsProblem(int problemSize)
Instantiates a new LABS problem.
problemSize
- the sequence length L defining the problem sizepublic int problemSize()
public java.lang.String representation()
representation
in interface ProblemDefinition
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object