diva.sketch.rcl
Class VotingSceneBuilder

java.lang.Object
  extended by diva.util.xml.AbstractXmlBuilder
      extended by diva.sketch.rcl.VotingSceneBuilder
All Implemented Interfaces:
XmlBuilder

public class VotingSceneBuilder
extends AbstractXmlBuilder

Build a voting scene recognizer that votes among the children of the given element.

Version:
$Revision: 1.3 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)

Field Summary
static String MIN_CONFIDENCE
          The min-confidence attribute tag.
static String N_HIGHEST
          The n-highest attribute tag.
 
Constructor Summary
VotingSceneBuilder()
           
 
Method Summary
 Object build(XmlElement elt, String type)
          Build a voting scene recognizer that votes among the children of the given element.
 XmlElement generate(Object in)
          Generate an XML element for the given VotingSceneRecognizer
 
Methods inherited from class diva.util.xml.AbstractXmlBuilder
getDelegate, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_HIGHEST

public static final String N_HIGHEST
The n-highest attribute tag.

See Also:
Constant Field Values

MIN_CONFIDENCE

public static final String MIN_CONFIDENCE
The min-confidence attribute tag.

See Also:
Constant Field Values
Constructor Detail

VotingSceneBuilder

public VotingSceneBuilder()
Method Detail

build

public Object build(XmlElement elt,
                    String type)
             throws Exception
Build a voting scene recognizer that votes among the children of the given element. If the given element has no children, throw an IllegalArgumentException.

Specified by:
build in interface XmlBuilder
Specified by:
build in class AbstractXmlBuilder
Throws:
Exception

generate

public XmlElement generate(Object in)
                    throws Exception
Generate an XML element for the given VotingSceneRecognizer

Specified by:
generate in interface XmlBuilder
Overrides:
generate in class AbstractXmlBuilder
Throws:
Exception


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