The Encog Project

org.encog.parse.recognize
Class Recognize

java.lang.Object
  extended by org.encog.parse.recognize.Recognize

public class Recognize
extends java.lang.Object

Holds the template of something that the parser should recognize. This consists of a collection of RecognizeElement objects that define the structure of what is to be recognized.

Author:
jheaton

Constructor Summary
Recognize()
           
Recognize(java.lang.String type)
           
 
Method Summary
 void add(RecognizeElement re)
           
 RecognizeElement createElement(int allow)
           
 boolean getIgnore()
           
 java.util.List<RecognizeElement> getPattern()
           
 java.lang.Class getSignalClass()
           
 boolean recognize(Signal signal)
           
protected  boolean recognizeIteration(Signal signal)
           
 void setIgnore(boolean ignore)
           
 void setSignalClass(java.lang.Class signalClass)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recognize

public Recognize()

Recognize

public Recognize(java.lang.String type)
Method Detail

add

public void add(RecognizeElement re)

createElement

public RecognizeElement createElement(int allow)

getIgnore

public boolean getIgnore()

getPattern

public java.util.List<RecognizeElement> getPattern()
Returns:
the pattern

getSignalClass

public java.lang.Class getSignalClass()

recognize

public boolean recognize(Signal signal)

recognizeIteration

protected boolean recognizeIteration(Signal signal)

setIgnore

public void setIgnore(boolean ignore)

setSignalClass

public void setSignalClass(java.lang.Class signalClass)

toString

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

The Encog Project