diva.sketch.recognition
Class SceneDelta.Additive

java.lang.Object
  extended by diva.sketch.recognition.SceneDelta
      extended by diva.sketch.recognition.SceneDelta.Additive
Enclosing class:
SceneDelta

public static class SceneDelta.Additive
extends SceneDelta

An additive version of the SceneDelta class. Additive deltas add themselves to the scene database on demand, when the user calls the commit() method.


Nested Class Summary
 
Nested classes/interfaces inherited from class diva.sketch.recognition.SceneDelta
SceneDelta.Additive, SceneDelta.Subtractive
 
Constructor Summary
SceneDelta.Additive(Scene db, TypedData data, double confidence, SceneElement[] elements)
          Construct a new scene delta on the given database, consisting of the given root that was added to the database, as well as the
SceneDelta.Additive(Scene db, TypedData data, double confidence, SceneElement[] elements, String[] names)
          Construct a new scene delta on the given database, consisting of the given root that was added to the database, as well as the
 
Method Summary
 void commit()
          Commit the results of this delta to the scene.
 Iterator elements()
          Entries that were added but are not the root.
 double getConfidence()
          Get the confidence of the root of the delta.
 CompositeElement getRoot()
          Root that was added
 String toString()
           
 void veto()
          Remove this delta from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SceneDelta.Additive

public SceneDelta.Additive(Scene db,
                           TypedData data,
                           double confidence,
                           SceneElement[] elements,
                           String[] names)
Construct a new scene delta on the given database, consisting of the given root that was added to the database, as well as the


SceneDelta.Additive

public SceneDelta.Additive(Scene db,
                           TypedData data,
                           double confidence,
                           SceneElement[] elements)
Construct a new scene delta on the given database, consisting of the given root that was added to the database, as well as the

Method Detail

getConfidence

public double getConfidence()
Get the confidence of the root of the delta.

Specified by:
getConfidence in class SceneDelta

getRoot

public CompositeElement getRoot()
Root that was added

Specified by:
getRoot in class SceneDelta

elements

public Iterator elements()
Entries that were added but are not the root.

Specified by:
elements in class SceneDelta

commit

public void commit()
Commit the results of this delta to the scene.

Specified by:
commit in class SceneDelta

veto

public void veto()
Remove this delta from the database. Since additive deltas have not been added to the database, this method won't do anything until commit() has been called.

Specified by:
veto in class SceneDelta

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.