JOpt.SDK.Implementation
Class Relationship

java.lang.Object
  extended byJOpt.SDK.Implementation.Relationship
All Implemented Interfaces:
IRelationship

public class Relationship
extends java.lang.Object
implements IRelationship


Constructor Summary
Relationship()
           
 
Method Summary
 java.lang.String getRelatedNode()
           
 int getRelationshipType()
           
 void setRelatedNode(java.lang.String nodeId)
           
 void setRelationshipType(int relationshipType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship()
Method Detail

setRelationshipType

public void setRelationshipType(int relationshipType)
Specified by:
setRelationshipType in interface IRelationship
Parameters:
relationshipType - the type of relationship 1 = node must be visited before related node within the same route 2 = node must not be visited within the same route as the related node

setRelatedNode

public void setRelatedNode(java.lang.String nodeId)
Specified by:
setRelatedNode in interface IRelationship
Parameters:
nodeId - the node id of the related node

getRelationshipType

public int getRelationshipType()
Specified by:
getRelationshipType in interface IRelationship
Returns:
the type of relationship 1 = node must be visited before related node within the same route 2 = node must not be visited within the same route as the related node

getRelatedNode

public java.lang.String getRelatedNode()
Specified by:
getRelatedNode in interface IRelationship
Returns:
the node id of the related node