|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mindswap.pellet.EdgeList
public class EdgeList
| Constructor Summary | |
|---|---|
EdgeList()
|
|
EdgeList(Edge edge)
Create an immutable singleton EdgeList; |
|
EdgeList(EdgeList edges)
|
|
EdgeList(int size)
|
|
EdgeList(java.util.List<Edge> edges)
|
|
| Method Summary | |
|---|---|
void |
addEdge(Edge e)
|
void |
addEdgeList(EdgeList edges)
|
Edge |
edgeAt(int i)
|
DependencySet |
getDepends(boolean doExplanation)
|
EdgeList |
getEdges(Role role)
|
EdgeList |
getEdges(Role role,
Node node)
Get edges which involve a specific node |
EdgeList |
getEdgesContaining(Node node)
|
EdgeList |
getEdgesFrom(Individual from)
|
EdgeList |
getEdgesFromTo(Individual from,
Node to)
|
EdgeList |
getEdgesTo(Node to)
|
java.util.Set<Node> |
getFilteredNeighbors(Individual node,
aterm.ATermAppl c)
Find the neighbors of a node that has a certain type. |
java.util.Set<aterm.ATermAppl> |
getNeighborNames(Individual node)
|
java.util.Set<Node> |
getNeighbors(Node node)
|
java.util.Set<Role> |
getRoles()
|
boolean |
hasEdge(Edge e)
|
boolean |
hasEdge(Individual from,
Role role,
Node to)
Checks if this list contains an edge matching the given subject, predicate and object. |
boolean |
hasEdge(Role role)
|
boolean |
hasEdgeFrom(Individual from)
|
boolean |
hasEdgeFrom(Individual from,
Role role)
|
boolean |
hasEdgeTo(Node to)
|
boolean |
hasEdgeTo(Role role,
Node to)
|
boolean |
hasExactEdge(Individual from,
Role role,
Node to)
Similar to hasEdge(Individual, Role, Node) but does not
consider subproperty hierarchy for matching so only exact predicate
matches are considered. |
boolean |
isEmpty()
|
java.util.Iterator<Edge> |
iterator()
|
boolean |
removeEdge(Edge edge)
|
void |
reset()
Resets the edges in this list to only asserted edges. |
int |
size()
|
EdgeList |
sort()
|
java.lang.String |
toString()
|
EdgeList |
unmodifiable()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeList()
public EdgeList(int size)
public EdgeList(EdgeList edges)
public EdgeList(java.util.List<Edge> edges)
public EdgeList(Edge edge)
edge - | Method Detail |
|---|
public void addEdgeList(EdgeList edges)
public void addEdge(Edge e)
public EdgeList unmodifiable()
public boolean removeEdge(Edge edge)
public Edge edgeAt(int i)
public int size()
public EdgeList sort()
public boolean isEmpty()
public java.util.Iterator<Edge> iterator()
iterator in interface java.lang.Iterable<Edge>
public EdgeList getEdgesFromTo(Individual from,
Node to)
public EdgeList getEdgesFrom(Individual from)
public EdgeList getEdgesTo(Node to)
public EdgeList getEdges(Role role)
public EdgeList getEdgesContaining(Node node)
public java.util.Set<Role> getRoles()
public java.util.Set<aterm.ATermAppl> getNeighborNames(Individual node)
public EdgeList getEdges(Role role,
Node node)
role - node -
public java.util.Set<Node> getNeighbors(Node node)
public java.util.Set<Node> getFilteredNeighbors(Individual node,
aterm.ATermAppl c)
node - The node whose neighbors are being soughtc - The concept (or datatype) that each neighbor should belong to
public boolean hasEdgeFrom(Individual from)
public boolean hasEdgeFrom(Individual from,
Role role)
public boolean hasEdgeTo(Node to)
public boolean hasEdgeTo(Role role,
Node to)
public boolean hasEdge(Role role)
public boolean hasEdge(Individual from,
Role role,
Node to)
sup
to this function will return true if an edge with
subproperty sub exists.
from - role - to -
public boolean hasExactEdge(Individual from,
Role role,
Node to)
hasEdge(Individual, Role, Node) but does not
consider subproperty hierarchy for matching so only exact predicate
matches are considered.
from - role - to -
public boolean hasEdge(Edge e)
public DependencySet getDepends(boolean doExplanation)
public java.lang.String toString()
toString in class java.lang.Objectpublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||