public class Parser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Parser.BooleanOperators
Boolean operators.
|
static class |
Parser.Operator
Operators of Siger's description language.
|
| Constructor and Description |
|---|
Parser(String expression)
Parses a string containing a description.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Parser(String expression)
expression - the string to be parsed.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.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.