idl.tmt.training
Class RegexSelector

java.lang.Object
  |
  +--idl.tmt.training.RegexSelector
All Implemented Interfaces:
TrainingSetConstructor

public class RegexSelector
extends java.lang.Object
implements TrainingSetConstructor

Created on Jun 4, 2004

Author:
jelsas

Field Summary
private  boolean hasBeenRun
           
private  java.lang.String regex
           
 
Fields inherited from interface idl.tmt.training.TrainingSetConstructor
STATUS_COMPLETE, STATUS_NONE
 
Constructor Summary
RegexSelector()
           
 
Method Summary
 Instances constructTrainingSet(IndexedCollection collection)
          Constructs a training set by selecting documents whose path names match the regular expression provided;
 java.lang.String getRegex()
           
 java.lang.String getStatus()
           
 void setRegex(java.lang.String regex)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

regex

private java.lang.String regex

hasBeenRun

private boolean hasBeenRun
Constructor Detail

RegexSelector

public RegexSelector()
Method Detail

constructTrainingSet

public Instances constructTrainingSet(IndexedCollection collection)
Constructs a training set by selecting documents whose path names match the regular expression provided;
Specified by:
constructTrainingSet in interface TrainingSetConstructor
See Also:
TrainingSetConstructor.constructTrainingSet(idl.tmt.representation.IndexedCollection)

setRegex

public void setRegex(java.lang.String regex)

getRegex

public java.lang.String getRegex()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStatus

public java.lang.String getStatus()
Specified by:
getStatus in interface TrainingSetConstructor