javax.constraints.impl.search.selectors
Class ValueSelectorMinMaxAlternate

java.lang.Object
  extended by javax.constraints.impl.search.selectors.ValueSelectorMinMaxAlternate
All Implemented Interfaces:
ValueSelector

public class ValueSelectorMinMaxAlternate
extends java.lang.Object
implements ValueSelector

This selector selects one time the smallest and another time the largest value from the domain of a constrained variable.


Constructor Summary
ValueSelectorMinMaxAlternate()
           
 
Method Summary
 ValueSelectorType getType()
           
 int select(Var var)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueSelectorMinMaxAlternate

public ValueSelectorMinMaxAlternate()
Method Detail

getType

public ValueSelectorType getType()
Specified by:
getType in interface ValueSelector

select

public final int select(Var var)
Specified by:
select in interface ValueSelector