org.shapelogic.logic
Class LetterTaskLegacyFactory
java.lang.Object
org.shapelogic.logic.LetterTaskLegacyFactory
public class LetterTaskLegacyFactory
- extends java.lang.Object
Should create all the rules used for letter matching.
Contains 2 sets of rules for letter matching
1: A simple set that only works for straight letters using simple properties
2: A more complex set of rules works for straight and curved letters
This uses annotations
- Author:
- Sami Badawi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POLYGON
public static final java.lang.String POLYGON
- See Also:
- Constant Field Values
HORIZONTAL_LINE_COUNT_EX1
public static final java.lang.String HORIZONTAL_LINE_COUNT_EX1
- See Also:
- Constant Field Values
VERTICAL_LINE_COUNT_EX1
public static final java.lang.String VERTICAL_LINE_COUNT_EX1
- See Also:
- Constant Field Values
LetterTaskLegacyFactory
public LetterTaskLegacyFactory()
createLetterATask
public static BaseTask createLetterATask(BaseTask parentTask)
getSimpleNumericRuleForAllStraightLetters
public static NumericRule[] getSimpleNumericRuleForAllStraightLetters(java.lang.String polygon)
- Generate all rule that are needed for matching all the straight capital letter.
This is used in the DirectionBasedVectorizer
- Parameters:
polygon
- is a String that contain the context variable that the rules will be applied to
getSimpleNumericRuleForAllLettersNonParametric
@Deprecated
public static NumericRule[] getSimpleNumericRuleForAllLettersNonParametric(java.lang.String polygon)
- Deprecated.
- Generate all rule that are needed for matching all the capital letter
using new complex filter rules.
This is used in the MaxDistanceVectorizer
This version is left in as an example of the old syntax, but this have
been superseded by the new uniform syntax that is creating ParametricRuleTask.
- Parameters:
polygon
- is a String that contain the context variable that the rules will be applied to
createLetterATaskFromRule
public static BaseTask createLetterATaskFromRule(BaseTask parentTask)
- Create a rule task for letter A based on old straight capital letters rules.
Copyright © 2009. All Rights Reserved.