All Downloads are FREE. Search and download functionalities are using the official Maven repository.

toxgene.ToXgene Maven / Gradle / Ivy

The newest version!
/*
 * ToXgene.java implements the front-end to the Tox Generator
 * 
 * @author Denilson Barbosa
 * 
 * @version 0.1
 */

package toxgene;

import java.util.Vector;
import java.text.DecimalFormat;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileInputStream;
import java.io.PrintStream;

import toxgene.core.Engine;
import toxgene.core.ToXgeneErrorException;
import toxgene.interfaces.ToXgeneDocumentCollection;
import toxgene.interfaces.ToXgeneSession;
import toxgene.util.ToXgeneReporterImpl;

public class ToXgene{
	private static Engine tgEngine;

 	private static boolean verbose = false;
	public final static String version = "2.3";

	private static boolean addNewLine = false;
	
	private static boolean showWarnings = true;
	private static boolean showTime = false;

	/**
	 * these concern the use of an persistent object manager
	 */
	private static boolean usePOM = false;

	private static long totalMemory;
	private static float memFracBuffer;		
	private static int numBuffers;
	private static int bufferSize;
	private static String bufferPath;

	private static String inputPath;
	private static String outputPath = "./";
	private static String jarPath = null;
	private static boolean useJar = false;
 	private static long initialSeed;
	
	private static ToXgeneReporterImpl tgReporter;

	/**
	 * program entry point
	 */
  public static void main (String argv []){	
		long t_start = 0, t_parse = 0, t_lists = 0, t_done = 0;
		int argc = argv.length;
		boolean generate = true;
		
		String cpr = "ToXgene "+version+" - "+
			"(c) 2001 by University of Toronto and IBM Corporation\n\n";

		String msg = "Usage: ToXgene