T
- the class of instances that are classifiedC
- the class of instances that represent the classification categoriespublic interface UpdatableClassifier<T,C> extends Classifier<T,C>
Classifier
that allows to add or remove objects from the classifier.Modifier and Type | Method and Description |
---|---|
boolean |
addClasifiedObject(T object,
C classification)
Adds a classified object to this classifier.
|
boolean |
removeClasifiedObject(T object)
Removes a classified object from this classifier.
|
classify, getCategoriesClass
boolean addClasifiedObject(T object, C classification) throws ClassificationException
object
- the object to addclassification
- the object's classificationClassificationException
- if there was a problem adding the object to this classifierboolean removeClasifiedObject(T object) throws ClassificationException
object
- the object to removeClassificationException
- if there was a problem removing the object from this classifier