def parseArgs(args): global optSneeqlRoot, optNumEpochs, optOutputRoot, optTimeStampOutput, optDoTossim, optDoAvrora, optNumAvroraRuns, optTossimSyncTime, optDoAvroraCandidates, optDoTossimCandidates, optGenerateRandomNet, optSneeqlNetFile, optAvroraNetFile, optNetNumNodes, optNetXDim, optNetYDim, optGenerateRandomSchemas, optNumSchemas, optSchemaFile, optQueries, optAcqRates, optMaxBufferingFactors try: optNames = [ "help", "short", "sneeql-root=", "num-epochs=", "output-root=", "timestamp-output=", "do-tossim=", "do-avrora=", "num-avrora-runs=", "tossim-sync-time=", "do-avrora-candidates=", "do-tossim-candidates=" ] optNames += [ "generate-random-network=", "sneeql-network-file=", "avrora-network-file=", "net-num-nodes=", "net-x-dim=", "net-y-dim=" ] optNames += [ "generate-random-schemas=", "num-schemas=", "schema-file=" ] optNames += ["queries=", "acq-rates=", "max-buffering-factors="] #append the result of getOpNames to all the libraries optNames += SneeqlLib.getOptNames() optNames += TossimLib.getOptNames() optNames += AvroraLib.getOptNames() optNames += RandomSeeder.getOptNames() optNames = UtilLib.removeDuplicates(optNames) opts, args = getopt.getopt(args, "h", optNames) except getopt.GetoptError, err: print str(err) usage() sys.exit(2)
def parseArgs(args): global optSneeqlRoot, optSimDuration, optOutputRoot global optTimeStampOutput, optDoTossim, optDoAvrora global optTossimSyncTime, optDoAvroraCandidates, optDoTossimCandidates global optSneeqlNetFile global optNetNumNodes global optSchemaFile global optQueries, optAcqRates, optMaxBufferingFactors, optDeliveryTimes global optTestAll, optLedDebug, optXValType try: optNames = [ "help", "short", "sneeql-root=", "sim-duration=", "output-root=" ] optNames += [ "timestamp-output=", "compile-sneeql=", "do-tossim=", "do-avrora=" ] optNames += [ "tossim-sync-time=", "do-avrora-candidates=", "do-tossim-candidates=" ] optNames += [ "generate-random-network=", "sneeql-network-file=", "net-num-nodes=" ] optNames += ["schema-file="] optNames += [ "queries=", "acq-rates=", "max-buffering-factors=", "delivery-times=", "test-all=", "x-val-type=" ] #append the result of getOpNames to all the libraries optNames += SneeqlLib.getOptNames() optNames += TossimLib.getOptNames() optNames += AvroraLib.getOptNames() optNames += RandomSeeder.getOptNames() optNames += checkTupleCount.getOptNames() optNames = UtilLib.removeDuplicates(optNames) opts, args = getopt.getopt(args, "h", optNames) except getopt.GetoptError, err: print str(err) usage() sys.exit(2)
def parseArgs(args): global optSneeqlRoot, optNumAgendaEvals, optQueryDuration, optOutputRoot, optLabel, optTimeStampOutput, optDoTossim, optDoAvrora, optNumAvroraRuns, optTossimSyncTime, optDoAvroraCandidates, optDoTossimCandidates, optDoModel, optGenerateRandomNet, optSneeqlNetFile, optAvroraNetFile, optNetNumNodes, optNetXDim, optNetYDim, optGenerateRandomSchemas, optNumSchemas, optSchemaFile, optQueries, optAcqRates, optMaxBufferingFactors, optQoS, optQoSAwareRouting, optRoutingTreesToGenerate, optRoutingTreesToKeep, optQoSAwareWhereScheduling, optQoSAwareWhenScheduling, optBufferingFactor try: optNames = ["help", "sneeql-root=", "num-agenda-evals=", "query-duration=", "output-root=", "label=", "timestamp-output=", "do-tossim=", "do-avrora=", "num-avrora-runs=", "tossim-sync-time=", "do-avrora-candidates=", "do-tossim-candidates=", "do-model="] optNames += ["generate-random-network=", "sneeql-network-file=", "avrora-network-file=", "net-num-nodes=", "net-x-dim=", "net-y-dim="] optNames += ["generate-random-schemas=", "num-schemas=", "schema-file="] optNames += ["queries=", "acq-rates=", "max-buffering-factors="] optNames += ["qos-aware-routing=", "routing-trees-to-generate=", "routing-trees-to-keep=", "qos-aware-where-scheduling=", "qos-aware-when-scheduling=","buffering-factor="] #append the result of getOpNames to all the libraries optNames += SneeqlLib.getOptNames(); optNames += TossimLib.getOptNames(); optNames += AvroraLib.getOptNames(); optNames += RandomSeeder.getOptNames(); optNames = UtilLib.removeDuplicates(optNames) opts, args = getopt.getopt(args, "h",optNames) except getopt.GetoptError, err: print str(err) usage() sys.exit(2)