org.mindswap.pellet.tableau.cache
Class CachedEdge

java.lang.Object
  extended by org.mindswap.pellet.tableau.cache.CachedEdge
All Implemented Interfaces:
Edge
Direct Known Subclasses:
CachedInEdge, CachedOutEdge

public abstract class CachedEdge
extends java.lang.Object
implements Edge

Title:

Description: Represents an edge cached for a CachedNode. A cached edge stores the information about only one node (the neighbor of the cached node where this edge is stored) and for that node only the name is stored. This keeps the memory footprint of cached nodes to a minimum without causing any slow downs (since cached nodes are used only in limited ways).

Copyright: Copyright (c) 2008

Company: Clark & Parsia, LLC.

Author:
Evren Sirin

Constructor Summary
CachedEdge(Role role, aterm.ATermAppl neighbor, DependencySet ds)
           
 
Method Summary
 DependencySet getDepends()
          
 Individual getFrom()
          
 aterm.ATermAppl getFromName()
          
 Node getNeighbor(Node node)
          Given a node upon which this edge is incident, the opposite incident node is returned.
 Role getRole()
          
 Node getTo()
          
 aterm.ATermAppl getToName()
          
 void setDepends(DependencySet ds)
          
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachedEdge

public CachedEdge(Role role,
                  aterm.ATermAppl neighbor,
                  DependencySet ds)
Method Detail

getDepends

public DependencySet getDepends()

Specified by:
getDepends in interface Edge
Returns:
Returns the depends.

getFrom

public Individual getFrom()

Specified by:
getFrom in interface Edge
Returns:
Returns the source of this edge

getFromName

public aterm.ATermAppl getFromName()

Specified by:
getFromName in interface Edge
Returns:
Returns the name of the source node

getNeighbor

public Node getNeighbor(Node node)
Given a node upon which this edge is incident, the opposite incident node is returned.

Specified by:
getNeighbor in interface Edge
Parameters:
node - a node upon which this edge is incident
Returns:
the other node this edge is incident upon

getRole

public Role getRole()

Specified by:
getRole in interface Edge
Returns:
Returns the role.

getTo

public Node getTo()

Specified by:
getTo in interface Edge
Returns:
Returns the target of the edge

getToName

public aterm.ATermAppl getToName()

Specified by:
getToName in interface Edge
Returns:
Returns the name of the target node

setDepends

public void setDepends(DependencySet ds)

Specified by:
setDepends in interface Edge

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004 Evren Sirin. All Rights Reserved.