Package edu.fiu.jtlex.algorithms
Class TLEXAlgorithm
java.lang.Object
edu.fiu.jtlex.algorithms.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 givenIWriter
for 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 givenIWriter
for displaying the results.- Parameters:
writer
- AnIWriter
to 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 givenIWriter
during construction to display the results.- Specified by:
process
in interfaceITLEXAlgorithm
- Parameters:
sourceDirectory
- Directory to process.- Throws:
NullPointerException
- If sourceDirectory is nullIllegalArgumentException
- If sourceDirectory is not a directory- Since:
- jTLEX 1.0
-