//Anton Dubrau
//comp202, summer 2010, ass5 solutions

//main just compares two dna string, whose filenames are given as command line arguments

class Main{
  //see above
  public static void main(String[] args){
    //if not two filenames are given, print info messages
    if (args.length < 2){
      System.out.println("welcome to the dna comparing program");
      System.out.println("please specify two dna sequence files as command line arguments.");
      System.out.println("Their edit distance will be computed, to indicate what the smallest");
      System.out.println("number of atomic mutations is, that would allow evolving from one");
      System.out.println("to the other.");
      System.exit(0);
    }

    //otherwise do comparison
    //read strings
    DNAString dna1 = new DNAString(args[0]);
    DNAString dna2 = new DNAString(args[1]);

    //compare and print result
    System.out.println(dna1.getSpecies()+" vs "+dna2.getSpecies()+": "+
                       dna1.getMutations(dna2));
  }
}
