public static void main(String[] args)
	{	
		String filename = "SimpleDynamicScenario.txt";
//		String filename = "properties.txt";
		String outputPath = "./";
		if (args.length >= 2)
		{
			filename = args[0];
			outputPath = args[1];
		}
		if (args.length > 2)
			System.err.println("WARNING: Only two arguments required. Ignoring arguments after the first two.");
		if (args.length <= 1)
		{
			System.err.println("WARNING: Two arguments required <setup_file_name> <ouput_dir_path>. Running simulation with default values \"properties.txt\" and \"./\".");
		}
			
		sfp = new SetupFileParser();
		sfp.parseFileForProperties(filename);	
		StandAloneSimulation sas = new StandAloneSimulation(outputPath, "RunFrom" + (new File(filename)).getName().replace(".", "_")+System.currentTimeMillis(), 
					sfp.generalProps.getProperty("seed") != null ? Integer.parseInt(sfp.generalProps.getProperty("seed")) : 0,
					sfp.generalProps.getProperty("useDerby") != null ? Boolean.parseBoolean(sfp.generalProps.getProperty("useDerby")) : true );
		
		try {
			sas.setup(false);
		} catch (Exception e) {
			e.printStackTrace();
		}
	
		sas.runSimulation();
		
		boolean printKPIs =sfp.generalProps.getProperty("printKPIs") != null ? Boolean.parseBoolean(sfp.generalProps.getProperty("printKPIs")) : false;
		if (printKPIs)
			sas.printKPIs();
	}