|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.SerializableClass
edu.lehigh.swat.hawk.storage.simplememory.OntObject
edu.lehigh.swat.hawk.storage.simplememory.Individual
public class Individual
A simple implementation of core.Individual in memory.
Constructor Summary | |
---|---|
Individual()
Constructor |
Method Summary | |
---|---|
void |
addDifferentFrom(ObjectId id)
Add a id which is differen from this individual. |
void |
addProperty(ObjectId pid,
ObjectId v)
Add a related property. |
void |
addSameAs(ObjectId id)
Add a id which is same as this individual. |
void |
addSourceClass(ObjectId cid)
Add a source class. |
void |
deleteDifferentFrom(ObjectId id)
Delete a id which is differen from this individual. |
void |
deleteProperty(ObjectId pid,
ObjectId v)
Delete a related property. |
void |
deleteSameAs(ObjectId id)
Delete a id which is same as this individual. |
void |
deleteSourceClass(java.lang.Object cid)
Delete a source class. |
ObjectId[] |
getAllDifferentFrom()
Get all the ids which are differen from this individual. |
ObjectId[] |
getAllSameAs()
Get all the ids that are same as this individual. |
ObjectId[] |
getProperties()
Get all the related properties. |
java.util.Collection |
getSameSet()
Get the set of same individuals which this individual belongs to. |
ObjectId[] |
getSourceClasses()
Get the sourece classes. |
ObjectId[] |
getValuesForProperty(ObjectId pid)
Get all the values on specfied property. |
void |
setSameSet(java.util.Collection c)
Set the set of same individuals which this individual belongs to. |
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.OntObject |
---|
addDescription, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.lehigh.swat.hawk.core.OntObject |
---|
addDescription, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource |
Constructor Detail |
---|
public Individual()
Method Detail |
---|
public ObjectId[] getSourceClasses()
getSourceClasses
in interface Individual
public void addSourceClass(ObjectId cid)
addSourceClass
in interface Individual
public void deleteSourceClass(java.lang.Object cid)
deleteSourceClass
in interface Individual
public void addProperty(ObjectId pid, ObjectId v)
addProperty
in interface Individual
public void deleteProperty(ObjectId pid, ObjectId v)
deleteProperty
in interface Individual
public ObjectId[] getProperties()
getProperties
in interface Individual
public ObjectId[] getValuesForProperty(ObjectId pid)
getValuesForProperty
in interface Individual
public void addSameAs(ObjectId id)
addSameAs
in interface Individual
public void deleteSameAs(ObjectId id)
deleteSameAs
in interface Individual
public ObjectId[] getAllSameAs()
getAllSameAs
in interface Individual
public java.util.Collection getSameSet()
getSameSet
in interface Individual
public void setSameSet(java.util.Collection c)
setSameSet
in interface Individual
public void addDifferentFrom(ObjectId id)
addDifferentFrom
in interface Individual
public void deleteDifferentFrom(ObjectId id)
deleteDifferentFrom
in interface Individual
public ObjectId[] getAllDifferentFrom()
getAllDifferentFrom
in interface Individual
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |