public class RecommenderJColibri extends Object implements RecommenderAlgorithm, es.ucm.fdi.gaia.jcolibri.cbraplications.StandardCBRApplication
Constructor and Description |
---|
RecommenderJColibri(es.ucm.fdi.gaia.jcolibri.cbrcore.Connector connector,
int kNeighbourhood,
es.ucm.fdi.gaia.jcolibri.method.retrieve.NNretrieval.similarity.GlobalSimilarityFunction globalSimFunction,
List<LocalSimilarityConfiguration> configurations) |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Method to finish and close a recommender algorithm.
|
void |
configure() |
void |
cycle(es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery query) |
boolean |
init()
It calls the configure and preCycle methods of jColibri.
|
void |
postCycle() |
es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCaseBase |
preCycle() |
List<RecommenderResult> |
recommend(Query query)
It calls the cycle method of jColibri using the query of the recommender system.
|
@Inject public RecommenderJColibri(es.ucm.fdi.gaia.jcolibri.cbrcore.Connector connector, int kNeighbourhood, es.ucm.fdi.gaia.jcolibri.method.retrieve.NNretrieval.similarity.GlobalSimilarityFunction globalSimFunction, List<LocalSimilarityConfiguration> configurations)
public boolean init()
init
in interface RecommenderAlgorithm
public List<RecommenderResult> recommend(Query query)
recommend
in interface RecommenderAlgorithm
query
- Query that contains the information to make a recomendation.public boolean close()
RecommenderAlgorithm
close
in interface RecommenderAlgorithm
public void configure() throws es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
configure
in interface es.ucm.fdi.gaia.jcolibri.cbraplications.StandardCBRApplication
es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
public void cycle(es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery query) throws es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
cycle
in interface es.ucm.fdi.gaia.jcolibri.cbraplications.StandardCBRApplication
es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
public void postCycle() throws es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
postCycle
in interface es.ucm.fdi.gaia.jcolibri.cbraplications.StandardCBRApplication
es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
public es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCaseBase preCycle() throws es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
preCycle
in interface es.ucm.fdi.gaia.jcolibri.cbraplications.StandardCBRApplication
es.ucm.fdi.gaia.jcolibri.exception.ExecutionException
Copyright © 2019. All rights reserved.