Record Class DimacsCnf
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.problems.discrete.maxsat.DimacsCnf
Parsed DIMACS CNF formula.
-
Constructor Summary
ConstructorsConstructorDescriptionDimacsCnf(int variableCount, int[][] clauses) Creates an instance of aDimacsCnfrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[][]clauses()Returns the value of theclausesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DimacsCnfParses DIMACS text format.final StringtoString()Returns a string representation of this record class.intReturns the value of thevariableCountrecord component.
-
Constructor Details
-
DimacsCnf
public DimacsCnf(int variableCount, int[][] clauses) Creates an instance of aDimacsCnfrecord class.- Parameters:
variableCount- the value for thevariableCountrecord componentclauses- the value for theclausesrecord component
-
-
Method Details
-
parse
-
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. -
variableCount
public int variableCount()Returns the value of thevariableCountrecord component.- Returns:
- the value of the
variableCountrecord component
-
clauses
public int[][] clauses()Returns the value of theclausesrecord component.- Returns:
- the value of the
clausesrecord component
-