public class CardinalityConstraintParameters extends AbstractConstraintParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
CardinalityConstraintParameters.Config |
DEFAULT_CONFIGURATION, PROPERTY_CONSTRAINT_PARAMETER_VALUE, setterMappingPROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
CardinalityConstraintParameters() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Calendar> |
determineTimeWindows(List<DefaultConstraintEntry> gestures) |
Set<String> |
generatePatterns(Map<String,String> charMapping,
List<DefaultConstraintEntry> gestures) |
int |
getMaximumGestures()
Get the maximum number of gestures that has to be performed
|
int |
getMinimumGestures()
Get the minimum number of gestures that has to be performed
|
void |
setMaximumGestures(String max)
Set the maximum number of gestures to perform
|
void |
setMinimumGestures(String min)
Set the minimum number of gestures to perform
|
boolean |
validateConditions(List<Gesture<?>> gestures,
IDeviceManager manager) |
getParameter, getParameters, setParameteraccept, getId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic void setMinimumGestures(String min) throws NumberFormatException
NumberFormatExceptionpublic int getMinimumGestures()
public void setMaximumGestures(String max) throws NumberFormatException
NumberFormatExceptionpublic int getMaximumGestures()
public boolean validateConditions(List<Gesture<?>> gestures, IDeviceManager manager)
validateConditions in interface IConstraintParametervalidateConditions in class AbstractConstraintParameterspublic Map<String,Calendar> determineTimeWindows(List<DefaultConstraintEntry> gestures)
determineTimeWindows in interface IConstraintParameterdetermineTimeWindows in class AbstractConstraintParameterspublic Set<String> generatePatterns(Map<String,String> charMapping, List<DefaultConstraintEntry> gestures)
generatePatterns in interface IConstraintParametergeneratePatterns in class AbstractConstraintParametersCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.