public static TestThread createRequestGenerator(Scanner canal, int src){
		if(src == 1)
			System.out.print("Origin: ");
		int origin = Integer.parseInt(canal.nextLine());

		if(src == 1)
			System.out.print("Target: ");
		int target = Integer.parseInt(canal.nextLine());

		if(src == 1)
			System.out.print("Operations: ");
		int operations = Integer.parseInt(canal.nextLine());

		if(src == 1)
			System.out.print("Rate: ");
		int rate = Integer.parseInt(canal.nextLine());

		if(src == 1)
			System.out.print("Duration: ");
		int duration = Integer.parseInt(canal.nextLine());

		if(src == 1)
			System.out.print("Results File:");
		String results = canal.nextLine();

		TestThread t = null;
		try {
			t = new TestThread(1, new FileWriter(results));
			t.setParam(origin, target, operations, rate, duration);
		} catch (IOException e) {
			return null;
		}

		
		return t;

	}