public class ResultSet extends Object
| Constructor and Description |
|---|
ResultSet()
Constructs a new result set.
|
ResultSet(int maxSize)
Constructs a new result set with a specific maximal size.
|
ResultSet(Recogniser source)
Constructs a new result set.
|
ResultSet(Recogniser source,
int maxSize)
Constructs a new result set with a specific maximal size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(Result result)
Adds a result object to the result set.
|
void |
addResults(Collection<Result> results)
Adds a collection of result objects.
|
boolean |
contains(GestureClass gestureClass)
Returns true if the result set contains the given gesture class.
|
Gesture<?> |
getGesture()
Returns the gesture to be recognised.
|
Result |
getResult()
Returns the first result object which is also the result object with the
highest recognition accuracy.
|
Result |
getResult(int index)
Returns the result for a given index position.
|
List<Result> |
getResults()
Returns a list containing all result objects.
|
Recogniser |
getSource()
Get the source Recogniser that created this ResultSet
|
boolean |
isEmpty()
Return true if the result set is empty.
|
void |
setGesture(Gesture<?> gesture)
Sets the gesture to be recognised.
|
void |
setSource(Recogniser source)
Set the source Recogniser that created this ResultSet.
|
int |
size()
Returns the number of results.
|
String |
toString() |
public ResultSet()
public ResultSet(Recogniser source)
source - The source that created this resultsetpublic ResultSet(int maxSize)
maxSize - the maximal size of the result set.public ResultSet(Recogniser source, int maxSize)
source - the source that created this ResultSetmaxSize - the maximal size of the result set.public void addResult(Result result)
result - the result object to be added.public void addResults(Collection<Result> results)
results - the result objects to be added.public List<Result> getResults()
public Result getResult(int index)
index - the index of the result object to be returned.public Result getResult()
public boolean contains(GestureClass gestureClass)
gestureClass - the gesture class to be tested for.public int size()
public boolean isEmpty()
public void setGesture(Gesture<?> gesture)
gesture - the gesture to be recognised.public Gesture<?> getGesture()
public Recogniser getSource()
public void setSource(Recogniser source)
source - the source to setCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.