choco.visu.variables
Class VisuVariable

java.lang.Object
  extended by choco.visu.variables.VisuVariable
All Implemented Interfaces:
IIndex, IVisuVariable

public final class VisuVariable
extends Object
implements IVisuVariable


Field Summary
protected  ArrayList<IChocoBrick> brick
           
protected  Var var
           
 
Constructor Summary
VisuVariable(Var var)
           
 
Method Summary
 void addBrick(IChocoBrick b)
          Add a brock observer to the visuvariable
 IChocoBrick getBrick(int i)
           
 long getIndex()
          Unique index (Different from hashCode, can change from one execution to another one)
 Var getSolverVar()
          Return the solver variable
 void refresh(Object arg)
          refresh every visual representation of the variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

protected final Var var

brick

protected final ArrayList<IChocoBrick> brick
Constructor Detail

VisuVariable

public VisuVariable(Var var)
Method Detail

getSolverVar

public Var getSolverVar()
Return the solver variable

Specified by:
getSolverVar in interface IVisuVariable
Returns:

addBrick

public final void addBrick(IChocoBrick b)
Add a brock observer to the visuvariable

Specified by:
addBrick in interface IVisuVariable
Parameters:
b -

getBrick

public final IChocoBrick getBrick(int i)

refresh

public final void refresh(Object arg)
refresh every visual representation of the variable


getIndex

public long getIndex()
Description copied from interface: IIndex
Unique index (Different from hashCode, can change from one execution to another one)

Specified by:
getIndex in interface IIndex
Returns:
the indice of the objet


Copyright © 2012. All Rights Reserved.