jInfer

cz.cuni.mff.ksi.jinfer.twostep
Class TwoStepSimplifierFactory

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.twostep.TwoStepSimplifierFactory
All Implemented Interfaces:
Capabilities, Simplifier, NamedModule

public class TwoStepSimplifierFactory
extends Object
implements Simplifier

TwoStepSimplifier is modular, extensible implementation. Factory class for the worker TwoStepSimplifier.


Field Summary
static String DISPLAY_NAME
          Name displayed to user in properties panels.
static String NAME
          Name of the module in constant, for use in classes in this module.
static String PROPERTIES_CLEANER
          Property name of regular expression cleaner submodule.
static String PROPERTIES_CLEANER_DEFAULT
          Default cleaner to be used if none selected.
static String PROPERTIES_CLUSTER_PROCESSOR
          Property name of cluster processor submodule.
static String PROPERTIES_CLUSTER_PROCESSOR_DEFAULT
          Default cluster processor to be used if none selected.
static String PROPERTIES_CLUSTERER
          Property name of clusterer submodule.
static String PROPERTIES_CLUSTERER_DEFAULT
          Default clusterer to be used if none selected.
static String PROPERTIES_CONTENT_INFERRER
          Property name of content inferrer submodule.
static String PROPERTIES_CONTENT_INFERRER_DEFAULT
          Default content inferrer to be used if none selected.
 
Constructor Summary
TwoStepSimplifierFactory()
           
 
Method Summary
 List<String> getCapabilities()
          Returns the list of capabilities (strings) of this module.
 String getDisplayName()
          Returns a user friendly name of the module.
 String getModuleDescription()
          Returns the information about this module's inner workings.
 String getName()
          Canonical name
 void start(List<Element> initialGrammar, SimplifierCallback callback)
          Start the grammar simplification process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Name of the module in constant, for use in classes in this module.

See Also:
Constant Field Values

DISPLAY_NAME

public static final String DISPLAY_NAME
Name displayed to user in properties panels.

See Also:
Constant Field Values

PROPERTIES_CLUSTERER

public static final String PROPERTIES_CLUSTERER
Property name of clusterer submodule.

See Also:
Constant Field Values

PROPERTIES_CLUSTERER_DEFAULT

public static final String PROPERTIES_CLUSTERER_DEFAULT
Default clusterer to be used if none selected.

See Also:
Constant Field Values

PROPERTIES_CLUSTER_PROCESSOR

public static final String PROPERTIES_CLUSTER_PROCESSOR
Property name of cluster processor submodule.

See Also:
Constant Field Values

PROPERTIES_CLUSTER_PROCESSOR_DEFAULT

public static final String PROPERTIES_CLUSTER_PROCESSOR_DEFAULT
Default cluster processor to be used if none selected.

See Also:
Constant Field Values

PROPERTIES_CLEANER

public static final String PROPERTIES_CLEANER
Property name of regular expression cleaner submodule.

See Also:
Constant Field Values

PROPERTIES_CLEANER_DEFAULT

public static final String PROPERTIES_CLEANER_DEFAULT
Default cleaner to be used if none selected.

See Also:
Constant Field Values

PROPERTIES_CONTENT_INFERRER

public static final String PROPERTIES_CONTENT_INFERRER
Property name of content inferrer submodule.

See Also:
Constant Field Values

PROPERTIES_CONTENT_INFERRER_DEFAULT

public static final String PROPERTIES_CONTENT_INFERRER_DEFAULT
Default content inferrer to be used if none selected.

See Also:
Constant Field Values
Constructor Detail

TwoStepSimplifierFactory

public TwoStepSimplifierFactory()
Method Detail

getName

public String getName()
Canonical name

Specified by:
getName in interface NamedModule
Returns:
name

getModuleDescription

public String getModuleDescription()
Description copied from interface: NamedModule
Returns the information about this module's inner workings. Most of the time will be equal to a call to NamedModule.getDisplayName(), but if the module for example consists of more sub-modules, their names should be listed here.

Specified by:
getModuleDescription in interface NamedModule
Returns:
String describing inner structure of the module.

getCapabilities

public List<String> getCapabilities()
Description copied from interface: Capabilities
Returns the list of capabilities (strings) of this module.

Specified by:
getCapabilities in interface Capabilities
Returns:
List of capability names.

start

public void start(List<Element> initialGrammar,
                  SimplifierCallback callback)
           throws InterruptedException
Description copied from interface: Simplifier
Start the grammar simplification process. This method is called by the Runner module as the second stage of inference.

Specified by:
start in interface Simplifier
Parameters:
initialGrammar - Initial Grammar to be simplified.
callback - A callback object. When the initial grammar is simplified, the resulting list of rules must be sent to the last stage by calling the finished() method of this object.
Throws:
InterruptedException

getDisplayName

public String getDisplayName()
Description copied from interface: NamedModule
Returns a user friendly name of the module. This name is not neccessary unique.

Specified by:
getDisplayName in interface NamedModule
Returns:
Displayable module name.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011