de.fu_berlin.ties.classify.feature
Class FeatureSet

java.lang.Object
  extended byde.fu_berlin.ties.classify.feature.FeatureVector
      extended byde.fu_berlin.ties.classify.feature.FeatureSet

public class FeatureSet
extends FeatureVector

This feature vector implementation stores a multi-set of features. The order of features is not preserved. Internally it uses a HashBag as storage.

Instances of this class are not thread-safe and must be synchronized externally, if required.

Version:
$Revision: 1.2 $, $Date: 2004/04/01 13:34:15 $, $Author: siefkes $
Author:
Christian Siefkes

Constructor Summary
FeatureSet()
          Creates a new instance.
 
Method Summary
 Iterator iterator()
          Returns an iterator over the Features stored in this vector.
 int size()
          Returns the number of features stored in this vector.
protected  Collection store()
          Returns the collection used for storing the features. The properties of a feature vector depend on the kind of collection that is used.
 
Methods inherited from class de.fu_berlin.ties.classify.feature.FeatureVector
add, addAll, addAll, addAllTokens, flatten, flatten, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureSet

public FeatureSet()
Creates a new instance.

Method Detail

iterator

public Iterator iterator()
Returns an iterator over the Features stored in this vector.

Overrides:
iterator in class FeatureVector
Returns:
an iterator over the stored features

size

public int size()
Returns the number of features stored in this vector.

Overrides:
size in class FeatureVector
Returns:
the number of features

store

protected Collection store()
Returns the collection used for storing the features. The properties of a feature vector depend on the kind of collection that is used.

Specified by:
store in class FeatureVector
Returns:
the collection used for storing the features.


Copyright © 2003-2004 Christian Siefkes. All Rights Reserved.