com.gomjabbar.graph
Class DefaultRelationRole

java.lang.Object
  |
  +--com.gomjabbar.graph.DefaultRelationRole
All Implemented Interfaces:
GraphRelationRole

public class DefaultRelationRole
extends java.lang.Object
implements GraphRelationRole


Field Summary
static java.lang.String CATALYST
           
static java.lang.String DESTINATION
           
static java.lang.String SOURCE
           
 
Fields inherited from interface com.gomjabbar.graph.GraphRelationRole
HEAVY, INWARDS, LIGHT, OUTWARDS
 
Constructor Summary
DefaultRelationRole(java.lang.String type, java.lang.String label)
           
 
Method Summary
 int getDirection()
           
 java.lang.String getLabel()
           
 java.lang.String getType()
           
 int getWeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE

public static final java.lang.String SOURCE

DESTINATION

public static final java.lang.String DESTINATION

CATALYST

public static final java.lang.String CATALYST
Constructor Detail

DefaultRelationRole

public DefaultRelationRole(java.lang.String type,
                           java.lang.String label)
Method Detail

getLabel

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

getType

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

getDirection

public int getDirection()
Specified by:
getDirection in interface GraphRelationRole

getWeight

public int getWeight()
Specified by:
getWeight in interface GraphRelationRole