def METHOD_NAME(self, argv):
    bin = argv[0]
    argv = argv[1:]
    try:
        opts, args = getopt.getopt(argv,"v:ha:g:s:N:M:P:Q:p:k:d:",["--simulation-port=","--agregator-port=","--agregator-address=","--key-plot=","--verbose=","--db-name="])
    except getopt.GetoptError:
        self.printHelp(bin)
        sys.exit(2)
    for opt, arg in opts:
        if opt == '-h':
            self.printHelp(bin)
            sys.exit(0)
        elif opt in ("-v", "--verbose"):
            self.printfunc = verbose
            self.setDebugLevel(int(arg))
        elif opt in ("-a", "--agregator-port"):
            self.setAgregatorPort(int(arg))
        elif opt in ("-d", "--db-name"):
            self.setDbName(arg)
        elif opt in ("-g", "--agregator-address"):
            self.setAgregatorAddress(arg)
        elif opt in ("-s", "--simu-port"):
            self.setSimuPort(int(arg))
        elif opt in ("-p", "--port"):
            self.setPort(int(arg))
        elif opt in ("-k", "--key-plot"):
            self.setKeyPlot(arg)
        elif opt in ("-N"):
            self.setN(int(arg))
        elif opt in ("-M"):
            self.setM(int(arg))
        elif opt in ("-P"):
            self.setP(int(arg))
        elif opt in ("-Q"):
            self.setQ(int(arg))
    if self.P * self.Q is not self.N:
        self.Q = 1
        self.P = self.N