edu.vt.marian.search
Interface WtdObjSetSequencer

All Known Implementing Classes:
WeightedSetSequencer, FlatSetSequencer

public abstract interface WtdObjSetSequencer
extends Sequencer

WtdObjSetSequencers are constructed from a weighted set of sets (actually a WtdObjSet where each object can be mapped to a further WtdObjSet). They merge all the elements of all the (mapped) WtdObjSets into a single sequence in Weight order, after scaling each terminal object by the weight of the "key" set.

See Also:
Sequencer, Enumeration

Method Summary
 int addSets(WtdObjSet keySet, WtdObjToSetMapping map)
          Add a weighted object set of "keys" to the Sequencer.
 
Methods inherited from interface edu.vt.marian.search.Sequencer
expectedNumElts, maxNumElts, profile, toString
 
Methods inherited from interface java.util.Enumeration
hasMoreElements, nextElement
 

Method Detail

addSets

public int addSets(WtdObjSet keySet,
                   WtdObjToSetMapping map)
Add a weighted object set of "keys" to the Sequencer. Each key can itself be developed into a "secondary" weighted object set.
Parameters:
keySet - a weighted object set, each of .
map - someone who can turn each FullID in keySet into a WtdObjSet.
Returns:
ReturnValues.OK -- set was added without problems.
anything else -- problems.