[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

Constuctor Index

O Constraint()

Methods

O maximize(int, Solution)
Find the maximum value for this variable, (at least d) using the solution set s.
O minimize(int, Solution)
Find the minimum value for this variable, (at most d) using the solution set s.

Constructors

O Constraint
public Constraint();

Methods

O 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.

O 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