com.flickrrecsys.engine
Class TagSimilarityEng
java.lang.Object
com.flickrrecsys.engine.TagSimilarityEng
public class TagSimilarityEng
- extends java.lang.Object
This class extracts contact from groups which have already been selected as
most frequently used. Then the class extracts those member's tag cloud and
records them to the database. Once all extractions are done then the user's
tag cloud will be checked in terms of its similarity and if its similarity
was above the threshold which was set in the customisation the result will
be returned.
- Author:
- Hossein Ghodsi
|
Constructor Summary |
TagSimilarityEng(java.lang.String nsid,
java.lang.String servletPath,
com.aetrion.flickr.Flickr f,
java.lang.String filePath)
The constructor assigns parameters passed to it to global variable |
|
Method Summary |
java.util.Vector<MyUser> |
getSimilarUsers()
This method finds contacts based on tag clouds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagSimilarityEng
public TagSimilarityEng(java.lang.String nsid,
java.lang.String servletPath,
com.aetrion.flickr.Flickr f,
java.lang.String filePath)
- The constructor assigns parameters passed to it to global variable
- Parameters:
nsid - user ID given to user by the Flickr websiteservletPath - where the datbase details are locatedf - Flickr object in order to connect to the Flickr APIfilePath - where the authentication file located
getSimilarUsers
public java.util.Vector<MyUser> getSimilarUsers()
- This method finds contacts based on tag clouds. If tag clouds similarity
was above the value of threshold then the contact will be recommended.
Finally the method connect to the Flickr API in order to get user's details
- Returns:
- Vector of MyUser