com.gomjabbar.graph
Class DefaultBinaryRelation

java.lang.Object
  |
  +--com.gomjabbar.graph.DefaultBinaryRelation
All Implemented Interfaces:
GraphRelation

public class DefaultBinaryRelation
extends java.lang.Object
implements GraphRelation


Constructor Summary
DefaultBinaryRelation(java.lang.String label, java.lang.String type, GraphElement source, GraphElement destination)
           
 
Method Summary
 GraphElement[] getElements()
           
 java.lang.String getLabel()
           
 GraphRelationRole getRole(GraphElement e)
           
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBinaryRelation

public DefaultBinaryRelation(java.lang.String label,
                             java.lang.String type,
                             GraphElement source,
                             GraphElement destination)
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface GraphRelation

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface GraphRelation

getElements

public GraphElement[] getElements()
Specified by:
getElements in interface GraphRelation

getRole

public GraphRelationRole getRole(GraphElement e)
Specified by:
getRole in interface GraphRelation