public interface Constraint
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraintParameters(IConstraintParameter param) |
void |
addGestureClass(String gestureClass)
Add a gesture class to the composite gesture.
|
void |
addGestureClass(String gestureClass,
int user)
Add a gesture class to the composite gesture and specify the user that performs it.
|
void |
addGestureClass(String gestureClass,
int user,
String deviceType,
Set<String> devices)
Add a gesture class to the composite gesture and specify the user and the device type used to perform it.
|
void |
addGestureClass(String gestureClass,
String deviceType,
Set<String> devices)
Add a gesture class to the composite gesture and specify the device type used to perform it.
|
Map<String,Calendar> |
determineTimeWindows()
Determine the time window for each composing gesture.
|
Set<String> |
generatePatterns(Map<String,String> charMapping)
Generate all possible string patterns that represent the composite gesture.
|
Set<IConstraintParameter> |
getConstraintParameters() |
Set<String> |
getDistinctGestureClasses()
Get the disctinct gesture classes that compose this composite gesture
|
List<String> |
getGestureClasses()
Get all the names of the gesture classes that compose this composite gesture
|
List<DefaultConstraintEntry> |
getGestureEntries()
Get all gesture entries.
|
int |
getNumberOfGestures()
Get the number of composing gestures
|
String |
getParameter(String property) |
Map<String,String> |
getParameters()
Returns an array of containing the constraint parameters.
|
void |
removeAllConstraintParameters() |
void |
removeAllGestureClasses()
Remove all gesture classes from the composite.
|
void |
removeGestureClass(DefaultConstraintEntry entry)
Removes the specified gesture class from the composite.
|
void |
setParameter(String property,
String value) |
String |
toString() |
boolean |
validateConditions(List<Gesture<?>> gestures,
IDeviceManager manager)
Validate the constraint conditions.
|
void addGestureClass(String gestureClass) throws IllegalArgumentException
IllegalArgumentExceptionvoid addGestureClass(String gestureClass, int user) throws IllegalArgumentException
IllegalArgumentExceptionvoid addGestureClass(String gestureClass, String deviceType, Set<String> devices) throws IllegalArgumentException
IllegalArgumentExceptionvoid addGestureClass(String gestureClass, int user, String deviceType, Set<String> devices) throws IllegalArgumentException
IllegalArgumentExceptionvoid removeGestureClass(DefaultConstraintEntry entry)
void removeAllGestureClasses()
List<String> getGestureClasses()
Set<String> getDistinctGestureClasses()
int getNumberOfGestures()
List<DefaultConstraintEntry> getGestureEntries()
boolean validateConditions(List<Gesture<?>> gestures, IDeviceManager manager)
gestures - Gestures that possibly compose the composite gesture.manager - Device manager to check the associated users.Set<String> generatePatterns(Map<String,String> charMapping)
charMapping - Mapping between the gesture class name and the character representationMap<String,Calendar> determineTimeWindows()
Map<String,String> getParameters()
void addConstraintParameters(IConstraintParameter param)
void removeAllConstraintParameters()
Set<IConstraintParameter> getConstraintParameters()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.