jflexcrf
Class FeatureGen

java.lang.Object
  extended by jflexcrf.FeatureGen

public class FeatureGen
extends java.lang.Object

The Class FeatureGen.


Constructor Summary
FeatureGen(Maps maps, Dictionary dict)
          Instantiates a new feature gen.
 
Method Summary
 void addFeature(Feature f)
          Adds the feature.
 boolean hasNextFeature()
          Checks for next feature.
 Feature nextFeature()
          Next feature.
 int numFeatures()
          Num features.
 void readFeatures(java.io.BufferedReader fin)
          Read features.
 void startScanFeaturesAt(java.util.List seq, int pos)
          Start scan features at.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureGen

public FeatureGen(Maps maps,
                  Dictionary dict)
Instantiates a new feature gen.

Parameters:
maps - the maps
dict - the dict
Method Detail

addFeature

public void addFeature(Feature f)
Adds the feature.

Parameters:
f - the f

numFeatures

public int numFeatures()
Num features.

Returns:
the int

readFeatures

public void readFeatures(java.io.BufferedReader fin)
                  throws java.io.IOException
Read features.

Parameters:
fin - the fin
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

startScanFeaturesAt

public void startScanFeaturesAt(java.util.List seq,
                                int pos)
Start scan features at.

Parameters:
seq - the seq
pos - the pos

hasNextFeature

public boolean hasNextFeature()
Checks for next feature.

Returns:
true, if successful

nextFeature

public Feature nextFeature()
Next feature.

Returns:
the feature