|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.dico.islab.idbs2.cloud.EsType
public class EsType
Representation of an essential's type with associated relevance. See essential concept in it.unimi.dico.islab.db.cloud package for more details.
CloudNode
Constructor Summary | |
---|---|
protected |
EsType(CloudNode node,
String classId,
Double relevance)
Direct use of this constructor is discouraged. |
Method Summary | |
---|---|
int |
compareTo(EsType o)
Implementation of a comparison value between two EsType objects considering
the relevance of the types. |
boolean |
equals(Object obj)
Evaluates the equality between the current object and the one passed as argument. |
String |
getClassId()
Get current type identifier (an EsType is actually an association between a Type and
a CloudNode ). |
Integer |
getId()
Get current essential-type identifier (database purposes only) |
CloudNode |
getNode()
Get the owner CloudNode . |
Double |
getRelevance()
Get current type relevance. |
int |
hashCode()
Returns the hashCode of the contained classId . |
protected void |
setClassId(String classId)
Set current term identifier. |
protected void |
setNode(CloudNode node)
Set the identifier of the owner node. |
void |
setRelevance(Double relevance)
Set current type relevance. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EsType(CloudNode node, String classId, Double relevance)
CloudNode.addEsType
method instead.
node
- the owner cluster of this type.classId
- the identifier of the corresponding KC database type(an EsType is actually an association between a Type
and
a CloudNode
).relevance
- the relevance value associated with this type.CloudNode.addEsType(String, Double)
,
Type
Method Detail |
---|
public String getClassId()
Get current type identifier (an EsType is actually an association between a Type
and
a CloudNode
).
Type
Type
protected void setClassId(String classId)
Set current term identifier. To be set using the constructor (direct use is discouraged).
public Double getRelevance()
Get current type relevance.
public void setRelevance(Double relevance)
Set current type relevance.
relevance
- current type relevance value.public Integer getId()
Get current essential-type identifier (database purposes only)
public CloudNode getNode()
Get the owner CloudNode
.
CloudNode
.protected void setNode(CloudNode node)
Set the identifier of the owner node.
public boolean equals(Object obj)
equals
in class Object
EsType
class and this classId
is equal to the given object's classId
.public int hashCode()
hashCode
of the contained classId
.
hashCode
in class Object
hashCode
method of the String classId
.public int compareTo(EsType o)
Implementation of a comparison value between two EsType
objects considering
the relevance of the types.
compareTo
in interface Comparable<EsType>
classId
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |