Class TSPTWInstance

java.lang.Object
es.urjc.etsii.grafo.io.Instance
es.urjc.etsii.grafo.tsptw.model.TSPTWInstance
All Implemented Interfaces:
Comparable<Instance>

public class TSPTWInstance extends Instance
  • Constructor Details

    • TSPTWInstance

      public TSPTWInstance(String suggestedName, int n, double[][] distance, int[] windowStart, int[] windowEnd, boolean isSymmetric)
  • Method Details

    • compareTo

      public int compareTo(Instance other)
      How should instances be ordered, when listing and solving them. If not implemented, defaults to lexicographic sort by instance name
      Specified by:
      compareTo in interface Comparable<Instance>
      Overrides:
      compareTo in class Instance
      Parameters:
      other - the other instance to be compared against this one
      Returns:
      comparison result
    • n

      public int n()
    • dist

      public double dist(int a, int b)
    • getWindowStart

      public int getWindowStart(int a)
    • getWindowEnd

      public int getWindowEnd(int a)
    • isSymmetric

      public boolean isSymmetric()
    • getDistance

      public double[][] getDistance()
    • getWindowStart

      public int[] getWindowStart()
    • getWindowEnd

      public int[] getWindowEnd()