trace.visualizers
Class DomainMatrix

java.lang.Object
  extended by trace.Visualizer
      extended by trace.visualizers.DomainMatrix
Direct Known Subclasses:
AllDifferentMatrix, BinaryMatrix

public class DomainMatrix
extends Visualizer

, A specialized visualizer for a matrix of domain variables

Since:
14/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
  DomainMatrix(Var[][] vars, String display, int width, int height)
          Build a visualizer for a matrix of domain variables
  DomainMatrix(Var[][] vars, String display, int x, int y, int width, int height, String group, int min, int max)
          Build a visualizer for a matrix of domain variables
protected DomainMatrix(Var[][] vars, String type, String display, int width, int height)
           
  DomainMatrix(Var[][] vars, String type, String display, int x, int y, int width, int height, String group, int min, int max)
           
 
Method Summary
protected  void print(org.slf4j.Logger logger, boolean focus, IntBranchingDecision decision)
           
 
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

DomainMatrix

public DomainMatrix(Var[][] vars,
                    String display,
                    int width,
                    int height)
Build a visualizer for a matrix of domain variables

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

DomainMatrix

protected DomainMatrix(Var[][] vars,
                       String type,
                       String display,
                       int width,
                       int height)

DomainMatrix

public DomainMatrix(Var[][] vars,
                    String display,
                    int x,
                    int y,
                    int width,
                    int height,
                    String group,
                    int min,
                    int max)
Build a visualizer for a matrix of domain variables

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

DomainMatrix

public DomainMatrix(Var[][] vars,
                    String type,
                    String display,
                    int x,
                    int y,
                    int width,
                    int height,
                    String group,
                    int min,
                    int max)
Method Detail

print

protected void print(org.slf4j.Logger logger,
                     boolean focus,
                     IntBranchingDecision decision)
Specified by:
print in class Visualizer


Copyright © 2012. All Rights Reserved.