Class EvEx

java.lang.Object
  extended by EvEx

public class EvEx
extends java.lang.Object

Main class for the EvEx program. Executed from the command line with the following syntax:

This program is also documented in the report and has a set of userdocs.

Since:
1.0

Field Summary
 Anto anto
           
 boolean debug_ge
           
 boolean debug_op
           
 boolean debug_tql
           
 java.util.ArrayList<Evaluator> evaluation
           
 java.io.File fileGoldFile
           
 java.io.File fileTestFile
           
 java.util.ArrayList<GAbstract> genia
           
 java.lang.String genxml_name
           
 GENIAParser gparser
           
 boolean manual
           
 OntologyParser op
           
 Syno syno
           
 TQLParser tparser
           
 java.util.ArrayList<TQLAbstract> tqlabs
           
 java.lang.String tqlxml_name
           
 
Constructor Summary
EvEx()
           
 
Method Summary
 void action(java.lang.String strGoldFile, java.lang.String strTestFile)
          This is the invoking method of the entire system.
 float floatDiv(float x, float y)
          Method for float division that returns 0 if dividend is 0.
 int intDiv(int x, int y)
          Simplifies division of two integers by returning the results in percent.
static void main(java.lang.String[] args)
          Invoked when starting program from command line, e.g.\ common Java behaviour.
 java.lang.String perc(int x, int y)
          Wrapper method for intDiv that return the answer enclosed in a string, appended ( %)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

op

public OntologyParser op

tqlabs

public java.util.ArrayList<TQLAbstract> tqlabs

genia

public java.util.ArrayList<GAbstract> genia

evaluation

public java.util.ArrayList<Evaluator> evaluation

fileTestFile

public java.io.File fileTestFile

fileGoldFile

public java.io.File fileGoldFile

tparser

public TQLParser tparser

gparser

public GENIAParser gparser

syno

public Syno syno

anto

public Anto anto

tqlxml_name

public java.lang.String tqlxml_name

genxml_name

public java.lang.String genxml_name

debug_tql

public boolean debug_tql

debug_ge

public boolean debug_ge

debug_op

public boolean debug_op

manual

public boolean manual
Constructor Detail

EvEx

public EvEx()
Method Detail

action

public void action(java.lang.String strGoldFile,
                   java.lang.String strTestFile)
This is the invoking method of the entire system. It will

Parameters:
strGoldFile - a String that contains the path to the gold standard file
strTestFile - a String that contains the path to the file to be tested against the gold standard

main

public static void main(java.lang.String[] args)
Invoked when starting program from command line, e.g.\ common Java behaviour. This method also takes care of parsing arguments from command line and set appropriate variables.


intDiv

public int intDiv(int x,
                  int y)
Simplifies division of two integers by returning the results in percent.

Parameters:
x - dividend
y - divison
Returns:
the percent result

perc

public java.lang.String perc(int x,
                             int y)
Wrapper method for intDiv that return the answer enclosed in a string, appended ( %)

Parameters:
x - divisor
y - dividend
Returns:
a string appended pretty characters
See Also:
intDiv(int, int)

floatDiv

public float floatDiv(float x,
                      float y)
Method for float division that returns 0 if dividend is 0.

Parameters:
x - divisor
y - dividend
Returns:
the result