[all packages]
[package ]
[class hierarchy]
[index]
public abstract class Constraint
(source file: Constraint.java)
java.lang.Object
|
+----Printable
|
+----Constraint
The pure class interface.
public abstract class Constraint
extends Printable
-
The constaints about a single variable.
- Author:
- Alan Jeffrey
- Version: v1.0 1998/06/09
- See also:
- Constraints
- Constraint()
-
- maximize(int, Solution)
-
Find the maximum value for this variable,
(at least d) using the solution set s.
- minimize(int, Solution)
-
Find the minimum value for this variable,
(at most d) using the solution set s.
Constraint
public Constraint();
maximize
public abstract int maximize(int d,
Solution s);
-
Find the maximum value for this variable,
(at least d) using the solution set s.
- Parameters:
- d - the minimum result.
- s - the solution set.
minimize
public abstract int minimize(int d,
Solution s);
-
Find the minimum value for this variable,
(at most d) using the solution set s.
- Parameters:
- d - the maximum result.
- s - the solution set.
[all packages]
[package ]
[class hierarchy]
[index]
Constraint.html