diva.sketch.parser2d
Class NativeResults

java.lang.Object
  extended by diva.sketch.parser2d.NativeResults

public class NativeResults
extends Object

A class that encapsulates the parse results of a native rule so that native rules do not have to deal with the implementation details of the parser. All we want back from the native rule is the typed data result and some probability associated with that result.

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

Field Summary
 TypedData data
          The typed data that was generated by the rule.
 double probability
          The confidence associated with this result, between 0 and 100.
 
Constructor Summary
NativeResults(TypedData data, double probability)
          Construct a new result object that contains the given data and probability.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public TypedData data
The typed data that was generated by the rule.


probability

public double probability
The confidence associated with this result, between 0 and 100.

Constructor Detail

NativeResults

public NativeResults(TypedData data,
                     double probability)
Construct a new result object that contains the given data and probability.



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