|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
de.lmu.ifi.dbs.elki.index.preprocessed.knn.KNNChangeEvent
public class KNNChangeEvent

Encapsulates information describing changes of the k nearest neighbors (kNNs)
of some objects due to insertion or removal of objects. Used to notify all
subscribed KNNListener of the change.
KNNListener,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
KNNChangeEvent.Type
Available event types. |
| Field Summary | |
|---|---|
private DBIDs |
objects
The ids of the kNNs that were inserted or deleted due to the insertion or removals of objects. |
private static long |
serialVersionUID
Serialization ID since Java EventObjects are expected to be serializable. |
private KNNChangeEvent.Type |
type
Holds the type of this change event. |
private DBIDs |
updates
The ids of the kNNs that were updated due to the insertion or removals of objects. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
KNNChangeEvent(Object source,
KNNChangeEvent.Type type,
DBIDs objects,
DBIDs updates)
Used to create an event when kNNs of some objects have been changed. |
|
| Method Summary | |
|---|---|
DBIDs |
getObjects()
Returns the ids of the removed or inserted kNNs (according to the type of this event). |
KNNChangeEvent.Type |
getType()
Returns the type of this change event. |
DBIDs |
getUpdates()
Returns the ids of kNNs which have been changed due to the removals or insertions. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final KNNChangeEvent.Type type
KNNChangeEvent.Typeprivate final DBIDs objects
private final DBIDs updates
| Constructor Detail |
|---|
public KNNChangeEvent(Object source,
KNNChangeEvent.Type type,
DBIDs objects,
DBIDs updates)
source - the object responsible for generating the eventtype - the type of changeobjects - the ids of the removed or inserted kNNs (according to the
type of this event)updates - the ids of kNNs which have been changed due to the removals
or insertionsKNNChangeEvent.Type.INSERT,
KNNChangeEvent.Type.DELETE| Method Detail |
|---|
public KNNChangeEvent.Type getType()
KNNChangeEvent.Type.INSERT or KNNChangeEvent.Type.DELETEpublic DBIDs getObjects()
public DBIDs getUpdates()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||