|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.satdecoding.Term
public class Term
The Term is an element of the linear Constraint. The
Term is an integer coefficient times a Literal.
| Field Summary | |
|---|---|
protected int |
coeff
|
protected Literal |
lit
|
| Constructor Summary | |
|---|---|
Term(int coeff,
Literal lit)
Constructs a Term. |
|
| Method Summary | |
|---|---|
Term |
copy()
Constructs a copy to this term. |
boolean |
equals(java.lang.Object other)
A Term equals another Term if they have equal
Literals and coefficients. |
int |
getCoefficient()
Returns the coefficient. |
Literal |
getLiteral()
Returns the literal. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final int coeff
protected final Literal lit
| Constructor Detail |
|---|
public Term(int coeff,
Literal lit)
Term.
coeff - the integer coefficientlit - the literal must not be null| Method Detail |
|---|
public int getCoefficient()
public Literal getLiteral()
public Term copy()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
Term equals another Term if they have equal
Literals and coefficients. This method checks, if this
Term equals the given other Object.
equals in class java.lang.Objectother - the other object
true if both are equal; false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||