|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.core.ResultSet
public class ResultSet
Class representing a set of result objects.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 String toString()
toString in class Objectpublic Recogniser getSource()
public void setSource(Recogniser source)
source - the source to set
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||