public class Configuration extends DefaultDataObject implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME |
PROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
Configuration()
Constructs a new configuration and initialises the used containers.
|
Configuration(String name) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROPERTY_NAME
public Configuration()
public Configuration(String name)
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()
public void accept(Visitor visitor)
DefaultDataObjectaccept in interface DataObjectaccept in class DefaultDataObjectvisitor - the visitor to be used.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.