Package openllet.core.tableau.cache
Class CachedEdge
- java.lang.Object
-
- openllet.core.tableau.cache.CachedEdge
-
- All Implemented Interfaces:
Edge
- Direct Known Subclasses:
CachedInEdge,CachedOutEdge
public abstract class CachedEdge extends java.lang.Object implements Edge
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
Constructors Constructor Description CachedEdge(Role role, openllet.aterm.ATermAppl neighbor, DependencySet ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencySetgetDepends()IndividualgetFrom()openllet.aterm.ATermApplgetFromName()NodegetNeighbor(Node node)Given a node upon which this edge is incident, the opposite incident _node is returned.RolegetRole()NodegetTo()openllet.aterm.ATermApplgetToName()voidsetDepends(DependencySet ds)java.lang.StringtoString()
-
-
-
Constructor Detail
-
CachedEdge
public CachedEdge(Role role, openllet.aterm.ATermAppl neighbor, DependencySet ds)
-
-
Method Detail
-
getDepends
public DependencySet getDepends()
- Specified by:
getDependsin interfaceEdge- Returns:
- Returns the depends.
-
getFrom
public Individual getFrom()
-
getFromName
public openllet.aterm.ATermAppl getFromName()
- Specified by:
getFromNamein interfaceEdge- 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:
getNeighborin interfaceEdge- Parameters:
node- a node upon which this edge is incident- Returns:
- the other node this edge is incident upon
-
getTo
public Node getTo()
-
getToName
public openllet.aterm.ATermAppl getToName()
-
setDepends
public void setDepends(DependencySet ds)
- Specified by:
setDependsin interfaceEdge
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-