public void sendCommand(String command) 
	{
		initializeNetwork();
		int delay = 0, time = 0;
	
		List<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 //Emulating an external connection delay
			{
				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("Command reached after " + time + " seconds! Please enter your next command...");
	}