JOpt.SDK
Interface IRelationship
- All Known Implementing Classes:
- Relationship
- public interface IRelationship
IRelationship provides access to the relationships' attributes. Relationships are used to define a relationship between two nodes.
A relationship consists of a relationship type and a related node. The type defines the kind of relationship (e.g. visit this node before...,
do not visit this node within the same route than...). The related node defines the target object of that relationship.
setRelationshipType
public void setRelationshipType(int relationshipType)
- 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
getRelationshipType
public int getRelationshipType()
- 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
setRelatedNode
public void setRelatedNode(java.lang.String nodeId)
- Parameters:
nodeId - the node id of the related node
getRelatedNode
public java.lang.String getRelatedNode()
- Returns:
- the node id of the related node