choco.cp.common.util.preprocessor
Class DetectorFactory

java.lang.Object
  extended by choco.cp.common.util.preprocessor.DetectorFactory
Direct Known Subclasses:
ModelDetectorFactory, SolverDetectorFactory

public abstract class DetectorFactory
extends Object

User : cprudhom
Mail : cprudhom(a)emn.fr
Date : 2 avr. 2010br/> Since : Choco 2.1.1


Field Summary
protected static Logger LOGGER
          Logger
 
Constructor Summary
DetectorFactory()
           
 
Method Summary
static void associateIndexes(CPModel m)
          Add an index to the variables to be able to map them easily to nodes of the constraint graph
static void associateIndexes(int from, Variable... ivars)
           
static int maxHookOnMultipleVariables(CPModel model)
          Get the max hook from a list of multiple variables
static void resetIndexes(CPModel m)
          Add an index to the variables to be able to map them easily to nodes of the constraint graph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER
Logger

Constructor Detail

DetectorFactory

public DetectorFactory()
Method Detail

associateIndexes

public static void associateIndexes(CPModel m)
Add an index to the variables to be able to map them easily to nodes of the constraint graph

Parameters:
m - model

associateIndexes

public static void associateIndexes(int from,
                                    Variable... ivars)

maxHookOnMultipleVariables

public static int maxHookOnMultipleVariables(CPModel model)
Get the max hook from a list of multiple variables

Parameters:
model - current model
Returns:

resetIndexes

public static void resetIndexes(CPModel m)
Add an index to the variables to be able to map them easily to nodes of the constraint graph

Parameters:
m - model


Copyright © 2012. All Rights Reserved.