Package openllet.core.boxes.abox
Class DefaultEdge
- java.lang.Object
-
- openllet.core.boxes.abox.DefaultEdge
-
-
Constructor Summary
Constructors Constructor Description DefaultEdge(Role name, Individual from, Node to, DependencySet d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
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()
int
hashCode()
void
setDepends(DependencySet ds)
java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultEdge
public DefaultEdge(Role name, Individual from, Node to, DependencySet d)
-
-
Method Detail
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getDepends
public DependencySet getDepends()
- Specified by:
getDepends
in interfaceEdge
- Returns:
- Returns the depends.
-
getFrom
public Individual getFrom()
-
getTo
public Node getTo()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getFromName
public openllet.aterm.ATermAppl getFromName()
- Specified by:
getFromName
in interfaceEdge
- Returns:
- Returns the name of the source node
-
getToName
public openllet.aterm.ATermAppl getToName()
-
setDepends
public void setDepends(DependencySet ds)
- Specified by:
setDepends
in interfaceEdge
-
-