AROMA 1.2

fr.inrialpes.exmo.aroma.ontology.entities
Class AEntityImpl

java.lang.Object
  extended by fr.inrialpes.exmo.ontosim.entity.model.EntityImpl
      extended by fr.inrialpes.exmo.aroma.ontology.entities.AEntityImpl
All Implemented Interfaces:
AEntity, fr.inrialpes.exmo.ontosim.entity.model.Entity

public class AEntityImpl
extends fr.inrialpes.exmo.ontosim.entity.model.EntityImpl
implements AEntity


Field Summary
private  Set<AEntity> ascendants
           
protected  Set<AEntity> children
           
private  Set<AEntity> descendants
           
protected  Set<AEntity> parents
           
private  Set<String> terms
           
 
Constructor Summary
AEntityImpl(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> ont, Object e)
           
 
Method Summary
 boolean addChild(AEntity e)
           
 boolean addParent(AEntity e)
           
 void addTerm(String t)
           
 void addTerms(AEntity e)
           
 void addTerms(Set<String> s)
           
 boolean containTerm(String s)
           
 void freeTerms()
           
 Set<fr.inrialpes.exmo.ontowrap.Annotation> getAnnotationsL()
           
 int getNbCommonTerms(AEntity e)
           
 int getNbTerms()
           
 AEntity getRoot()
           
 Set<AEntity> getSubEntities(boolean direct)
           
 Set<AEntity> getSuperEntities(boolean direct)
           
 Set<String> getTerms()
           
 boolean isAncestorOf(AEntity e)
           
 boolean isDescendantOf(AEntity e)
           
 void retainTerms(AEntity e)
           
 
Methods inherited from class fr.inrialpes.exmo.ontosim.entity.model.EntityImpl
getAnnotations, getComments, getLabels, getObject, getOntology, getURI, isClass, isDataProperty, isIndividual, isObjectProperty, isProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.inrialpes.exmo.ontosim.entity.model.Entity
getAnnotations, getComments, getLabels, getObject, getOntology, getURI, isClass, isDataProperty, isIndividual, isObjectProperty, isProperty
 

Field Detail

parents

protected Set<AEntity> parents

children

protected Set<AEntity> children

ascendants

private Set<AEntity> ascendants

descendants

private Set<AEntity> descendants

terms

private Set<String> terms
Constructor Detail

AEntityImpl

public AEntityImpl(fr.inrialpes.exmo.ontowrap.LoadedOntology<?> ont,
                   Object e)
Method Detail

getTerms

public Set<String> getTerms()
Specified by:
getTerms in interface AEntity

getNbCommonTerms

public int getNbCommonTerms(AEntity e)
Specified by:
getNbCommonTerms in interface AEntity

getNbTerms

public int getNbTerms()
Specified by:
getNbTerms in interface AEntity

containTerm

public boolean containTerm(String s)
Specified by:
containTerm in interface AEntity

addTerm

public void addTerm(String t)
Specified by:
addTerm in interface AEntity

addTerms

public void addTerms(Set<String> s)
Specified by:
addTerms in interface AEntity

retainTerms

public void retainTerms(AEntity e)
Specified by:
retainTerms in interface AEntity

getSubEntities

public Set<AEntity> getSubEntities(boolean direct)
Specified by:
getSubEntities in interface AEntity

getSuperEntities

public Set<AEntity> getSuperEntities(boolean direct)
Specified by:
getSuperEntities in interface AEntity

isAncestorOf

public boolean isAncestorOf(AEntity e)
Specified by:
isAncestorOf in interface AEntity

isDescendantOf

public boolean isDescendantOf(AEntity e)
Specified by:
isDescendantOf in interface AEntity

addParent

public boolean addParent(AEntity e)
Specified by:
addParent in interface AEntity

addChild

public boolean addChild(AEntity e)
Specified by:
addChild in interface AEntity

getRoot

public AEntity getRoot()
Specified by:
getRoot in interface AEntity

addTerms

public void addTerms(AEntity e)
Specified by:
addTerms in interface AEntity

freeTerms

public void freeTerms()
Specified by:
freeTerms in interface AEntity

getAnnotationsL

public Set<fr.inrialpes.exmo.ontowrap.Annotation> getAnnotationsL()
                                                           throws fr.inrialpes.exmo.ontowrap.OntowrapException
Specified by:
getAnnotationsL in interface AEntity
Throws:
fr.inrialpes.exmo.ontowrap.OntowrapException

AROMA 1.2

(C) Universite Pierre-Mendes-France, INRIA & Universite de Nantes 2006-2009