diva.sketch.rcl
Class VotingStrokeBuilder
java.lang.Object
diva.util.xml.AbstractXmlBuilder
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VotingStrokeBuilder
public VotingStrokeBuilder()
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.