|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.core.DefaultPropertyChangeNotifier
org.ximtec.igesture.core.DefaultDataObject
org.ximtec.igesture.configuration.Configuration
public class Configuration
Configuration object used by the algorithms. The configuration object contains information about the used gesture set (1..*), the algorithm(s) to be used (1..*), the parameters for the algorithms, the minimal accuracy as well as the size of the result list in the result set.
| Field Summary | |
|---|---|
static String |
PROPERTY_NAME
|
| Fields inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
PROPERTY_ID |
| Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
propertyChangeSupport |
| Constructor Summary | |
|---|---|
Configuration()
Constructs a new configuration and initialises the used containers. |
|
Configuration(String name)
|
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
Accepts a visitor. |
void |
addAlgorithm(String algorithm)
Adds an algorithm to the configuration. |
void |
addGestureSet(GestureSet gestureSet)
Adds a gesture set to the configuration. |
void |
addGestureSets(List<GestureSet> gestureSets)
Adds a list of gesture sets to the configuration. |
void |
addParameter(String algorithm,
String key,
String value)
Adds a key/value parameter to the specified algorithm. |
Object |
clone()
Clones the Configuration instance. |
List<String> |
getAlgorithms()
Returns the list with all algorithms. |
GestureHandler |
getGestureHandler()
Returns the gesture handler. |
GestureSet |
getGestureSet()
Returns the combined gesture set. |
List<GestureSet> |
getGestureSets()
Returns the list of gesture sets. |
int |
getMaxResultSetSize()
Returns the maximal result set size. |
double |
getMinAccuracy()
Returns the minimal accuracy. |
String |
getName()
|
Map<String,String> |
getParameters(String classname)
Returns the map of parameters for a specific algorithm. |
void |
removeAlgorithm(String algorithm)
Removes an algorithm from the configuration. |
void |
removeAllGestureSets()
Removes all gesture sets. |
void |
removeGestureSet(GestureSet gestureSet)
Removes a gesture set from the configuration. |
void |
removeParameters(String classname)
Removes all parameter for a specific algorithm. |
void |
setGestureHandler(GestureHandler gestureHandler)
Sets the gesture handler. |
void |
setMaxResultSetSize(int maxResultSetSize)
Sets the maximal result set size. |
void |
setMinAccuracy(double minAccuracy)
Sets the minimal accuracy. |
void |
setName(String name)
|
String |
toString()
|
| Methods inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
getId, setId |
| Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final String PROPERTY_NAME
| Constructor Detail |
|---|
public Configuration()
public Configuration(String name)
| Method Detail |
|---|
public void addGestureSet(GestureSet gestureSet)
gestureSet - the gesture set to be added.public void addGestureSets(List<GestureSet> gestureSets)
gestureSets - the list of gesture sets to be added.public void removeAllGestureSets()
public void removeGestureSet(GestureSet gestureSet)
gestureSet - the gesture set to be removed.public List<GestureSet> getGestureSets()
public GestureSet getGestureSet()
public void addAlgorithm(String algorithm)
algorithm - the algorithm to be added to the configuration.public void removeAlgorithm(String algorithm)
algorithm - the algorithm to be removed.public List<String> getAlgorithms()
public void addParameter(String algorithm,
String key,
String value)
algorithm - the algorithm the parameter has to be added to.key - the key of the parameter to be added.value - the parameter value the value of the parameter to be added.public Map<String,String> getParameters(String classname)
classname - the classname of the algorithm whose parameters have to be
returned.
public void removeParameters(String classname)
classname - the classname of the algorithm whose parameters have to be
removed.public void setGestureHandler(GestureHandler gestureHandler)
gestureHandler - the gesture handler to be set.public GestureHandler getGestureHandler()
public void setMinAccuracy(double minAccuracy)
minAccuracy - the minimal accuracy to be set.public double getMinAccuracy()
public void setName(String name)
public String getName()
public void setMaxResultSetSize(int maxResultSetSize)
maxResultSetSize - the maximal result set size.public int getMaxResultSetSize()
public Object clone()
clone in class Objectpublic void accept(Visitor visitor)
DefaultDataObject
accept in interface DataObjectaccept in class DefaultDataObjectvisitor - the visitor to be used.public String toString()
toString in class Object
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||