fuzzydl.milp
Class Term

java.lang.Object
  extended by fuzzydl.milp.Term

public class Term
extends java.lang.Object

Term, a pair (coefficiente, variable)


Constructor Summary
Term(double coeff, Variable var)
           
 
Method Summary
 boolean equals(java.lang.Object term2)
           
 double getCoeff()
          Gets the coefficient of the term.
 Variable getVar()
          Gets the variable of the term.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Term

public Term(double coeff,
            Variable var)
Method Detail

getVar

public Variable getVar()
Gets the variable of the term.

Returns:
Variable.

getCoeff

public double getCoeff()
Gets the coefficient of the term.

Returns:
Coefficient.

equals

public boolean equals(java.lang.Object term2)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object