public class TestSet extends DefaultDataObject
| Modifier and Type | Field and Description |
|---|---|
static String |
NOISE |
static String |
PROPERTY_NAME |
static String |
PROPERTY_TEST_CLASSES |
PROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
TestSet(String name)
Constructs a new test set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accepts a visitor.
|
void |
add(Gesture<?> sample)
Adds a sample to the list of samples.
|
void |
addAll(List<Gesture<?>> samples)
Adds a list of samples.
|
void |
addTestClass(TestClass testClass) |
void |
addTestClasses(List<TestClass> testClasses) |
String |
getName()
Returns the name of the test set.
|
int |
getNoiseSize()
Returns the number of samples which should be rejected by the recogniser.
|
int |
getNumberOfSamples()
Returns the number of samples in the test set.
|
TestClass |
getTestClass(String name) |
List<TestClass> |
getTestClasses()
Returns all samples.
|
boolean |
isEmpty()
Returns true if the test set is empty.
|
void |
remove(TestClass testClass)
Removes a the sample from the list of samples.
|
void |
setName(String name)
Sets the name of the test set.
|
int |
size()
Returns the size of the test set.
|
String |
toString() |
getId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROPERTY_NAME
public static final String PROPERTY_TEST_CLASSES
public static final String NOISE
public TestSet(String name)
name - the name of the test set.public void add(Gesture<?> sample)
sample - the sample to be added.public void addTestClass(TestClass testClass)
public void addAll(List<Gesture<?>> samples)
samples - the samples to be added.public void remove(TestClass testClass)
sample - the sample to be removed.public List<TestClass> getTestClasses()
public int getNoiseSize()
public void setName(String name)
name - the name of the test set.public String getName()
public int size()
public int getNumberOfSamples()
public boolean isEmpty()
public void accept(Visitor visitor)
accept in interface DataObjectaccept in class DefaultDataObjectvisitor - the visitor to be used.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.