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
clone, equals, finalize, 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 - set 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 3 = related node must not be visited within the same schedule as the related node (only available in STRICT_MIXEDFLEET_XOR_RELATIONSHIPS mode)

setRelatedNode

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

getRelationshipType

public int getRelationshipType()
Specified by:
getRelationshipType in interface IRelationship
Returns:
get type of relationship

getRelatedNode

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