protected class GASRunnerBase.OptionData extends Object
GASRunner
.Modifier and Type | Field and Description |
---|---|
Class<IGASProgram<VS,ES,ST>> |
analyticClass
The analytic class to be executed.
|
static int |
DEFAULT_NRUNS |
static int |
DEFAULT_NSAMPLES |
static int |
DEFAULT_NTHREADS |
static long |
DEFAULT_SEED |
LinkedHashSet<String> |
loadSet
Set of files to load (may be empty).
|
int |
nruns
The #of runs per initial condition.
|
int |
nsamples
The #of random starting vertices to use for algorithms that use
a single starting vertex in the initial frontier and otherwise
ignored.
|
int |
nthreads
The #of threads to use for GATHER and SCATTER operators.
|
String |
propertyFile
The name of the implementation specific configuration file.
|
Random |
r
Random number generated used for sampling the starting vertices.
|
Class<IGASSchedulerImpl> |
schedulerClassOverride
The
IGASSchedulerImpl class to use. |
long |
seed
The seed used for the random number generator (default
).
|
Modifier | Constructor and Description |
---|---|
protected |
GASRunnerBase.OptionData() |
Modifier and Type | Method and Description |
---|---|
boolean |
handleArg(AtomicInteger i,
String[] args)
Return
true iff one or more arguments can be parsed
starting at the specified index. |
void |
init()
Initialize any resources, including the connection to the backend.
|
void |
report(StringBuilder sb)
Extension hook for reporting at the end of the test run.
|
void |
shutdown()
Shutdown any resources, including the connection to the backend.
|
void |
usage(int status,
String msg)
Print the optional message on stderr, print the usage information on
stderr, and then force the program to exit with the given status code.
|
public static final long DEFAULT_SEED
public static final int DEFAULT_NRUNS
public static final int DEFAULT_NSAMPLES
public static final int DEFAULT_NTHREADS
public long seed
public Random r
public int nruns
nruns * nsamples
runs. For algorithms that populate the
initial frontier with all vertices (e.g., CC, PR), there will be a
total of nruns
.public int nsamples
public int nthreads
public Class<IGASProgram<VS,ES,ST>> analyticClass
public Class<IGASSchedulerImpl> schedulerClassOverride
IGASSchedulerImpl
class to use.
TODO Override or always? If always, then where to get the default?public final LinkedHashSet<String> loadSet
public String propertyFile
public void init() throws Exception
Exception
public void shutdown()
Note: This method must be safe. It may be called if init()
fails. It may be called more than once.
public boolean handleArg(AtomicInteger i, String[] args)
true
iff one or more arguments can be parsed
starting at the specified index.i
- The index into the arguments.args
- The arguments.true
iff any arguments were recognized.public void usage(int status, String msg)
status
- The status code.msg
- The optional messagepublic void report(StringBuilder sb)
sb
- A buffer into which more information may be appended.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.