001 /* 002 * Main.java 003 * Part of the Spirograph problem set. 004 * 005 * Developed for "Rethinking CS101", a project of Lynn Andrea Stein's AP Group. 006 * For more information, see http://www.ai.mit.edu/projects/cs101, the 007 * CS101 homepage or email las@ai.mit.edu. 008 * 009 * Copyright (C) 1998 Massachusetts Institute of Technology. 010 * Please do not redistribute without obtaining permission. 011 */ 012 013 package spirograph; 014 015 /** Main is a wrapper for Spirograph. 016 * 017 * <p>Copyright © 1998 Massachusetts Institute of Technology<br /> 018 * Copyright © 2003 Franklin W. Olin College of Engineering.</p> 019 * 020 * @author Todd C. Parnell, tparnell@ai.mit.edu 021 * @version $Id: Main.java,v 1.4 2003/01/15 17:36:10 gus Exp $ 022 */ 023 public class Main { 024 025 /** 026 * This is the entry point for the old (1998) interface. 027 * @param argv The command line arguments 028 */ 029 public static void main(String[] argv) { 030 031 switch (argv.length) { 032 case 0: Spirograph s0 = new Spirograph(null, null); break; 033 case 1: Spirograph s1 = new Spirograph(argv[0], null); break; 034 case 2: Spirograph s2 = new Spirograph(argv[0], argv[1]); break; 035 default: System.out.println("You must specify 0, 1, or 2 arguments."); 036 } 037 } 038 039 /** Prevent instantiation. */ 040 private Main() {} 041 } 042 043 /* 044 * $Log: Main.java,v $ 045 * Revision 1.4 2003/01/15 17:36:10 gus 046 * adding log keywords to files that don't have them 047 * 048 */