Class Node2NodesMultiDayRelation

java.lang.Object
com.dna.jopt.member.unit.relation.node2node.AbstracNode2NodeRelation
com.dna.jopt.member.unit.relation.node2nodes.multiday.Node2NodesMultiDayRelation
All Implemented Interfaces:
INode2NodeRelation, INodeRelation, INode2MultiNodesRelation, INode2NodesMultiDayRelation, Serializable

public class Node2NodesMultiDayRelation extends AbstracNode2NodeRelation implements INode2NodesMultiDayRelation
This interface provides methods which allow to set relations between INodes concerning the specific IResource visiting them.

Example for setting a different visitor among the Nodes "moers" and "gladbach":

 {
     @code
     INode2NodeVisitorRelation rel = new RelativeVisitor2RelatedNodeRelation();
     rel.setIsForcedDifferentVisitor();
     rel.setMasterNode(moers);
     rel.setRelatedNode(gladbach);
     moers.addNode2NodeRelation(rel);
     gladbach.addNode2NodeRelation(rel);
 }
 
Since:
03/08/2019
Version:
13/02/2020
Author:
DNA
See Also:
  • Constructor Details

    • Node2NodesMultiDayRelation

      public Node2NodesMultiDayRelation()
      The constructor for a relation between two Nodes that must be visited by the same or different Resource.
    • Node2NodesMultiDayRelation

      public Node2NodesMultiDayRelation(List<com.dna.jopt.config.types.RouteElementDetail> anchorDetails)
  • Method Details