org.apache.ojb.broker
Class GraphNode

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

public class GraphNode
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
GraphNode()
           
GraphNode(int id, java.lang.String name, int locationId)
           
GraphNode(java.lang.String name)
           
 
Method Summary
 void addIncomingEdge(GraphEdge edge)
           
 void addOutgoingEdge(GraphEdge edge)
           
 int getId()
           
 java.util.Collection getIncomingEdges()
           
 Point getLocation()
           
 int getLocationId()
           
 java.lang.String getName()
           
 java.util.Collection getOutgoingEdges()
           
 void setId(int id)
           
 void setIncomingEdges(java.util.Collection edges)
           
 void setLocation(Point location)
           
 void setLocationId(int locationId)
           
 void setName(java.lang.String name)
           
 void setOutgoingEdges(java.util.Collection edges)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphNode

public GraphNode()

GraphNode

public GraphNode(int id,
                 java.lang.String name,
                 int locationId)

GraphNode

public GraphNode(java.lang.String name)
Method Detail

addOutgoingEdge

public void addOutgoingEdge(GraphEdge edge)

addIncomingEdge

public void addIncomingEdge(GraphEdge edge)

getOutgoingEdges

public java.util.Collection getOutgoingEdges()

getIncomingEdges

public java.util.Collection getIncomingEdges()

getName

public java.lang.String getName()

getLocationId

public int getLocationId()

getLocation

public Point getLocation()

getId

public int getId()

setOutgoingEdges

public void setOutgoingEdges(java.util.Collection edges)

setIncomingEdges

public void setIncomingEdges(java.util.Collection edges)

setName

public void setName(java.lang.String name)

setLocationId

public void setLocationId(int locationId)

setLocation

public void setLocation(Point location)

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