Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SM2DG.java

00001 package gov.nasa.arc.ase.util.graph;
00002 
00003 import java.io.IOException;
00004 
00005 public class SM2DG {
00006   public static void main(String[] args) {
00007     try {
00008       Graph g = null;
00009 
00010       switch(args.length) {
00011     case 0:
00012 //#ifdef BANDERA
00013           g = Graph.load(System.getProperty("user.dir")+java.io.File.separator+"out.sm");
00014 //#else
00015       g = Graph.load("out.sm");
00016 //#endif BANDERA
00017 
00018       g.save(Graph.FSP_FORMAT);
00019       break;
00020 
00021     case 1:
00022       g = Graph.load(args[0]);
00023       g.save(Graph.FSP_FORMAT);
00024       break;
00025 
00026     case 2:
00027       g = Graph.load(args[0]);
00028       g.save(args[1], Graph.FSP_FORMAT);
00029       break;
00030 
00031     default:
00032       System.err.println("usage:\nSM2DG [<infile> [<outfile>]]\n\n");
00033       System.exit(1);
00034       }
00035     } catch(IOException e) {
00036       e.printStackTrace();
00037     }
00038   }  
00039 }

Generated at Thu Feb 7 06:55:08 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001