@Override
	public void exportWrite(String path) {
		double percent = 0;
		int qntNodeEv = 0;
		double lambda = 0;
		Distribution distTraffic = null;

		System.out.println("----------------------------------");
		System.out.println("ConfSimulation");
		System.out.println("----------------------------------");

		try {
			// Ler os parametros do xml de configuração e inicializa a
			// quantidade de nodos que irão enviar eventos

			percent = Configuration
					.getDoubleParameter("ConfSimulation/traffic/percentNodes");
			qntNodeEv = (int) (Tools.getNodeList().size() * percent) / 100;

			lambda = Configuration
					.getDoubleParameter("ConfSimulation/traffic/lambda");

			distTraffic = new PoissonDistribution(lambda);

			System.out.println("ConfSimulation/traffic/percentNodes = "
					+ percent);
			System.out.println("qntNodeEv = " + qntNodeEv);
			System.out.println("ConfSimulation/traffic/lambda = " + lambda);

		} catch (CorruptConfigurationEntryException e) {
			e.printStackTrace();
		}

		try {
			// imprime em um arquivo quais nodos seu
			// respectivo número de tiros seguindo
			// uma distribuição de poisson

			PrintStream ps = new PrintStream(path);
			ps.println("Number of nodes: " + Tools.getNodeList().size());
			Configuration.printConfiguration(ps);
			ps.println(separator);

			// id = 1 é o root e não deve ser selecionado
			UniformDistribution ud = new UniformDistribution(2, Tools
					.getNodeList().size());
			Set<Integer> setNodes = new HashSet<Integer>();

			while (setNodes.size() <= qntNodeEv) {
				setNodes.add((int) ud.nextSample());
			}

			Iterator<Integer> it = setNodes.iterator();
			while (it.hasNext()) {
				ps.println(it.next() + " " + (int) distTraffic.nextSample());
			}
			/*
			 * for(Node n : Tools.getNodeList()) { Position p = n.getPosition();
			 * ps.println(p.xCoord + ", " + p.yCoord + ", " + p.zCoord); }
			 */

			ps.close();

		} catch (FileNotFoundException e) {
			Tools.minorError(e.getMessage());
		}

		System.out.println("----------------------------------");
		System.out.println("End ConfSimulation");
		System.out.println("----------------------------------");

	}