com.mhhe.clrs2e
Class DifferenceConstraints.Constraint

java.lang.Object
  |
  +--com.mhhe.clrs2e.DifferenceConstraints.Constraint
Enclosing class:
DifferenceConstraints

private static class DifferenceConstraints.Constraint
extends java.lang.Object

Inner class for an individual constraint.


Field Summary
 double b
          Value of bk.
 int i
          Index of the variable xi in the constraint.
 int j
          Index of the variable xj in the constraint.
 
Constructor Summary
DifferenceConstraints.Constraint(int j, int i, double b)
          Sets the values of the instance variables.
 
Method Summary
 java.lang.String toString()
          Returns the String representation of this difference constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

j

public int j
Index of the variable xj in the constraint.


i

public int i
Index of the variable xi in the constraint.


b

public double b
Value of bk.

Constructor Detail

DifferenceConstraints.Constraint

public DifferenceConstraints.Constraint(int j,
                                        int i,
                                        double b)
Sets the values of the instance variables.

Parameters:
j - Index for the variable xj.
i - Index for the variable xi.
b - Value of bk.
Method Detail

toString

public java.lang.String toString()
Returns the String representation of this difference constraint.

Overrides:
toString in class java.lang.Object