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 DependencySet
getDepends()
Individual
getFrom()
openllet.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()
openllet.aterm.ATermAppl
getToName()
void
setDepends(DependencySet ds)
java.lang.String
toString()
-
-
-
Constructor Detail
-
CachedEdge
public CachedEdge(Role role, openllet.aterm.ATermAppl neighbor, DependencySet ds)
-
-
Method Detail
-
getDepends
public DependencySet getDepends()
- Specified by:
getDepends
in interfaceEdge
- Returns:
- Returns the depends.
-
getFrom
public Individual getFrom()
-
getFromName
public openllet.aterm.ATermAppl getFromName()
- Specified by:
getFromName
in 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:
getNeighbor
in 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:
setDepends
in interfaceEdge
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-