gov.nist.nlpir.irf.query
Class StructuredCombinator

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--gov.nist.nlpir.irf.query.Combinator
                          |
                          +--gov.nist.nlpir.irf.query.StructuredCombinator

public class StructuredCombinator
extends Combinator

The StructuredCombinator

Version:
$Revision: 1.1 $
Author:
This software was produced by NIST, an agency of the U.S. government, and by statute is not subject to copyright in the United States. Recipients of this software assume all responsibilities associated with its operation, modification and maintenance.
See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StructuredCombinator()
           
StructuredCombinator(DeString combName, int imuIndexA, double imuWeightA, int imuIndexB, double imuWeightB)
          Create and set structured combinator.
StructuredCombinator(DeString combName, StructuredCombinator scmb, double scmbWeight, int imuIndex, double imuWeight)
          Create and set combinator structure.
StructuredCombinator(int size)
          Create a structured combinator.
StructuredCombinator(java.lang.String function, int numberOfModalities, double[] normalizedWeights)
          Create and set combinator structure.
 
Method Summary
 void present(int i, IndexingModalities im)
          display current structured combinator to standard output.
 void presentBrief(int i)
          print structured combinator with indexes instead of imus.
 void presentBrief(java.util.Vector v, int i)
          print structured combinator, v, with indexes instead of imus.
 
Methods inherited from class gov.nist.nlpir.irf.query.Combinator
presentCombinatorIMU, printSpaces
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

StructuredCombinator

public StructuredCombinator()

StructuredCombinator

public StructuredCombinator(int size)
Create a structured combinator.
Parameters:
size - number of objects to be held by the structured combinator.

StructuredCombinator

public StructuredCombinator(DeString combName,
                            int imuIndexA,
                            double imuWeightA,
                            int imuIndexB,
                            double imuWeightB)
Create and set structured combinator.
Parameters:
combName - which scoring function to apply.
imuIndexA - index of an IndexingModalityUnit in IndexingModalities
imuWeightA - weight of index of IndexingModalityUnit A
imuIndexB - index of an IndexingModalityUnit in IndexingModalities
imuWeightB - weight of index of IndexingModalityUnit B

StructuredCombinator

public StructuredCombinator(DeString combName,
                            StructuredCombinator scmb,
                            double scmbWeight,
                            int imuIndex,
                            double imuWeight)
Create and set combinator structure.
Parameters:
combName - which scoring function to apply.
scmb - StructuredCombinator to be included in this combinator.
scmbWeight - weight to be applied to scmb
imuIndex - index of an IndexingModalityUnit in IndexingModalities
imuWeight - weight to be applied IndexingModalityUnit at imuIndex

StructuredCombinator

public StructuredCombinator(java.lang.String function,
                            int numberOfModalities,
                            double[] normalizedWeights)
Create and set combinator structure. There must be at least 2 indexing modality units.
Parameters:
function - which scoring function to apply.
numberOfModalities - number of IndexingModalities.
normalized - weights used in scoring
Method Detail

present

public void present(int i,
                    IndexingModalities im)
display current structured combinator to standard output.
Parameters:
i - width in characters of indentation
im - current indexing modalities
Overrides:
present in class Combinator

presentBrief

public void presentBrief(int i)
print structured combinator with indexes instead of imus.
Parameters:
i - width in characters of indentation
Overrides:
presentBrief in class Combinator

presentBrief

public void presentBrief(java.util.Vector v,
                         int i)
print structured combinator, v, with indexes instead of imus.
Parameters:
v - a structured combinator
i - width in characters of indentation
Overrides:
presentBrief in class Combinator