public class Concept
extends java.lang.Object
Constructor and Description |
---|
Concept(java.lang.String name,
double weight)
Instantiates a new concept.
|
Concept(java.lang.String name,
double weight,
double gi,
long tsTime)
Instantiates a new concept.
|
Concept(java.lang.String name,
double weight,
double gi,
long tsTime,
java.lang.String objectId)
Instantiates a new concept.
|
Concept(java.lang.String name,
java.lang.String instance,
double weight)
Instantiates a new concept.
|
Concept(java.lang.String name,
java.util.Vector<CTerm> terms,
double weight)
Instantiates a new ontology concept.
|
Modifier and Type | Method and Description |
---|---|
double |
getGainInterest()
Gets the GAIN interest.
|
java.lang.String |
getInstance()
Gets the single instance of Concept.
|
java.lang.String |
getName()
Gets the name of the concept.
|
java.lang.String |
getObjectId()
Gets the object id.
|
java.util.Vector<CTerm> |
getTerms()
Gets the concept terms.
|
long |
getTimestamp()
Gets the timestamp.
|
double |
getWeight()
Gets the weight of the concept.
|
void |
setName(java.lang.String name)
Sets the name of the concept.
|
void |
setTerms(java.util.Vector<CTerm> terms)
Sets the concept terms.
|
void |
setWeight(double weight)
Sets the weight of the concept.
|
java.lang.String |
toString() |
public Concept(java.lang.String name, java.util.Vector<CTerm> terms, double weight)
name
- the name of the conceptterms
- the terms that are associated with this concept according
to the graph, along with their association degreeweight
- the weight of the conceptpublic Concept(java.lang.String name, double weight)
name
- the concept nameweight
- the concept weightpublic Concept(java.lang.String name, double weight, double gi, long tsTime)
name
- the concept nameweight
- the concept weightgi
- the GAIN interest over the concepttsTime
- the timestamppublic Concept(java.lang.String name, double weight, double gi, long tsTime, java.lang.String objectId)
name
- the concept nameweight
- the concept weightgi
- the GAIN interest over the concepttsTime
- the timestampobjectId
- the object idpublic Concept(java.lang.String name, java.lang.String instance, double weight)
name
- the concept nameinstance
- the instanceweight
- the concept weightpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getObjectId()
public long getTimestamp()
public double getGainInterest()
public java.lang.String getInstance()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new name of the conceptpublic java.util.Vector<CTerm> getTerms()
public void setTerms(java.util.Vector<CTerm> terms)
terms
- the new concept termspublic double getWeight()
public void setWeight(double weight)
weight
- the new weight of the concept