[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
- ConstraintCons(int, int, Constraint)
-
Create a new constraint about a variable.
This variable has to be at least d pixels away
- maximize(int, Solution)
-
- minimize(int, Solution)
-
- print(Printer)
-
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.
maximize
public int maximize(int e,
Solution s);
minimize
public int minimize(int e,
Solution s);
print
public void print(Printer p);
[all packages]
[package ]
[class hierarchy]
[index]
ConstraintCons.html