org.cdlib.xtf.textEngine.facet
Class TopChoiceSelector

Object
  extended by GroupSelector
      extended by TopChoiceSelector

public class TopChoiceSelector
extends GroupSelector

Select the top level of the hierarchy that has a choice.


Field Summary
private  Vector bestChildren
           
private  int bestLevel
           
private  int bestParent
           
private  int[] firstChild
           
 
Fields inherited from class GroupSelector
conservative, counts, next
 
Constructor Summary
TopChoiceSelector()
           
 
Method Summary
 void flush()
          Flush any queued groups
 void process(int group)
          Process the next group
 void reset(boolean conservative)
          Reset the selector
 String toString()
          Get a string representation
 
Methods inherited from class GroupSelector
setCounts, setNext
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bestLevel

private int bestLevel

bestParent

private int bestParent

bestChildren

private Vector bestChildren

firstChild

private int[] firstChild
Constructor Detail

TopChoiceSelector

public TopChoiceSelector()
Method Detail

reset

public void reset(boolean conservative)
Description copied from class: GroupSelector
Reset the selector

Overrides:
reset in class GroupSelector

process

public void process(int group)
Description copied from class: GroupSelector
Process the next group

Specified by:
process in class GroupSelector

flush

public void flush()
Description copied from class: GroupSelector
Flush any queued groups

Overrides:
flush in class GroupSelector

toString

public String toString()
Description copied from class: GroupSelector
Get a string representation

Specified by:
toString in class GroupSelector