|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.polito.elite.doseWS.include.SpectrumImpl
A java class for representing conceptual spectra, such class encapsulates all information
required in the definition of a conceptual spectra providing methods for evaluating the distance
between spectra according to a similarity value defined as:
SpectrumImplTest for the corresponding test class.,
Serialized Form| Constructor Summary | |
SpectrumImpl(java.lang.String fragmentURI,
java.lang.String fragmentXPath,
java.lang.String author,
java.lang.String type,
java.util.Hashtable conceptsAndWeights)
Constructor |
|
| Method Summary | |
java.lang.Object |
clone()
The cloner for this class |
static SpectrumImpl |
deSerialize(java.lang.String serialized)
The static deserializer for this class |
double |
dist(Spectrum sa,
Spectrum sb)
A method for evaluating the similarity between two spectra according to the similarity definition given in the class description |
boolean |
equals(java.lang.Object s)
Redefinition of the equals function for the class SpectrumImpl |
java.lang.String |
getAuthor()
|
java.util.Hashtable |
getConcepts()
|
java.lang.String |
getFragmentURI()
|
java.lang.String |
getFragmentXPath()
|
java.lang.String |
getType()
|
java.lang.String |
serialize()
The serializer for this class |
static void |
setDistParameters(double alpha,
double qu)
A static setter for the tune-up parameters in the similarity function |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpectrumImpl(java.lang.String fragmentURI,
java.lang.String fragmentXPath,
java.lang.String author,
java.lang.String type,
java.util.Hashtable conceptsAndWeights)
fragmentURI - the URI of the resource that this spectrum representfragmentXPath - the XPath identifying the specific substructure of the
resource to which this spectrum is referred| Method Detail |
public java.lang.String getFragmentURI()
getFragmentURI in interface Spectrumpublic java.lang.String getFragmentXPath()
getFragmentXPath in interface Spectrumpublic java.lang.String getAuthor()
getAuthor in interface Spectrumpublic java.lang.String getType()
getType in interface Spectrumpublic java.util.Hashtable getConcepts()
getConcepts in interface Spectrum
public double dist(Spectrum sa,
Spectrum sb)
dist in interface Spectrumsa - the first spectrumsb - the second spectrum
public static void setDistParameters(double alpha,
double qu)
alpha - the first parameter (a)qu - the second parameter (b)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface Spectrumjava.lang.CloneNotSupportedExceptionpublic java.lang.String serialize()
public static SpectrumImpl deSerialize(java.lang.String serialized)
serialized - the serialized spectrum
public boolean equals(java.lang.Object s)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||