choco.visu.variables
Class VisuVariable
java.lang.Object
choco.visu.variables.VisuVariable
- All Implemented Interfaces:
- IIndex, IVisuVariable
public final class VisuVariable
- extends Object
- implements IVisuVariable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
var
protected final Var var
brick
protected final ArrayList<IChocoBrick> brick
VisuVariable
public VisuVariable(Var var)
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.