Class ExtractionEngine
java.lang.Object
|
+--ExtractionEngine
- public class ExtractionEngine
- extends java.lang.Object
The class `ExtractionEngine' contains the procedure that drives the
extraction of higher-level knowledge from code. It uses meta cases to
navigate the source code in a data-driven manner.
This class is not meant to be instantiated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_prettyPrintHLCs
public static boolean _prettyPrintHLCs
_showIntermediateOutput
public static boolean _showIntermediateOutput
_numberOfHLCsExtracted
public static int _numberOfHLCsExtracted
ExtractionEngine
public ExtractionEngine()
extraction
public static void extraction(Frame topLevelFrame,
CaseLibrary extractionCaseLibrary,
CaseLibrary navigationCaseLibrary,
CaseLibrary prettyPrintCaseLibrary)
- Extracts the higher-level knowledge from a piece of code encoded
as a frame network.
- Parameters:
topLevelFrame
- The top-level frame in the frame network
representing the input code.extractionCaseLibrary
- The case library containing the
extraction cases.navigationCaseLibrary
- The case library containing the
navigation cases.prettyPrintCaseLibrary
- The case library containing the
pretty-print cases.
CCUSinit
public static void CCUSinit(CaseLibrary extractionCaseLibrary,
CaseLibrary navigationCaseLibrary,
CaseLibrary prettyPrintCaseLibrary)
- Extracts the higher-level knowledge from a piece of code encoded
as a frame network.
- Parameters:
topLevelFrame
- The top-level frame in the frame network
representing the input code.extractionCaseLibrary
- The case library containing the
extraction cases.navigationCaseLibrary
- The case library containing the
navigation cases.prettyPrintCaseLibrary
- The case library containing the
pretty-print cases.
CCUSextract
public static OrderedHashtable CCUSextract(Frame promptFrame)
- An interface to the extraction engine for the HLC-extracting CCUS.
- Parameters:
promptFrame
- The prompt frame for extraction.- Returns:
- A hash table containing the HLCs extracted from the given
prompt.