|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttml.vectorspace.operations.AbstractOperation<E>
E - The class for the result of the particular operationpublic abstract class AbstractOperation<E>
Abstract class for all operations, it contains the common attributes and the start() and end() methods.
| Constructor Summary | |
|---|---|
AbstractOperation()
Constructs a default operation with no Corpus attached to it |
|
AbstractOperation(Corpus corpus)
Creates a new instance with a corpus ready |
|
| Method Summary | |
|---|---|
void |
addOperationListener(OperationListener listener)
|
Corpus |
getBackgroundKnowledgeCorpus()
|
Corpus |
getCorpus()
|
int |
getMaxResults()
|
java.lang.String |
getName()
|
Repository |
getRepository()
|
java.util.List<E> |
getResults()
|
java.lang.String |
getResultsCSVString()
|
int |
getResultsNumber()
|
java.lang.String |
getResultsString(java.lang.String start,
java.lang.String end,
java.lang.String startLine,
java.lang.String endLine,
java.lang.String separator)
|
java.lang.String[][] |
getResultsStringTable()
|
java.lang.Object[][] |
getResultsTable()
|
java.lang.Object[] |
getResultsTableHeader()
|
java.lang.String |
getResultsXML()
|
long |
getTimeElapsed()
|
void |
printResults()
Print results on the console |
void |
printResultsCSV()
Prints the results on the console using a comma as separator |
void |
printResultsMatlab()
Prints the results on the console a'la Matlab |
void |
removeOperationListener(OperationListener listener)
|
void |
setBackgroundKnowledgeCorpus(Corpus backgroundKnowledgeCorpus)
|
void |
setCorpus(Corpus corpus)
|
void |
setMaxResults(int maxResults)
Sets the maximum results the operation will return |
void |
start()
Starts the operation execution |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractOperation()
Corpus attached to it
public AbstractOperation(Corpus corpus)
corpus - the corpus to process| Method Detail |
|---|
public Repository getRepository()
public void addOperationListener(OperationListener listener)
addOperationListener in interface Operation<E>public void removeOperationListener(OperationListener listener)
removeOperationListener in interface Operation<E>public Corpus getCorpus()
getCorpus in interface Operation<E>Corpus used for the operationpublic int getMaxResults()
getMaxResults in interface Operation<E>public java.lang.String getName()
getName in interface Operation<E>public Corpus getBackgroundKnowledgeCorpus()
getBackgroundKnowledgeCorpus in interface Operation<E>public java.util.List<E> getResults()
getResults in interface Operation<E>public java.lang.String getResultsCSVString()
getResultsCSVString in interface Operation<E>public int getResultsNumber()
getResultsNumber in interface Operation<E>
public java.lang.String getResultsString(java.lang.String start,
java.lang.String end,
java.lang.String startLine,
java.lang.String endLine,
java.lang.String separator)
start - end - startLine - endLine - separator -
public long getTimeElapsed()
getTimeElapsed in interface Operation<E>public void printResults()
public void printResultsCSV()
printResultsCSV in interface Operation<E>public void printResultsMatlab()
printResultsMatlab in interface Operation<E>public void setCorpus(Corpus corpus)
setCorpus in interface Operation<E>corpus - sets the Corpus that will be used for the operationpublic void setMaxResults(int maxResults)
setMaxResults in interface Operation<E>maxResults - the maximum results the operation will returnpublic void setBackgroundKnowledgeCorpus(Corpus backgroundKnowledgeCorpus)
setBackgroundKnowledgeCorpus in interface Operation<E>backgroundKnowledgeCorpus - the corpus that will be used as background knowledge
public void start()
throws java.lang.Exception
Operation
start in interface Operation<E>java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object[][] getResultsTable()
getResultsTable in interface Operation<E>public java.lang.String[][] getResultsStringTable()
getResultsStringTable in interface Operation<E>public java.lang.Object[] getResultsTableHeader()
getResultsTableHeader in interface Operation<E>public java.lang.String getResultsXML()
getResultsXML in interface Operation<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||