it.polito.elite.doseWS.include
Class TopicFrequency

java.lang.Object
  extended byit.polito.elite.doseWS.include.TopicFrequency

public class TopicFrequency
extends java.lang.Object

A class for storing the coverage of a given concept with respect to the indexed documents

Since:
11/2004
Version:
1.0
Author:
Dario Bonino Alessio Bosca Federico Pescarmona Michele Debandi

Constructor Summary
TopicFrequency(java.lang.String topicURI, int topicFrequency)
          Constructor
 
Method Summary
 int getFrequency()
           
 java.lang.String getTopicURI()
           
 void setFrequency(int frequency)
          Sets the value of the coverage for this object
 void setTopicURI(java.lang.String uri)
          Sets the concept to which the coverage value refers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicFrequency

public TopicFrequency(java.lang.String topicURI,
                      int topicFrequency)
Constructor

Parameters:
topicURI - the URI of the concept for which is stored the coverage
topicFrequency - the coverage of such concept as the number of indexed resources referring to it
Method Detail

getFrequency

public int getFrequency()
Returns:
the coverage of the concept stored in this object

getTopicURI

public java.lang.String getTopicURI()
Returns:
the concept stored in this object

setFrequency

public void setFrequency(int frequency)
Sets the value of the coverage for this object

Parameters:
frequency - the coverage in terms of resources pointing at the topic stored in this object

setTopicURI

public void setTopicURI(java.lang.String uri)
Sets the concept to which the coverage value refers

Parameters:
uri - the URI of the ontology concept