Package org.biopax.paxtools.query.model
Class AbstractEdge
java.lang.Object
org.biopax.paxtools.query.model.AbstractEdge
- All Implemented Interfaces:
Edge,GraphObject
The base class for an edge in the traversed graph.
- Author:
- Ozgun Babur
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractEdge(Node source, Node target, Graph graph) Edges should know their source and target nodes, and their graph. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biopax.paxtools.query.model.Edge
isTranscription
-
Constructor Details
-
AbstractEdge
Edges should know their source and target nodes, and their graph.- Parameters:
source- source nodetarget- target nodegraph- graph
-
-
Method Details
-
getTargetNode
- Specified by:
getTargetNodein interfaceEdge- Returns:
- The target node
-
getSourceNode
- Specified by:
getSourceNodein interfaceEdge- Returns:
- The source node
-
getGraph
Description copied from interface:GraphObjectEvery graph object should have an owner graph.- Specified by:
getGraphin interfaceGraphObject- Returns:
- The owner graph
-
getKey
Description copied from interface:GraphObjectThis method is used for storing the object in a Map. The key should be uniquely generated for each edge in a graph.- Specified by:
getKeyin interfaceGraphObject- Returns:
- Key to use in a map
-
hashCode
public int hashCode() -
equals
-
getSign
public int getSign()Edges are positive by default. -
clear
public void clear()Does nothing yet.- Specified by:
clearin interfaceGraphObject
-