[all packages] [package ] [class hierarchy] [index]

public class ConstraintCons

(source file: ConstraintCons.java)
java.lang.Object
   |
   +----Printable
           |
           +----Constraint
                   |
                   +----ConstraintCons

The pure class interface.
public class ConstraintCons
  extends Constraint
Add an extra constraint to a variable.

Author:
Alan Jeffrey
Version: v1.0 1998/06/11

Constuctor Index

O ConstraintCons(int, int, Constraint)
Create a new constraint about a variable. This variable has to be at least d pixels away

Methods

O maximize(int, Solution)
O minimize(int, Solution)
O print(Printer)

Constructors

O ConstraintCons
public ConstraintCons(int d,
                      int x,
                      Constraint c);
Create a new constraint about a variable. This variable has to be at least d pixels away from variable x.

Parameters:
d - the minimum distance.
x - the other variable.
c - the other constraints on this variable.

Methods

O maximize
public int maximize(int e,
                    Solution s);

O minimize

public int minimize(int e,
                    Solution s);

O print

public void print(Printer p);


[all packages] [package ] [class hierarchy] [index]
ConstraintCons.html