org.shapelogic.streamlogic
Class LoadLetterStreams

java.lang.Object
  extended by org.shapelogic.streamlogic.LoadLetterStreams

public class LoadLetterStreams
extends java.lang.Object

Create letter streams. Based on LetterTaskFactory.
Should create all the rules used for letter matching.
Contains rules for more complex set of rules works for straight and curved letters
This uses annotations

Author:
Sami Badawi

Field Summary
static java.lang.String[] lettersArray
           
 LoadPolygonStreams loadPolygonStreams
           
 
Constructor Summary
LoadLetterStreams(RecursiveContext recursiveContext)
           
 
Method Summary
 void loadLetterStream(java.lang.String letterFilter)
          Setup all the stream for a letter match.
Requirements streams: polygons.
 void loadUserDefinedSymbolStreams(FFNeuralNetworkWeights fFNeuralNetworkWeights, java.lang.String categorizerStreamName)
          Setup all the stream for a letter match.
Requirements streams: polygons.
 void makeAllLetterStream(java.lang.String letterFilter)
           
 void makeStraightLetterStream(java.lang.String letterFilter)
          Rules for matching letters, using only very simple properties.
 void makeXOrStream(java.lang.String streamName, java.util.Collection<java.lang.String> symbolStreamCollection)
           
 void makeXOrStream(java.lang.String streamName, java.lang.String[] symbolStreamArray)
           
 void rule(RulePredicate ruleP)
           
 void rule(java.lang.String letter, java.lang.String streamName, int value, java.lang.String letterFilter)
          Helper method to create one rule in one letter.
 void rule(java.lang.String letter, java.lang.String streamName, java.lang.String predicate, double value)
           
 void rule(java.lang.String letter, java.lang.String streamName, java.lang.String predicate, double value, java.lang.String letterFilter)
          Helper method to create one rule in one letter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadPolygonStreams

public LoadPolygonStreams loadPolygonStreams

lettersArray

public static final java.lang.String[] lettersArray
Constructor Detail

LoadLetterStreams

public LoadLetterStreams(RecursiveContext recursiveContext)
Method Detail

rule

public void rule(java.lang.String letter,
                 java.lang.String streamName,
                 int value,
                 java.lang.String letterFilter)
Helper method to create one rule in one letter.

Parameters:
letter - to define rule for
streamName - what the required stream for this rule is called in RootMap
value - constraint value
letterFilter - if only one rule should be generated this should be set to a letter

rule

public void rule(java.lang.String letter,
                 java.lang.String streamName,
                 java.lang.String predicate,
                 double value,
                 java.lang.String letterFilter)
Helper method to create one rule in one letter.

Parameters:
letter - to define rule for
streamName - what the required stream for this rule is called in RootMap
value - constraint value
letterFilter - if only one rule should be generated this should be set to a letter

rule

public void rule(java.lang.String letter,
                 java.lang.String streamName,
                 java.lang.String predicate,
                 double value)

rule

public void rule(RulePredicate ruleP)

makeXOrStream

public void makeXOrStream(java.lang.String streamName,
                          java.lang.String[] symbolStreamArray)

makeXOrStream

public void makeXOrStream(java.lang.String streamName,
                          java.util.Collection<java.lang.String> symbolStreamCollection)

loadLetterStream

public void loadLetterStream(java.lang.String letterFilter)
Setup all the stream for a letter match.
Requirements streams: polygons.


loadUserDefinedSymbolStreams

public void loadUserDefinedSymbolStreams(FFNeuralNetworkWeights fFNeuralNetworkWeights,
                                         java.lang.String categorizerStreamName)
Setup all the stream for a letter match.
Requirements streams: polygons.


makeStraightLetterStream

public void makeStraightLetterStream(java.lang.String letterFilter)
Rules for matching letters, using only very simple properties.

Parameters:
letterFilter -

makeAllLetterStream

public void makeAllLetterStream(java.lang.String letterFilter)


Copyright © 2009. All Rights Reserved.