|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.javailp.Constraint
public class Constraint
The class Constraint
represent a linear constraint.
Constructor Summary | |
---|---|
Constraint(Linear lhs,
Operator operator,
Number rhs)
Constructs a Constraint . |
|
Constraint(Linear lhs,
String operator,
Number rhs)
Constructs a Constraint . |
|
Constraint(String name,
Linear lhs,
Operator operator,
Number rhs)
Constructs a Constraint . |
|
Constraint(String name,
Linear lhs,
String operator,
Number rhs)
Constructs a Constraint . |
Method Summary | |
---|---|
Linear |
getLhs()
Returns the left-hand-side linear expression. |
String |
getName()
Returns the name of the constraint. |
Operator |
getOperator()
Returns the Boolean operator. |
Number |
getRhs()
Returns the right-hand-side number. |
int |
size()
Returns the size of the linear expression. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Constraint(Linear lhs, Operator operator, Number rhs)
Constraint
.
lhs
- the left hand sideoperator
- the operatorrhs
- the right hand sidepublic Constraint(Linear lhs, String operator, Number rhs)
Constraint
.
lhs
- the left hand sideoperator
- the operator ("<=","=",">=")rhs
- the right hand sidepublic Constraint(String name, Linear lhs, Operator operator, Number rhs)
Constraint
.
name
- the name of the constraintlhs
- the left hand sideoperator
- the operatorrhs
- the right hand sidepublic Constraint(String name, Linear lhs, String operator, Number rhs)
Constraint
.
name
- the name of the constraintlhs
- the left hand sideoperator
- the operator ("<=","=",">=")rhs
- the right hand sideMethod Detail |
---|
public Linear getLhs()
public Operator getOperator()
public Number getRhs()
public int size()
public String toString()
toString
in class Object
public String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |