|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.algorithm.AlgorithmTool
public class AlgorithmTool
Static helper methods used by different algorithms.
| Constructor Summary | |
|---|---|
AlgorithmTool()
|
|
| Method Summary | |
|---|---|
static double |
getDoubleParameterValue(String parameter,
Map<String,String> parameters,
Map<String,String> defaultParameters)
Returns a double parameter. |
static int |
getIntParameterValue(String parameter,
Map<String,String> parameters,
Map<String,String> defaultParameters)
Returns an int parameter. |
static String |
getParameterValue(String parameter,
Map<String,String> parameters,
Map<String,String> defaultParameters)
Returns a string parameter value. given is a parameter name and two maps with name/value parameters. |
static boolean |
verifyDescriptor(GestureSet set,
Class<? extends Descriptor> descriptorType)
Returns true if all Gesture Classes of the Gesture Set have the required descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlgorithmTool()
| Method Detail |
|---|
public static String getParameterValue(String parameter,
Map<String,String> parameters,
Map<String,String> defaultParameters)
parameter - the parameter name.parameters - the map with parameter name/value pairs.defaultParameters - the map with default parameter name/value pairs.
public static double getDoubleParameterValue(String parameter,
Map<String,String> parameters,
Map<String,String> defaultParameters)
parameter - the parameter name.parameters - the map with parameter name/value pairs.defaultParameters - the map with default parameter name/value pairs.
getParameterValue(java.lang.String, java.util.Map, java.util.Map)
public static int getIntParameterValue(String parameter,
Map<String,String> parameters,
Map<String,String> defaultParameters)
parameter - the parameter name.parameters - the map with parameter name/value pairs.defaultParameters - the map with default parameter name/value pairs.
getParameterValue(java.lang.String, java.util.Map, java.util.Map)
public static boolean verifyDescriptor(GestureSet set,
Class<? extends Descriptor> descriptorType)
set - the gesture set to test.descriptorType - the descriptor type.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||