JOpt.SDK
Interface IRelationship
- All Known Implementing Classes:
- Relationship
- public interface IRelationship
used to define a relationship between two nodes
setRelationshipType
public void setRelationshipType(int relationshipType)
- 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)
- Parameters:
nodeId - set the node-id of the related node
getRelationshipType
public int getRelationshipType()
- Returns:
- get type of relationship
getRelatedNode
public java.lang.String getRelatedNode()
- Returns:
- set the node-id of the related node