public ParameterParser(String[] args) {
		for (int i = 0; i < args.length; i++) {
			if (parseFlags(args[i])) {
				continue;
			}

			if (args[i].matches("--network-config") && args.length > i + 1) {
				networkConfigFile = args[++i];
			} else if (args[i].matches("--speed") && args.length > i + 1) {
				speedFactor = Double.parseDouble(args[++i]);
			} else if (args[i].matches("--help")) {
				helpRequest = true;
			} else {
				throw new InvalidParameterException("Unknown parameter " + i
						+ ": " + args[i]);
			}
		}
	}