ucot.heuristic
Class AbbottsHeuristic

java.lang.Object
  extended by ucot.ModuleProperties
      extended by ucot.heuristic.AbbottsHeuristic
All Implemented Interfaces:
HeuristicInterface, ModulePropertyInterface

public class AbbottsHeuristic
extends ModuleProperties
implements HeuristicInterface

Abbott's Heuristic is a way to etsimate which parts of the speech are relevant and in which way when doing object analyze.

Author:
UCOT

Field Summary
private  java.util.logging.Logger logger
           
static java.lang.String name
           
 
Fields inherited from class ucot.ModuleProperties
properties, propertiesURL
 
Constructor Summary
AbbottsHeuristic()
           
 
Method Summary
 void applyProperties()
          Applies current properties for the module.
 void doHeuristic(ParsedData data, AnalyzeModel analyzeModel)
          Performs heuristic on given ParsedData object returns.
 java.lang.String getName()
          Returns adapter's name.
 java.util.Properties loadDefaultProperties()
          Method which returns the factory default properties for the module.
 java.lang.String toString()
           
 
Methods inherited from class ucot.ModuleProperties
getProperties, loadProperties, saveProperties, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucot.ModulePropertyInterface
getProperties, loadProperties, saveProperties, setProperties
 

Field Detail

name

public static final java.lang.String name
See Also:
Constant Field Values

logger

private java.util.logging.Logger logger
Constructor Detail

AbbottsHeuristic

public AbbottsHeuristic()
Method Detail

doHeuristic

public void doHeuristic(ParsedData data,
                        AnalyzeModel analyzeModel)
                 throws java.lang.Exception
Description copied from interface: HeuristicInterface
Performs heuristic on given ParsedData object returns.

Specified by:
doHeuristic in interface HeuristicInterface
Parameters:
data - Parsed Use case for the heuristic.
analyzeModel - Analyze model where parsed data is added to.
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Description copied from interface: HeuristicInterface
Returns adapter's name.

Specified by:
getName in interface HeuristicInterface
Returns:
Adapter's name.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

loadDefaultProperties

public java.util.Properties loadDefaultProperties()
Description copied from interface: ModulePropertyInterface

Method which returns the factory default properties for the module.

Specified by:
loadDefaultProperties in interface ModulePropertyInterface
Overrides:
loadDefaultProperties in class ModuleProperties
Returns:
Default properties.
See Also:
ModulePropertyInterface.loadDefaultProperties()

applyProperties

public void applyProperties()
                     throws BadPropertyValueException
Description copied from interface: ModulePropertyInterface

Applies current properties for the module.

Specified by:
applyProperties in interface ModulePropertyInterface
Overrides:
applyProperties in class ModuleProperties
Throws:
BadPropertyValueException - In this case exception is thrown only if either the given parser or heuristic does not exist.
See Also:
ModulePropertyInterface.applyProperties()