org.shapelogic.streamlogic
Class LoadPolygonStreams
java.lang.Object
org.shapelogic.streamlogic.LoadPolygonStreams
public class LoadPolygonStreams
- extends java.lang.Object
Create letter streams.
Based on LetterTaskFactory.
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 |
recursiveContext
public RecursiveContext recursiveContext
LEFT_HALF
public static java.lang.String LEFT_HALF
LEFT_THIRD
public static java.lang.String LEFT_THIRD
RIGHT_HALF
public static java.lang.String RIGHT_HALF
RIGHT_THIRD
public static java.lang.String RIGHT_THIRD
CENTER_THIRD
public static java.lang.String CENTER_THIRD
TOP_THIRD
public static java.lang.String TOP_THIRD
BOTTOM_THIRD
public static java.lang.String BOTTOM_THIRD
BOTTOM_HALF
public static java.lang.String BOTTOM_HALF
MIDDLE_THIRD
public static java.lang.String MIDDLE_THIRD
TOP_LEFT_HALF
public static java.lang.String TOP_LEFT_HALF
TOP_RIGHT_HALF
public static java.lang.String TOP_RIGHT_HALF
BOTTOM_LEFT_HALF
public static java.lang.String BOTTOM_LEFT_HALF
BOTTOM_RIGHT_HALF
public static java.lang.String BOTTOM_RIGHT_HALF
TOP_LEFT_THIRD
public static java.lang.String TOP_LEFT_THIRD
TOP_RIGHT_THIRD
public static java.lang.String TOP_RIGHT_THIRD
MIDDLE_LEFT_THIRD
public static java.lang.String MIDDLE_LEFT_THIRD
MIDDLE_CENTER_THIRD
public static java.lang.String MIDDLE_CENTER_THIRD
MIDDLE_RIGHT_THIRD
public static java.lang.String MIDDLE_RIGHT_THIRD
BOTTOM_LEFT_THIRD
public static java.lang.String BOTTOM_LEFT_THIRD
BOTTOM_CENTER_THIRD
public static java.lang.String BOTTOM_CENTER_THIRD
BOTTOM_RIGHT_THIRD
public static java.lang.String BOTTOM_RIGHT_THIRD
LoadPolygonStreams
public LoadPolygonStreams(RecursiveContext recursiveContext)
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 forstreamName
- what the required stream for this rule is called in RootMapvalue
- constraint valueletterFilter
- if only one rule should be generated this should be set to a letter
loadStreamsRequiredForStraightLetterMatch
public void loadStreamsRequiredForStraightLetterMatch(NumberedStream<Polygon> polygons)
- Load all the required streams for the letter matcher to work.
In order for this to work the polygons have to be defined first.
loadStreamsRequiredForLetterMatch
public void loadStreamsRequiredForLetterMatch(NumberedStream<Polygon> polygons)
- Load all the required streams for the letter matcher to work.
In order for this to work the polygons have to be defined first.
loadStreamsRequiredForLetterMatch
public void loadStreamsRequiredForLetterMatch()
loadFilterStream
public void loadFilterStream(java.lang.String streamName,
java.lang.String filterExpression,
NumberedStream<Polygon> polygons)
loadAllPointFilterStreams
public void loadAllPointFilterStreams(NumberedStream<Polygon> polygons)
loadAllAnnotatedPointFilterStreams
public void loadAllAnnotatedPointFilterStreams(NumberedStream<Polygon> polygons)
size
public static int size(org.hsqldb.lib.Collection collection)
size
public static int size(java.util.List collection)
size
public static int size(java.util.Set set)
Copyright © 2009. All Rights Reserved.