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 booleanequals(java.lang.Object other)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()inthashCode()voidsetDepends(DependencySet ds)java.lang.StringtoString()
-
-
-
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:
getNeighborin 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:
toStringin classjava.lang.Object
-
getDepends
public DependencySet getDepends()
- Specified by:
getDependsin interfaceEdge- Returns:
- Returns the depends.
-
getFrom
public Individual getFrom()
-
getTo
public Node getTo()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getFromName
public openllet.aterm.ATermAppl getFromName()
- Specified by:
getFromNamein interfaceEdge- Returns:
- Returns the name of the source node
-
getToName
public openllet.aterm.ATermAppl getToName()
-
setDepends
public void setDepends(DependencySet ds)
- Specified by:
setDependsin interfaceEdge
-
-