//main class. Only job is to choose which interface to use, and hold graph data in memory public class BiGpairSEQ { private static GraphWithMapData graphInMemory = null; private static String graphFilename = null; public static void main(String[] args) { if (args.length == 0) { InteractiveInterface.startInteractive(); } else { //This will be uncommented when command line arguments are re-implemented. //CommandLineInterface.startCLI(args); System.out.println("Command line arguments are still being re-implemented."); } } public static GraphWithMapData getGraph() { return graphInMemory; } public static void setGraph(GraphWithMapData g) { if (graphInMemory != null) { clearGraph(); } graphInMemory = g; } public static void clearGraph() { graphInMemory = null; System.gc(); } public static String getGraphFilename() { return graphFilename; } public static void setGraphFilename(String filename) { graphFilename = filename; } }