helix.graph.algo.c3part.optimizer
Class AbstractColorOptimizer

java.lang.Object
  extended by helix.graph.algo.c3part.optimizer.AbstractColorOptimizer
All Implemented Interfaces:
ColorOptimizer, Iterator<Integer>
Direct Known Subclasses:
EmbeddedColorOptimizer, FixColorOptimizer, IdentityColorOptimizer

public abstract class AbstractColorOptimizer
extends Object
implements ColorOptimizer


Constructor Summary
AbstractColorOptimizer()
           
 
Method Summary
 int getColorIndex(int color)
          return the rank (starting at 0) at which the specified color was produced i.e.
 String getParamInfo()
          default optional parameters info : no info
 List<Integer> getUsedColors()
          get already provided colors
 void giveup()
          don't do anything on giveup : just keep track of this call
 String preview()
          default preview : no preview available
 void remove()
          remove not implemented : throws UnsupportedOperationException
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next
 

Constructor Detail

AbstractColorOptimizer

public AbstractColorOptimizer()
Method Detail

remove

public void remove()
remove not implemented : throws UnsupportedOperationException

Specified by:
remove in interface Iterator<Integer>

getUsedColors

public List<Integer> getUsedColors()
get already provided colors

Specified by:
getUsedColors in interface ColorOptimizer

getColorIndex

public int getColorIndex(int color)
return the rank (starting at 0) at which the specified color was produced i.e. the index of color in getUsedColors

Specified by:
getColorIndex in interface ColorOptimizer

giveup

public void giveup()
don't do anything on giveup : just keep track of this call

Specified by:
giveup in interface ColorOptimizer

preview

public String preview()
default preview : no preview available

Specified by:
preview in interface ColorOptimizer

getParamInfo

public String getParamInfo()
default optional parameters info : no info

Specified by:
getParamInfo in interface ColorOptimizer

toString

public String toString()
Overrides:
toString in class Object