|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
public interface Constraint
Constraint for a composite gesture. If a composite gesture contains two or more times the same simple gestures, you MUST call the necessary add methods for one simple after each other to get correct results.
| Method Summary | |
|---|---|
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<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 |
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. |
| Method Detail |
|---|
void addGestureClass(String gestureClass)
throws IllegalArgumentException
IllegalArgumentException
void addGestureClass(String gestureClass,
int user)
throws IllegalArgumentException
IllegalArgumentException
void addGestureClass(String gestureClass,
String deviceType,
Set<String> devices)
throws IllegalArgumentException
IllegalArgumentException
void 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()
String getParameter(String property)
void setParameter(String property,
String value)
String toString()
toString in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||