javax.constraints.impl.constraint
Class ConstraintTable

java.lang.Object
  extended by javax.constraints.impl.CommonBase
      extended by javax.constraints.impl.AbstractConstraint
          extended by javax.constraints.impl.constraint.ConstraintTable
All Implemented Interfaces:
Constraint

public class ConstraintTable
extends AbstractConstraint


Field Summary
static int NOT_PERMITTED
          A value indicating that a tuple is to be excluded from satisfying a table constraint
static int PERMITTED
          A value indicating that a tuple is to be included to satisfy a table constraint
 
Constructor Summary
ConstraintTable(Var[] vars, int[][] table, int mode)
          Creates and returns a new constraint stating that all variables from "vars" must take values compatible with the table "table", which represents the set of (permitted)/(not permitted) combinations.
 
Method Summary
static void main(java.lang.String[] args)
           
 void post()
          This method takes a constraint's implementation and uses its own RI-specific post-method.
 
Methods inherited from class javax.constraints.impl.AbstractConstraint
and, asBool, implies, negation, or, post
 
Methods inherited from class javax.constraints.impl.CommonBase
getImpl, getName, getObject, getProblem, setImpl, setName, setObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.constraints.Constraint
getImpl, getName, getObject, getProblem, setImpl, setName, setObject
 

Field Detail

NOT_PERMITTED

public static final int NOT_PERMITTED
A value indicating that a tuple is to be excluded from satisfying a table constraint

See Also:
Constant Field Values

PERMITTED

public static final int PERMITTED
A value indicating that a tuple is to be included to satisfy a table constraint

See Also:
Constant Field Values
Constructor Detail

ConstraintTable

public ConstraintTable(Var[] vars,
                       int[][] table,
                       int mode)
Creates and returns a new constraint stating that all variables from "vars" must take values compatible with the table "table", which represents the set of (permitted)/(not permitted) combinations.

Parameters:
vars -
table -
mode - - EXCLUDE or INCLUDE
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

post

public void post()
Description copied from class: AbstractConstraint
This method takes a constraint's implementation and uses its own RI-specific post-method.

Specified by:
post in interface Constraint
Overrides:
post in class AbstractConstraint