org.apache.ojb.broker
Class GraphEdge

java.lang.Object
  extended byorg.apache.ojb.broker.GraphEdge
All Implemented Interfaces:
java.io.Serializable

public class GraphEdge
extends java.lang.Object
implements java.io.Serializable

GraphNode and GraphEdge model oriented graph with named nodes. In this case there are two relations between two classes.

Author:
Oleg Nitz
See Also:
Serialized Form

Constructor Summary
GraphEdge()
           
GraphEdge(GraphNode source, GraphNode sink)
           
GraphEdge(int id, int sourceId, int sinkId)
           
 
Method Summary
 int getId()
           
 GraphNode getSink()
           
 int getSinkId()
           
 GraphNode getSource()
           
 int getSourceId()
           
 void setId(int id)
           
 void setSink(GraphNode sink)
           
 void setSinkId(int sinkId)
           
 void setSource(GraphNode source)
           
 void setSourceId(int sourceId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphEdge

public GraphEdge()

GraphEdge

public GraphEdge(int id,
                 int sourceId,
                 int sinkId)

GraphEdge

public GraphEdge(GraphNode source,
                 GraphNode sink)
Method Detail

getSourceId

public int getSourceId()

getSinkId

public int getSinkId()

getSource

public GraphNode getSource()

getSink

public GraphNode getSink()

getId

public int getId()

setSourceId

public void setSourceId(int sourceId)

setSinkId

public void setSinkId(int sinkId)

setSource

public void setSource(GraphNode source)

setSink

public void setSink(GraphNode sink)

setId

public void setId(int id)

toString

public java.lang.String toString()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14