public static void main(String[] args){
  CarTimeEstimator cte=null;
  long tNow=System.currentTimeMillis();
  int numberOfArguments=8;
  if (args.length != numberOfArguments) {
    throw new RuntimeException("Incorrect number of arguments provided.");
  }
 else {
    cte=new CarTimeEstimator();
  }
  boolean empties=cte.estimateCarTime(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],true);
  String result=empties ? "Unsuccessful" : "Successful";
  double time=(System.currentTimeMillis() - tNow) / 1000.0;
  log.info("----------------------------------------------------------");
  log.info(String.format("Process complete for %s (%s)",args[1],result));
  log.info("----------------------------------------------------------");
  log.info(String.format("        Time taken: %04.2fs",time));
  log.info("           Network: " + args[0]);
  log.info("         Linkstats: " + args[1]);
  log.info("        Population: " + args[2]);
  log.info("            Events: " + args[3]);
  log.info("             Zones: " + args[4] + " (Field "+ args[5]+ ")");
  log.info("             Hours: " + args[6]);
  log.info(" Output written to: " + args[7]);
  log.info("==========================================================");
}

public static void main ( String [ ] args ) { CarTimeEstimator cte = null ; long tNow = System . currentTimeMillis ( ) ; int numberOfArguments = 8 ; if ( args . length != numberOfArguments ) { throw new RuntimeException ( "Incorrect number of arguments provided." ) ; } else { cte = new CarTimeEstimator ( ) ; } boolean empties = cte . estimateCarTime ( args [ 0 ] , args [ 1 ] , args [ 2 ] , args [ 3 ] , args [ 4 ] , args [ 5 ] , args [ 6 ] , args [ 7 ] , true ) ; String result = empties ? "Unsuccessful" : "Successful" ; double time = ( System . currentTimeMillis ( ) - tNow ) / 1000.0 ; log . info ( "----------------------------------------------------------" ) ; log . info ( String . format ( "Process complete for %s (%s)" , args [ 1 ] , result ) ) ; log . info ( "----------------------------------------------------------" ) ; log . info ( String . format ( "        Time taken: %04.2fs" , time ) ) ; log . info ( "           Network: " + args [ 0 ] ) ; log . info ( "         Linkstats: " + args [ 1 ] ) ; log . info ( "        Population: " + args [ 2 ] ) ; log . info ( "            Events: " + args [ 3 ] ) ; log . info ( "             Zones: " + args [ 4 ] + " (Field " + args [ 5 ] + ")" ) ; log . info ( "             Hours: " + args [ 6 ] ) ; log . info ( " Output written to: " + args [ 7 ] ) ; log . info ( "==========================================================" ) ; }
implements the private car drive time estimator .
