org.eigenbase.jmi
Class JmiInheritanceEdge

java.lang.Object
  extended by org.jgrapht.graph.DefaultEdge
      extended by org.eigenbase.jmi.JmiInheritanceEdge
All Implemented Interfaces:
Serializable, Cloneable

public class JmiInheritanceEdge
extends org.jgrapht.graph.DefaultEdge

JmiInheritanceEdge represents an inheritance relationship in a JMI model. The source vertex is the superclass and the target vertex is the subclass.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/jmi/JmiInheritanceEdge.java#9 $
Author:
John V. Sichi
See Also:
Serialized Form

Field Summary
private  JmiClassVertex subClass
           
private  JmiClassVertex superClass
           
 
Constructor Summary
JmiInheritanceEdge(JmiClassVertex superClass, JmiClassVertex subClass)
           
 
Method Summary
 Object clone()
           
 JmiClassVertex getSubClass()
           
 JmiClassVertex getSuperClass()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

superClass

private final JmiClassVertex superClass

subClass

private final JmiClassVertex subClass
Constructor Detail

JmiInheritanceEdge

JmiInheritanceEdge(JmiClassVertex superClass,
                   JmiClassVertex subClass)
Method Detail

getSuperClass

public JmiClassVertex getSuperClass()
Returns:
the vertex representing the superclass

getSubClass

public JmiClassVertex getSubClass()
Returns:
the vertex representing the subclass

toString

public String toString()
Overrides:
toString in class org.jgrapht.graph.DefaultEdge

clone

public Object clone()
Overrides:
clone in class Object