samples.tutorials.to_sort.tsp
Class MyValSelector

java.lang.Object
  extended by samples.tutorials.to_sort.tsp.MyValSelector
All Implemented Interfaces:
ValSelector<IntDomainVar>

public class MyValSelector
extends Object
implements ValSelector<IntDomainVar>


Field Summary
protected  int dest
           
protected  int[][] matrix
           
protected  IntDomainVar objective
           
protected  boolean optimize
           
protected  int src
           
protected  IntDomainVar[] vars
           
 
Constructor Summary
MyValSelector(IntDomainVar objective, IntDomainVar[] vars, int[][] matrix, int src, int dest)
           
 
Method Summary
 int getBestVal(IntDomainVar v)
          A method selecting the search value used for the alternative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objective

protected IntDomainVar objective

vars

protected IntDomainVar[] vars

matrix

protected int[][] matrix

src

protected int src

dest

protected int dest

optimize

protected boolean optimize
Constructor Detail

MyValSelector

public MyValSelector(IntDomainVar objective,
                     IntDomainVar[] vars,
                     int[][] matrix,
                     int src,
                     int dest)
Method Detail

getBestVal

public int getBestVal(IntDomainVar v)
Description copied from interface: ValSelector
A method selecting the search value used for the alternative

Specified by:
getBestVal in interface ValSelector<IntDomainVar>


Copyright © 2012. All Rights Reserved.