rortega.cf4j-recsys.1.1.0.source-code.Partible Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cf4j-recsys Show documentation
Show all versions of cf4j-recsys Show documentation
A Java's Collaborative Filtering library to carry out experiments in research of Collaborative Filtering based Recommender Systems. The library has been designed from researchers to researchers.
The newest version!
package cf4j;
/**
* This interface has three methods:
*
* - beforeRun: is executed once before execute the method 'run'. It can be
* used to initialize resources.
* - run: is executed once for each test element. Depending on how the
* class is called from Processor, test elements will be users or items.
* - afterRun: is executed once after execute the method run. It can be
* used to close resources.
*
*
* @see TestUsersPartible
* @see TestItemsPartible
*
* @author Fernando Ortega
*/
public abstract interface Partible {
/**
* Is executed once before execute the method 'run'. It can be used to initialize
* resources.
*/
public void beforeRun ();
/**
* Is executed once for each test element.
* @param index Index of the test element.
*/
public abstract void run (int index);
/**
* Is executed once after execute the method run. It can be used to close
* resources.
*/
public void afterRun ();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy