it.polito.elite.visualization.ontoviewer.models
Class ConceptData

java.lang.Object
  extended by it.polito.elite.visualization.ontoviewer.models.ConceptData

public class ConceptData
extends java.lang.Object

ConceptData class summarizes useful information (structural, semantic and positional) related to a given concept.

Author:
Alessio

Field Summary
private  java.util.HashSet<java.lang.String> adoptiveParentsURI
           
protected  NodeTypeAbstraction anonymousParent
           
private  java.util.Hashtable<java.lang.String,java.lang.Integer> childrenURI
           
private  float conceptSphereRadius
           
protected  java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> datatypeLinks
           
protected  java.util.HashSet<java.lang.String> differentFrom
           
private  boolean hasNonDirectInstances
           
protected  java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> incomingLinks
           
private  java.util.HashSet<java.lang.String> instancesURI
           
private  javax.swing.tree.DefaultMutableTreeNode node
          base element for constructing the taxonomy tree
protected  java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> outgoingLinks
          The table contains semantic arcs toward other concepts each table entry consists of a String key as the relation uri and a set of RelationData as Object
private  java.lang.String parentURI
           
protected  java.util.HashSet<RelationData> selfLoopLinks
           
protected  java.lang.String uri
           
 
Constructor Summary
ConceptData(java.lang.String uri)
           
 
Method Summary
 void addAdoptiveParent(java.lang.String uri)
           
 void addChild(java.lang.String uri, int numChildren)
           
 void addDatatypeLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> t)
           
 void addIncomingLink(java.lang.String relURI, RelationData relData)
           
 void addOutgoingLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> t)
           
 void addSelfLoopLink(RelationData relation)
           
 java.util.Set<java.lang.String> getAdoptiveParents()
           
 java.util.HashSet<java.lang.String> getAllParents()
           
 NodeTypeAbstraction getAnonymousParent()
           
 java.util.Set<java.lang.String> getChildren()
           
 float getConceptSphereRadius()
           
 java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> getDatatypeLinks()
           
 java.util.HashSet<java.lang.String> getDifferentFrom()
           
 java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> getIncomingLinks()
           
 java.util.Set<java.lang.String> getInstancesURI()
           
 int getLayer()
           
 javax.swing.tree.DefaultMutableTreeNode getNode()
           
 int getNumberOfChildren()
           
 int getNumberOfParents()
           
 OrderedURIsElm[] getOrderedChildrenURIs()
          Returns an array of Uris ordered by the respective number of their Children
 java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> getOutgoingLinks()
           
 java.lang.String getParent()
           
 java.util.HashSet<RelationData> getSelfLoopLinks()
           
 int getSubTreeDepth()
           
 java.lang.String getUri()
           
 boolean hasAnonymousParent()
           
 boolean hasInstances()
           
 boolean hasNonDirectInstances()
           
 void removeOutgoingLink(java.lang.String destUri)
           
 void setAnonymousParent(NodeTypeAbstraction anonymousParent)
           
 void setConceptSphereRadius(float conceptSphereRadius)
           
 void setDatatypeLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> datatypeLinks)
           
 void setDifferentFrom(java.util.HashSet<java.lang.String> differentFrom)
           
 void setIncomingLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> incomingLinks)
           
 void setInstancesURI(java.util.HashSet<java.lang.String> instancesURI)
           
 void setNode(javax.swing.tree.DefaultMutableTreeNode node)
           
 void setNonDirectInstances(boolean hasNonDirectInstances)
           
 void setOutgoingLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> outgoingLinks)
           
 void setParent(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adoptiveParentsURI

private java.util.HashSet<java.lang.String> adoptiveParentsURI

anonymousParent

protected NodeTypeAbstraction anonymousParent

childrenURI

private java.util.Hashtable<java.lang.String,java.lang.Integer> childrenURI

conceptSphereRadius

private float conceptSphereRadius

datatypeLinks

protected java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> datatypeLinks

differentFrom

protected java.util.HashSet<java.lang.String> differentFrom

hasNonDirectInstances

private boolean hasNonDirectInstances

incomingLinks

protected java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> incomingLinks

instancesURI

private java.util.HashSet<java.lang.String> instancesURI

node

private javax.swing.tree.DefaultMutableTreeNode node
base element for constructing the taxonomy tree


outgoingLinks

protected java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> outgoingLinks
The table contains semantic arcs toward other concepts each table entry consists of a String key as the relation uri and a set of RelationData as Object


parentURI

private java.lang.String parentURI

selfLoopLinks

protected java.util.HashSet<RelationData> selfLoopLinks

uri

protected java.lang.String uri
Constructor Detail

ConceptData

public ConceptData(java.lang.String uri)
Method Detail

addAdoptiveParent

public void addAdoptiveParent(java.lang.String uri)

addChild

public void addChild(java.lang.String uri,
                     int numChildren)

addDatatypeLinks

public void addDatatypeLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> t)

addIncomingLink

public void addIncomingLink(java.lang.String relURI,
                            RelationData relData)

addOutgoingLinks

public void addOutgoingLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> t)

addSelfLoopLink

public void addSelfLoopLink(RelationData relation)
Parameters:
relation - The selfLoopLinks to add.

getAdoptiveParents

public java.util.Set<java.lang.String> getAdoptiveParents()

getAllParents

public java.util.HashSet<java.lang.String> getAllParents()

getAnonymousParent

public NodeTypeAbstraction getAnonymousParent()

getChildren

public java.util.Set<java.lang.String> getChildren()

getConceptSphereRadius

public float getConceptSphereRadius()
Returns:
Returns the conceptSphereRadius.

getDatatypeLinks

public java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> getDatatypeLinks()
Returns:
Returns the datatypeLinks.

getDifferentFrom

public java.util.HashSet<java.lang.String> getDifferentFrom()

getIncomingLinks

public java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> getIncomingLinks()
Returns:
Returns the incomingLinks.

getInstancesURI

public java.util.Set<java.lang.String> getInstancesURI()
Returns:
Returns the instancesURI.

getLayer

public int getLayer()

getNode

public javax.swing.tree.DefaultMutableTreeNode getNode()
Returns:
Returns the node.

getNumberOfChildren

public int getNumberOfChildren()
Returns:
Returns the childNumber.

getNumberOfParents

public int getNumberOfParents()

getOrderedChildrenURIs

public OrderedURIsElm[] getOrderedChildrenURIs()
Returns an array of Uris ordered by the respective number of their Children


getOutgoingLinks

public java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> getOutgoingLinks()
Returns:
Returns the outgoingLinks.

getParent

public java.lang.String getParent()

getSelfLoopLinks

public java.util.HashSet<RelationData> getSelfLoopLinks()
Returns:
Returns the selfLoopLinks.

getSubTreeDepth

public int getSubTreeDepth()

getUri

public java.lang.String getUri()
Returns:
Returns the uri.

hasAnonymousParent

public boolean hasAnonymousParent()

hasInstances

public boolean hasInstances()
Returns:
Returns the hasInstances.

hasNonDirectInstances

public boolean hasNonDirectInstances()

removeOutgoingLink

public void removeOutgoingLink(java.lang.String destUri)

setAnonymousParent

public void setAnonymousParent(NodeTypeAbstraction anonymousParent)

setConceptSphereRadius

public void setConceptSphereRadius(float conceptSphereRadius)
Parameters:
conceptSphereRadius - The conceptSphereRadius to set.

setDatatypeLinks

public void setDatatypeLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> datatypeLinks)
Parameters:
datatypeLinks - The datatypeLinks to set.

setDifferentFrom

public void setDifferentFrom(java.util.HashSet<java.lang.String> differentFrom)

setIncomingLinks

public void setIncomingLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> incomingLinks)
Parameters:
incomingLinks - The incomingLinks to set.

setInstancesURI

public void setInstancesURI(java.util.HashSet<java.lang.String> instancesURI)
Parameters:
instancesURI - The instancesURI to set.

setNode

public void setNode(javax.swing.tree.DefaultMutableTreeNode node)
Parameters:
node - The node to set.

setNonDirectInstances

public void setNonDirectInstances(boolean hasNonDirectInstances)

setOutgoingLinks

public void setOutgoingLinks(java.util.Hashtable<java.lang.String,java.util.HashSet<RelationData>> outgoingLinks)
Parameters:
outgoingLinks - The outgoingLinks to set.

setParent

public void setParent(java.lang.String s)