org.mindswap.pellet
Class DefaultEdge

java.lang.Object
  extended by org.mindswap.pellet.DefaultEdge
All Implemented Interfaces:
Edge

public class DefaultEdge
extends java.lang.Object
implements Edge

Author:
Evren Sirin

Constructor Summary
DefaultEdge(Role name, Individual from, Node to)
           
DefaultEdge(Role name, Individual from, Node to, DependencySet d)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 DependencySet getDepends()
          
 Individual getFrom()
          
 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()
          
 aterm.ATermAppl getToName()
          
 int hashCode()
           
 void setDepends(DependencySet ds)
          
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultEdge

public DefaultEdge(Role name,
                   Individual from,
                   Node to)

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 interface Edge
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 class java.lang.Object

getDepends

public DependencySet getDepends()

Specified by:
getDepends in interface Edge
Returns:
Returns the depends.

getFrom

public Individual getFrom()

Specified by:
getFrom in interface Edge
Returns:
Returns the source of this edge

getRole

public Role getRole()

Specified by:
getRole in interface Edge
Returns:
Returns the role.

getTo

public Node getTo()

Specified by:
getTo in interface Edge
Returns:
Returns the target of the edge

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getFromName

public aterm.ATermAppl getFromName()

Specified by:
getFromName in interface Edge
Returns:
Returns the name of the source node

getToName

public aterm.ATermAppl getToName()

Specified by:
getToName in interface Edge
Returns:
Returns the name of the target node

setDepends

public void setDepends(DependencySet ds)

Specified by:
setDepends in interface Edge


Copyright © 2004 Evren Sirin. All Rights Reserved.