Package edu.fiu.jtlex.processors
Class TLEXAlgorithm
java.lang.Object
edu.fiu.jtlex.processors.TLEXAlgorithm
- All Implemented Interfaces:
ITLEXAlgorithm
Implementation of
ITLEXAlgorithm.
Represents the main entry point for jTLEX.- Since:
- jTLEX 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a default instance that prints the results to console.TLEXAlgorithm(IWriter writer) Creates a TLEXAlgorithm instance with the givenIWriterfor displaying the results. -
Method Summary
-
Constructor Details
-
TLEXAlgorithm
public TLEXAlgorithm()Creates a default instance that prints the results to console. -
TLEXAlgorithm
Creates a TLEXAlgorithm instance with the givenIWriterfor displaying the results.- Parameters:
writer- AnIWriterto display the results.- Throws:
NullPointerException- If writer is null- Since:
- jTLEX 1.0
-
-
Method Details
-
process
Receives a directory's path and processes all the timeML files in it (.tml) and uses the givenIWriterduring construction to display the results.- Specified by:
processin interfaceITLEXAlgorithm- Parameters:
sourceDirectory- Directory to process.- Throws:
NullPointerException- If sourceDirectory is nullIllegalArgumentException- If sourceDirectory is not a directory- Since:
- jTLEX 1.0
-