Author: rezan
Date: Thu Jan 8 21:46:05 2015
New Revision: 1650388
URL: http://svn.apache.org/r1650388
Log:
pattern parsing step
Modified:
devicemap/branches/2.0/data/README_PATTERNS
Modified: devicemap/branches/2.0/data/README_PATTERNS
URL:
http://svn.apache.org/viewvc/devicemap/branches/2.0/data/README_PATTERNS?rev=1650388&r1=1650387&r2=1650388&view=diff
==============================================================================
--- devicemap/branches/2.0/data/README_PATTERNS (original)
+++ devicemap/branches/2.0/data/README_PATTERNS Thu Jan 8 21:46:05 2015
@@ -61,9 +61,11 @@ attribute and are ranked by their positi
Therefor, when a strong pattern is matched, it can be immediately returned
and no more processing is required. In the absence of a Strong pattern, the
highest ranking Weak pattern is returned. In the absence of a Strong and Weak
-pattern, the highest ranking None pattern is returned. In the case of Weak
-and None, the whole Pattern stream must be processed. If no match is found,
-the default pattren is returned. If no default is defined, a null pattern
+pattern, the highest ranking None pattern is returned. So a None pattern,
+regardless of its rank, can rank higher than a weak pattern. The same logic
+goes for a Weak and Strong patterns (Strong patterns have no rank). In the case
+of Weak and None, the whole Pattern stream must be processed. If no match is
+found, the default pattren is returned. If no default is defined, a null
pattern
is returned. In all cases, just the patternId is returned.
Rank is an integer used to rank patterns amoung their RankType. In the case of
@@ -93,11 +95,15 @@ over the tokens, generates the pattern t
them, and then returns winning pattern.
###
-PATTERN ATTRIBUTE LOOKUP
+PATTERN ATTRIBUTE LOOKUP AND OPTIONAL PARSING
###
When a PatternId is returned from the Matching phase, its used to lookup the
matching attributes in the attributes file. The attributes are returned as
-a key value map.
+a key value map along with the PatternId.
-TODO: Null pattern?
+Also, at this point, we can have an optional post processing step. The
attribute
+map can contain regex parsing rules which can be applied to the original
string to
+extract detailed information. TODO: this needs to be defined better
+
+TODO: Null pattern needs to be defined