org.gcube.dir.master.queries
Class DefaultQueryTerm

java.lang.Object
  extended by org.gcube.dir.master.queries.QueryTerm
      extended by org.gcube.dir.master.queries.DefaultQueryTerm

public class DefaultQueryTerm
extends QueryTerm

A weighted Query term.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
DefaultQueryTerm(java.lang.String name, float weight)
          Creates an instance with a given name and weight.
 
Method Summary
 float getWeight()
          Returns the weight of the term.
 void setWeight(float weight)
          Sets the weight of the term.
 
Methods inherited from class org.gcube.dir.master.queries.QueryTerm
getName, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQueryTerm

public DefaultQueryTerm(java.lang.String name,
                        float weight)
Creates an instance with a given name and weight.

Parameters:
name - the name.
weight - the weight.
Method Detail

getWeight

public float getWeight()
Returns the weight of the term.

Returns:
the weight.

setWeight

public void setWeight(float weight)
Sets the weight of the term.

Parameters:
weight - the weight.