public void transmitFile(String src)
	{
		TextProcessor.spellcheckFile(src, "prepare_" + src);
		TextProcessor.compressFile("prepare_" + src, "transfer_" + src);

		initializeNetwork();
		int delay = 0, time = 0;

		LinkedList<String> path = network.dijkstrasShortestPath("control", "device");
		System.out.println("\nStablishing a connection, please wait ...");

		for (int i = 0; i < path.size() - 1; i++)
		{
			for (Edge e : network.getVertices().get(path.get(i)).getEdges())
				if (e.getOtherVertex().getName().equals(path.get(i + 1)))
					delay = e.getWeight();

			try
			{
				Thread.sleep(100 * delay);
			}
			catch (InterruptedException e1)
			{
				e1.printStackTrace();
			}

			System.out.println("\tData arrived at " + path.get(i + 1) + " in " + delay + " seconds.");

			time += delay;
		}

		System.out.println("\"" + src + "\" reached after " + time + " seconds! Done...");
	}