choco.kernel.model.variables
Interface IHook

All Known Subinterfaces:
Variable
All Known Implementing Classes:
AbstractVariable, ComponentVariable, GeostObject, IntegerConstantVariable, IntegerExpressionVariable, IntegerVariable, MetaIntegerExpressionVariable, MultipleVariables, RealConstantVariable, RealExpressionVariable, RealVariable, SetConstantVariable, SetExpressionVariable, SetVariable, TaskVariable, TreeNodeObject, TreeParametersObject

public interface IHook

a hook is an integer field to attach temporary information about a given variable or constraint.

Since:
5 août 2009 version 2.1.1
Version:
2.1.1
Author:
Arnaud Malapert

Field Summary
static int NO_HOOK
           
 
Method Summary
 int getHook()
          get the current hook value
 void resetHook()
          reset the hook, it allows to set a new value.
 void setHook(int hook)
          you should be sure to reset the hook before setting a new hook value
 

Field Detail

NO_HOOK

static final int NO_HOOK
See Also:
Constant Field Values
Method Detail

getHook

int getHook()
get the current hook value


setHook

void setHook(int hook)
you should be sure to reset the hook before setting a new hook value

Parameters:
hook - the new hook value

resetHook

void resetHook()
reset the hook, it allows to set a new value.



Copyright © 2012. All Rights Reserved.