trace.visualizers
Class AllDifferent

java.lang.Object
  extended by trace.Visualizer
      extended by trace.visualizers.Vector
          extended by trace.visualizers.AllDifferent

public final class AllDifferent
extends Vector

A specialized visualizer for the allDifferent constraint.

Since:
13/12/10
Author:
Charles Prud'homme

Field Summary
 
Fields inherited from class trace.Visualizer
display, group, height, id, max, min, width, writer, x, y
 
Constructor Summary
AllDifferent(IntDomainVar[] vars, String display, int width, int height)
          Build a visualizer for the allDifferent constraint
AllDifferent(IntDomainVar[] vars, String display, int x, int y, int width, int height, String group, int min, int max)
          Build a visualizer for the allDifferent constraint
 
Method Summary
 
Methods inherited from class trace.visualizers.Vector
print
 
Methods inherited from class trace.Visualizer
getDisplay, getGroup, getHeight, getId, getType, getWidth, options, setGroup, setId, setMinMax, setXY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllDifferent

public AllDifferent(IntDomainVar[] vars,
                    String display,
                    int width,
                    int height)
Build a visualizer for the allDifferent constraint

Parameters:
vars - domain variables
display - "expanded" or "compact"
width - width of the visualizer
height - height of the visualizer

AllDifferent

public AllDifferent(IntDomainVar[] vars,
                    String display,
                    int x,
                    int y,
                    int width,
                    int height,
                    String group,
                    int min,
                    int max)
Build a visualizer for the allDifferent constraint

Parameters:
vars - domain variables
display - "expanded" or "compact"
x - coordinate of the visualizer in the x-axis (horizontal)
y - coordinate of the visualizer in the y-axis (vertical)
width - width of the visualizer
height - height of the visualizer
group - group name (to group multiple constraints)
min - expected minimal value of any of the domains
max - expected maximal value of any of the domains


Copyright © 2012. All Rights Reserved.