edu.lehigh.swat.hawk.storage.simplememory
Class Individual

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.SerializableClass
      extended by edu.lehigh.swat.hawk.storage.simplememory.OntObject
          extended by edu.lehigh.swat.hawk.storage.simplememory.Individual
All Implemented Interfaces:
Individual, OntObject, java.io.Serializable

public class Individual
extends OntObject
implements Individual

A simple implementation of core.Individual in memory.

See Also:
Serialized Form

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

Individual

public Individual()
Constructor

Method Detail

getSourceClasses

public ObjectId[] getSourceClasses()
Get the sourece classes.

Specified by:
getSourceClasses in interface Individual

addSourceClass

public void addSourceClass(ObjectId cid)
Add a source class.

Specified by:
addSourceClass in interface Individual

deleteSourceClass

public void deleteSourceClass(java.lang.Object cid)
Delete a source class.

Specified by:
deleteSourceClass in interface Individual

addProperty

public void addProperty(ObjectId pid,
                        ObjectId v)
Add a related property.

Specified by:
addProperty in interface Individual

deleteProperty

public void deleteProperty(ObjectId pid,
                           ObjectId v)
Delete a related property.

Specified by:
deleteProperty in interface Individual

getProperties

public ObjectId[] getProperties()
Get all the related properties.

Specified by:
getProperties in interface Individual

getValuesForProperty

public ObjectId[] getValuesForProperty(ObjectId pid)
Get all the values on specfied property.

Specified by:
getValuesForProperty in interface Individual

addSameAs

public void addSameAs(ObjectId id)
Add a id which is same as this individual.

Specified by:
addSameAs in interface Individual

deleteSameAs

public void deleteSameAs(ObjectId id)
Delete a id which is same as this individual.

Specified by:
deleteSameAs in interface Individual

getAllSameAs

public ObjectId[] getAllSameAs()
Get all the ids that are same as this individual.

Specified by:
getAllSameAs in interface Individual

getSameSet

public java.util.Collection getSameSet()
Get the set of same individuals which this individual belongs to.

Specified by:
getSameSet in interface Individual

setSameSet

public void setSameSet(java.util.Collection c)
Set the set of same individuals which this individual belongs to.

Specified by:
setSameSet in interface Individual

addDifferentFrom

public void addDifferentFrom(ObjectId id)
Add a id which is differen from this individual.

Specified by:
addDifferentFrom in interface Individual

deleteDifferentFrom

public void deleteDifferentFrom(ObjectId id)
Delete a id which is differen from this individual.

Specified by:
deleteDifferentFrom in interface Individual

getAllDifferentFrom

public ObjectId[] getAllDifferentFrom()
Get all the ids which are differen from this individual.

Specified by:
getAllDifferentFrom in interface Individual