|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.algorithm.siger.Parser
public class Parser
Parses the textual description of a gesture class.
| Nested Class Summary | |
|---|---|
static class |
Parser.BooleanOperators
Boolean operators. |
static class |
Parser.Operator
Operators of Siger's description language. |
| Constructor Summary | |
|---|---|
Parser(String expression)
Parses a string containing a description. |
|
| Method Summary | |
|---|---|
static boolean |
evaluateComparison(Parser.Operator operator,
double left,
double right)
Evaluates a comparison |
boolean |
evaluateConstraints(Statistics strokeStatistic)
Evaluates the constraints. |
static double |
evaluateFunction(org.ximtec.igesture.algorithm.siger.Parser.Tokens token,
Statistics strokeStatistic)
Evaluates the given function. |
Pattern |
getPattern()
Returns the pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser(String expression)
expression - the string to be parsed.| Method Detail |
|---|
public Pattern getPattern()
public boolean evaluateConstraints(Statistics strokeStatistic)
strokeStatistic - the stroke statistics.
public static double evaluateFunction(org.ximtec.igesture.algorithm.siger.Parser.Tokens token,
Statistics strokeStatistic)
token - the token to be used.strokeStatistic - the statistics to be used.
public static boolean evaluateComparison(Parser.Operator operator,
double left,
double right)
operator - the comparison operator.left - the value of the left operand.right - the value of the right operand.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||