Class ConnectionCostsWriter


  • final class ConnectionCostsWriter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionCostsWriter​(int forwardSize, int backwardSize)
      Constructor for building.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int forwardId, int backwardId, int cost)  
      void write​(java.nio.file.Path baseDir)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • costs

        private final short[][] costs
      • forwardSize

        private final int forwardSize
      • backwardSize

        private final int backwardSize
    • Constructor Detail

      • ConnectionCostsWriter

        ConnectionCostsWriter​(int forwardSize,
                              int backwardSize)
        Constructor for building. TODO: remove write access
    • Method Detail

      • add

        public void add​(int forwardId,
                        int backwardId,
                        int cost)
      • write

        public void write​(java.nio.file.Path baseDir)
                   throws java.io.IOException
        Throws:
        java.io.IOException