|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.javailp.Term
public class Term
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 |
---|
public Term(Object variable, Number coefficient)
Term
.
variable
- the variablecoefficient
- the coefficientMethod Detail |
---|
public Object getVariable()
public Number getCoefficient()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |