Example #1
0
else:
	scenario = Scenario(sys.argv[1],0) 
	scenario.run()

	if len(sys.argv) > 3 :
		print "Collecting results..."
		if("autoCollect" in sys.argv):
			time.sleep(5)
		else:
			raw_input("Press any key to start collection")

		print "collect_path:"+sys.argv[2]
		print "policy_name:"+sys.argv[3]
		
		collectPath = sys.argv[2]
		scenario.policyName = sys.argv[3]

		plotpath = "./out/plots/"+scenario.pStartDate
		scenfile = sys.argv[1][sys.argv[1].rfind("/")+1:]
		scenfile = scenfile[:scenfile.rfind(".")]

		procLogs = scenario.logPath
		report   = scenario.resultFile.name
		heapUsed = scenario.minHeapSize

		if collectPath[len(collectPath)-1] != "/":
			collectPath += "/"
		collectPath += scenfile + "_" + scenario.policyName
		
		print "Creating Collection Directory "+str(collectPath)
		if not os.path.exists(collectPath):