// (c) 2000 Benjamin Fry, MIT Media Laboratory, fry@media.mit.edu
// Aesthetics + Computation Group, Massachussetts Institute of Technology


import java.awt.*; 
import java.awt.event.*;


public class TestCAST {
  static public void main(String args[]) {
    SimilarityMatrixTest matrix = new SimilarityMatrixTest(0.5f);
    Frame frame = new Frame("test");
    OutputEnvironment output = new OutputEnvironment(null, matrix);
    frame.add(output);
    frame.pack();
    frame.show();

    WindowAdapter windowListener = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
	System.exit(0);
      }
    };
    frame.addWindowListener(windowListener);

    ClusterMethodCAST method = 
      new ClusterMethodCAST(matrix, output, null, 
			    new Float(args[0]).floatValue());
    output.method = method;

    method.start();
  }
}

