|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.test.test16.EmailConnector
public class EmailConnector
Connector that read cases from a zip file with several textual files (one per email).
The filename must start by ham or spam depending on the class.
The corpus is packed into the lib\textual\spamcorpus\spamcorpus.jar file and was extracted
from the Apache Spamassassin project (http://spamassassin.apache.org/publiccorpus/).
Constructor Summary | |
---|---|
EmailConnector(java.lang.String zipfile)
Creates a connector for a given zip file. |
Method Summary | |
---|---|
void |
close()
Cleanup any resource that the connector might be using, and suspends the service |
void |
deleteCases(java.util.Collection<CBRCase> cases)
Deletes given cases for the storage media |
void |
initFromXMLfile(java.net.URL file)
Initialices the connector with the given XML file |
java.util.Collection<CBRCase> |
retrieveAllCases()
Returns max cases without any special consideration |
java.util.Collection<CBRCase> |
retrieveSomeCases(CaseBaseFilter filter)
Retrieves some cases depending on the filter. |
void |
storeCases(java.util.Collection<CBRCase> cases)
Stores given classes on the storage media |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmailConnector(java.lang.String zipfile)
Method Detail |
---|
public void close()
Connector
close
in interface Connector
public void deleteCases(java.util.Collection<CBRCase> cases)
Connector
deleteCases
in interface Connector
cases
- List of casespublic void initFromXMLfile(java.net.URL file) throws InitializingException
Connector
initFromXMLfile
in interface Connector
file
- XMl file with the settings
InitializingException
- Raised if the connector can not be initialezed.public java.util.Collection<CBRCase> retrieveAllCases()
Connector
retrieveAllCases
in interface Connector
public java.util.Collection<CBRCase> retrieveSomeCases(CaseBaseFilter filter)
Connector
retrieveSomeCases
in interface Connector
public void storeCases(java.util.Collection<CBRCase> cases)
Connector
storeCases
in interface Connector
cases
- List of cases
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |