net.sf.javailp
Class Term

java.lang.Object
  extended by net.sf.javailp.Term

public class Term
extends Object

The Term is the basic element the Linear. It is a coefficient and its variable.


Constructor Summary
Term(Object variable, Number coefficient)
          Constructs a Term.
 
Method Summary
 Number getCoefficient()
          Returns the coefficient.
 Object getVariable()
          Returns the variable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Term

public Term(Object variable,
            Number coefficient)
Constructs a Term.

Parameters:
variable - the variable
coefficient - the coefficient
Method Detail

getVariable

public Object getVariable()
Returns the variable.

Returns:
the variable

getCoefficient

public Number getCoefficient()
Returns the coefficient.

Returns:
the coefficient