def usage(): print 'Usage: exp-rt-score.py [-options]' print '\t\tto run the experiment.\n' print 'where options include:' print '-h, --help\tdisplay this message' print '--short\tdo a short run of the regTests' print '\nFor all tests:' print '--sneeql-root=<dir> \n\tdefault: ' + optSneeqlRoot print '--num-epochs=<sec> \n\tdefault: ' + str(optNumEpochs) print '--ouput-root=<dir> \n\tdefault: ' + str(optOutputRoot) print '--timestamp-output \n\tdefault: ' + str(optTimeStampOutput) print '--do-tossim \n\tdefault: ' + str(optDoTossim) print '--do-avrora \n\tdefault: ' + str(optDoAvrora) print '--num-avrora-runs \n\tdefault: ' + str(optNumAvroraRuns) print '--tossim-sync-time \n\tdefault: ' + str(optTossimSyncTime) print '--do-avrora-individual-queries \n\tdefault: ' + str( optDoAvroraIndividualQueries) print '--do-tossim-individual-queries \n\tdefault: ' + str( optDoTossimIndividualQueries) print '--generate-random-network=[True|False] \n\tdefault: ' + str( optGenerateRandomNet) print '\nIf a pre-existing network is to be used:' print '--sneeql-network-file=<file> \n\tdefault: ' + str(optSneeqlNetFile) print '--avrora-network-file=<file> \n\tdefault: ' + str( optAvroraNetFile ) + '\n\tif not provided freespace radio model won\'t be used by Avrora' print '\nIf a network is to be generated :' print '--net-num-nodes=<n> \n\tdefault: ' + str(optNetNumNodes) print '--net-x-dim=<n> \n\tdefault: ' + str(optNetXDim) print '--net-y-dim=<n> \n\tdefault: ' + str(optNetYDim) print '\nPhysical schema options:' print '--generate-random-schemas=[True|False] \n\tdefault: ' + str( optGenerateRandomSchemas) print '--num-schemas=<num> \n\tdefault: ' + str( optNumSchemas) + "\n\tonly applies if generate-random-schemas=True" print '--schema-file=<file> \n\tdefault: ' + str( optSchemaFile) + "\n\tonly applies if generate-random-schemas=False" print '\nScenarios to be tested:' print '--query-set=[Q1,Q2,..Qn] \n\tdefault: ' + str(optQuerySet) print '--sinks=[N1,N2,..Nn] \n\tdefault: ' + str(optSinks) print '--acq-rates=[a1,..,an] \n\t default: ' + str(optAcqRates) print '--max-buffering-factors=[b1..bn] \n\t default: ' + str( optMaxBufferingFactors) print '--max-delivery-time=[D1..Dn] \n\t default: ' + str( optMaxDeliveryTime) SneeqlLib.usage() TossimLib.usage() AvroraLib.usage() RandomSeeder.usage()
def usage(): print 'Usage: regTests.py [-options]' print '\t\tto run the experiment.\n' print 'where options include:' print '-h, --help\tdisplay this message' print '--short\tdo a short run of the regTests' print '\nFor all tests:' print '--sneeql-root=<dir> \n\tdefault: '+ optSneeqlRoot print '--num-agenda-evals=<n> \n\tdefault: ' + str(optNumAgendaEvals) print '--query-duration=<secs>' + str(optQueryDuration) print '--ouput-root=<dir> \n\tdefault: ' + str(optOutputRoot) print '--timestamp-output \n\tdefault: ' + str(optTimeStampOutput) print '--do-tossim \n\tdefault: ' + str(optDoTossim) print '--do-avrora \n\tdefault: ' + str(optDoAvrora) print '--num-avrora-runs \n\tdefault: ' + str(optNumAvroraRuns) print '--tossim-sync-time \n\tdefault: ' + str(optTossimSyncTime) print '--do-avrora-candidates \n\tdefault: ' + str(optDoAvroraCandidates) print '--do-tossim-candidates \n\tdefault: ' + str(optDoTossimCandidates) print '--do-model: ' + str(optDoModel) print '--generate-random-network=[True|False] \n\tdefault: '+str(optGenerateRandomNet) print '\nIf a pre-existing network is to be used:' print '--sneeql-network-file=<file> \n\tdefault: '+ str(optSneeqlNetFile) print '--avrora-network-file=<file> \n\tdefault: '+ str(optAvroraNetFile) + '\n\tif not provided freespace radio model won\'t be used by Avrora' print '\nIf a network is to be generated :' print '--net-num-nodes=<n> \n\tdefault: ' + str(optNetNumNodes) print '--net-x-dim=<n> \n\tdefault: ' + str(optNetXDim) print '--net-y-dim=<n> \n\tdefault: ' + str(optNetYDim) print '\nPhysical schema options:' print '--generate-random-schemas=[True|False] \n\tdefault: '+ str(optGenerateRandomSchemas) print '--num-schemas=<num> \n\tdefault: ' + str(optNumSchemas) + "\n\tonly applies if generate-random-schemas=True" print '--schema-file=<file> \n\tdefault: ' + str(optSchemaFile) + "\n\tonly applies if generate-random-schemas=False" print '\nScenarios to be tested:' print '--queries=[Q1..Qn] \n\tdefault: '+ str(optQueries) print '--acq-rates=[a1,..,an] \n\t default: ' + str(optAcqRates) print '--max-buffering-factors=[b1..bn] \n\t default: ' + str(optMaxBufferingFactors) print '--qos-aware-routing=[True|False] \n\tdefault:' + str(optQoSAwareRouting) #Move to sneeqlLib print '--routing-trees-to-generate=<n> \n\tdefault: ' + str(optRoutingTreesToGenerate) #Move to sneeqlLib print '--routing-trees-to-keep=<n> \n\tdefault: ' + str(optRoutingTreesToKeep) #Move to sneeqlLib print '--qos-aware-where-scheduling=[True|False] \n\tdefault:' + str(optQoSAwareWhereScheduling) #Move to sneeqlLib print '--qos-aware-when-scheduling=[True|False] \n\tdefault:' + str(optQoSAwareWhenScheduling) #Move to sneeqlLib SneeqlLib.usage() TossimLib.usage() AvroraLib.usage() RandomSeeder.usage()
def usage(): print 'Usage: regTests.py [-options]' print '\t\tto run the experiment.\n' print 'where options include:' print '-h, --help\tdisplay this message' print '--short\tdo a short run of the regTests' print '\nFor all tests:' print '--sneeql-root=<dir> \n\tdefault: '+ optSneeqlRoot print '--num-epochs=<sec> \n\tdefault: ' + str(optNumEpochs) print '--ouput-root=<dir> \n\tdefault: ' + str(optOutputRoot) print '--timestamp-output \n\tdefault: ' + str(optTimeStampOutput) print '--targets={avrora1,avrora2,tossim1,tossim2,insense} \n\tdefault: ' + str(optTargets) print '--num-avrora-runs \n\tdefault: ' + str(optNumAvroraRuns) print '--tossim-sync-time \n\tdefault: ' + str(optTossimSyncTime) print '--do-avrora-candidates \n\tdefault: ' + str(optDoAvroraCandidates) print '--do-tossim-candidates \n\tdefault: ' + str(optDoTossimCandidates) print '--generate-random-network=[True|False] \n\tdefault: '+str(optGenerateRandomNet) print '\nIf a pre-existing network is to be used:' print '--sneeql-network-file=<file> \n\tdefault: '+ str(optSneeqlNetFile) print '--avrora-network-file=<file> \n\tdefault: '+ str(optAvroraNetFile) + '\n\tif not provided freespace radio model won\'t be used by Avrora' print '\nIf a network is to be generated :' print '--net-num-nodes=<n> \n\tdefault: ' + str(optNetNumNodes) print '--net-x-dim=<n> \n\tdefault: ' + str(optNetXDim) print '--net-y-dim=<n> \n\tdefault: ' + str(optNetYDim) print '\nPhysical schema options:' print '--generate-random-schemas=[True|False] \n\tdefault: '+ str(optGenerateRandomSchemas) print '--num-schemas=<num> \n\tdefault: ' + str(optNumSchemas) + "\n\tonly applies if generate-random-schemas=True" print '--schema-file=<file> \n\tdefault: ' + str(optSchemaFile) + "\n\tonly applies if generate-random-schemas=False" print '\nScenarios to be tested:' print '--queries=[Q1..Qn] \n\tdefault: '+ str(optQueries) print '--acq-rates=[a1,..,an] \n\t default: ' + str(optAcqRates) print '--max-buffering-factors=[b1..bn] \n\t default: ' + str(optMaxBufferingFactors) print '--test-all=[True|False] \n\tdefault: '+ str(optTestAll) print '\nExperiment Parameters:' print '--led-debug\n\tdefault: ' + str(optLedDebug) SneeqlLib.usage() TossimLib.usage() AvroraLib.usage() RandomSeeder.usage() checkTupleCount.usage()
def usage(): print 'Usage: regTests.py [-options]' print '\t\tto run the experiment.\n' print 'where options include:' print '-h, --help\tdisplay this message' print '--short\tdo a short run of the regTests' print '\nFor all tests:' print '--sneeql-root=<dir> \n\tdefault: ' + optSneeqlRoot print '--sim-duration=<sec> \n\tdefault: ' + str(optSimDuration) print '--ouput-root=<dir> \n\tdefault: ' + str(optOutputRoot) print '--timestamp-output \n\tdefault: ' + str(optTimeStampOutput) print '--do-tossim \n\tdefault: ' + str(optDoTossim) print '--do-avrora \n\tdefault: ' + str(optDoAvrora) print '--num-avrora-runs \n\tdefault: ' + str(optNumAvroraRuns) print '--tossim-sync-time \n\tdefault: ' + str(optTossimSyncTime) print '--do-avrora-candidates \n\tdefault: ' + str(optDoAvroraCandidates) print '--do-tossim-candidates \n\tdefault: ' + str(optDoTossimCandidates) print '--sneeql-network-file=<file> \n\tdefault: ' + str(optSneeqlNetFile) print '--net-num-nodes=<n> \n\tdefault: ' + str(optNetNumNodes) print '\nPhysical schema options:' print '--schema-file=<file> \n\tdefault: ' + str( optSchemaFile) + "\n\tonly applies if generate-random-schemas=False" print '\nScenarios to be tested:' print '--queries=[Q1..Qn] \n\tdefault: ' + str(optQueries) print '--acq-rates=[a1,..,an] \n\t default: ' + str(optAcqRates) print '--max-buffering-factors=[b1..bn] \n\t default: ' + str( optMaxBufferingFactors) print '--delivery-times=[D1..Dn] \n\t default: ' + str(optDeliveryTimes) print '--test-all=[True|False] \n\tdefault: ' + str(optTestAll) print '\nExperiment Parameters:' print '--x-val-type=[acq|del|bf]' + str(optXValType) print '--led-debug\n\tdefault: ' + str(optLedDebug) SneeqlLib.usage() TossimLib.usage() AvroraLib.usage() RandomSeeder.usage() checkTupleCount.usage()