public class Experimenter
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
private class |
Experimenter.ProcessTask
A process task forms a simulation task for the experimenter.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.util.concurrent.Future<?>> |
futures
The different processes.
|
private java.util.List<java.lang.String[]> |
inputs
The inputs.
|
private java.lang.String[] |
mainLocation
The location of the main class.
|
private long |
startTime
The starting time of the experiment.
|
private boolean |
success
Success or not.
|
Constructor and Description |
---|
Experimenter(java.util.List<java.lang.String[]> inputs,
java.lang.Class<?> mainClass)
Creates an experimenter.
|
Modifier and Type | Method and Description |
---|---|
private <T> T[] |
concatenate(T[] a,
T[] b)
Concatenates two arrays.
|
private void |
executeExperiment()
Execute the experiment.
|
private void |
postProcess()
Post processing.
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private java.util.List<java.util.concurrent.Future<?>> futures
private java.util.List<java.lang.String[]> inputs
private java.lang.String[] mainLocation
private long startTime
private boolean success
public Experimenter(java.util.List<java.lang.String[]> inputs, java.lang.Class<?> mainClass)
inputs
- The inputs.mainClass
- The main class.private <T> T[] concatenate(T[] a, T[] b)
T
- The type.a
- First array.b
- Second array.private void executeExperiment()
private void postProcess()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread