/[projects]/dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/osrm/OSRMHelper.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/osrm/OSRMHelper.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2754 by torben, Thu Oct 8 18:31:53 2015 UTC revision 2755 by torben, Tue Oct 20 10:36:06 2015 UTC
# Line 74  public class OSRMHelper { Line 74  public class OSRMHelper {
74                                  return null;                                  return null;
75                          }                          }
76    
77                            if ( table.distance_table.length != (hayArray.length + 1) ) {
78                                    logger.log(Level.SEVERE, "Wrong number of results in matrix " + table.distance_table.length);
79                                    System.exit(0);
80                            }
81    
82                          int bedsteTid = Integer.MAX_VALUE;                          int bedsteTid = Integer.MAX_VALUE;
83    
84                          for (int i = 1; i<table.distance_table.length; i++) {                          for (int i = 1; i<table.distance_table.length; i++) {
# Line 120  public class OSRMHelper { Line 125  public class OSRMHelper {
125    
126                  try {                  try {
127                          float distance_table[][] = binding.table( points );                          float distance_table[][] = binding.table( points );
128                            
129                            if ( distance_table.length != (hayArray.length + 1) ) {
130                                    logger.log(Level.SEVERE, "Wrong number of results in matrix " + distance_table.length);
131                                    System.exit(0);
132                            }
133    
134                          int bedsteTid = Integer.MAX_VALUE;                          int bedsteTid = Integer.MAX_VALUE;
135    

Legend:
Removed from v.2754  
changed lines
  Added in v.2755

  ViewVC Help
Powered by ViewVC 1.1.20