diva.sketch.rcl
Class VotingStrokeBuilder

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

public class VotingStrokeBuilder
extends AbstractXmlBuilder

Build a voting stroke recognizer that votes among the given list of children.

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
VotingStrokeBuilder()
           
 
Method Summary
 Object build(XmlElement elt, String type)
          Build a voting stroke recognizer that votes among the given list of children.
 XmlElement generate(Object in)
          Generate an XML element for the given VotingStrokeRecognizer
 
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

VotingStrokeBuilder

public VotingStrokeBuilder()
Method Detail

build

public Object build(XmlElement elt,
                    String type)
             throws Exception
Build a voting stroke recognizer that votes among the given list of children. If the children list is empty, 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 VotingStrokeRecognizer

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


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