Class TLEXAlgorithm

java.lang.Object
edu.fiu.jtlex.algorithms.TLEXAlgorithm
All Implemented Interfaces:
ITLEXAlgorithm

public class TLEXAlgorithm extends Object implements ITLEXAlgorithm
Implementation of ITLEXAlgorithm. Represents the main entry point for jTLEX.
Since:
jTLEX 1.0
See Also:
  • Constructor Details

    • TLEXAlgorithm

      public TLEXAlgorithm()
      Creates a default instance that prints the results to console.
    • TLEXAlgorithm

      public TLEXAlgorithm(IWriter writer)
      Creates a TLEXAlgorithm instance with the given IWriter for displaying the results.
      Parameters:
      writer - An IWriter to display the results.
      Throws:
      NullPointerException - If writer is null
      Since:
      jTLEX 1.0
  • Method Details

    • process

      public void process(String sourceDirectory)
      Receives a directory's path and processes all the timeML files in it (.tml) and uses the given IWriter during construction to display the results.
      Specified by:
      process in interface ITLEXAlgorithm
      Parameters:
      sourceDirectory - Directory to process.
      Throws:
      NullPointerException - If sourceDirectory is null
      IllegalArgumentException - If sourceDirectory is not a directory
      Since:
      jTLEX 1.0