| Constructor and Description |
|---|
EdgeList() |
EdgeList(Edge edge)
Create an immutable singleton EdgeList;
|
EdgeList(EdgeList edges) |
EdgeList(int n) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(Edge e) |
void |
addEdgeList(EdgeList edges) |
Edge |
edgeAt(int i) |
DependencySet |
getDepends(boolean doExplanation) |
EdgeList |
getEdges(Role role) |
EdgeList |
getEdgesFrom(Individual from) |
EdgeList |
getEdgesFrom(Individual from,
Role r) |
EdgeList |
getEdgesFromTo(Individual from,
Node to) |
EdgeList |
getEdgesTo(Node to) |
EdgeList |
getEdgesTo(Role r,
Node to) |
Edge |
getExactEdge(Individual from,
Role role,
Node to) |
Set<Node> |
getFilteredNeighbors(Individual node,
aterm.ATermAppl c)
Find the neighbors of a node that has a certain type.
|
Set<Node> |
getNeighbors(Node node) |
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() |
Iterator<Edge> |
iterator() |
boolean |
removeEdge(Edge edge) |
protected void |
removeEdge(int index) |
void |
reset()
Resets the edges in this list to only asserted edges.
|
int |
size() |
EdgeList |
sort() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic EdgeList()
public EdgeList(int n)
public EdgeList(EdgeList edges)
public EdgeList(Edge edge)
edge - public void addEdgeList(EdgeList edges)
public void addEdge(Edge e)
public boolean removeEdge(Edge edge)
protected void removeEdge(int index)
public Edge edgeAt(int i)
public int size()
public EdgeList sort()
public boolean isEmpty()
public EdgeList getEdgesFromTo(Individual from, Node to)
public EdgeList getEdgesFrom(Individual from)
public EdgeList getEdgesFrom(Individual from, Role r)
public 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 topublic boolean hasEdgeFrom(Individual from)
public boolean hasEdgeFrom(Individual from, Role role)
public boolean hasEdgeTo(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 Edge getExactEdge(Individual from, Role role, Node to)
public DependencySet getDepends(boolean doExplanation)
public void reset()
Copyright © 2019. All rights reserved.