Package experimenting
Class ExperimentRunnerViewThread
java.lang.Object
java.lang.Thread
experimenting.ExperimentRunnerViewThread
- All Implemented Interfaces:
java.lang.Runnable
class ExperimentRunnerViewThread
extends java.lang.Thread
Encapsulates one mapping experiment, ie. a specification of what systems to use and how the initial set is generated. It then contains the actual mappers to run. It also manages the visualization of the results of running experiments.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
ExperimentRunnerViewThread.DataListener
static class
ExperimentRunnerViewThread.DoExperimentAction
(package private) static class
ExperimentRunnerViewThread.MetricPair
(package private) static class
ExperimentRunnerViewThread.MetricSelection
(package private) static class
ExperimentRunnerViewThread.SystemNameFile
(package private) static class
ExperimentRunnerViewThread.SystemSelection
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
g_hugmemapper_ex
(package private) static int
g_id
(package private) static int
g_irattract_ex
(package private) static int
g_lsiattract_ex
(package private) static int
g_nbmapper_ex
(package private) ExperimentRunner
m_experiment
(package private) int
m_experimentIx
(package private) java.lang.String
m_id
(package private) ExperimentRunner.RandomDoubleVariable
m_initialSetSize
(package private) ExperimentRunnerViewThread.MetricSelection
m_selectedMetrics
(package private) ExperimentRunnerViewThread.SystemSelection
m_selectedSystem
(package private) boolean
m_useIntialMapping
-
Constructor Summary
Constructors Constructor Description ExperimentRunnerViewThread()
ExperimentRunnerViewThread(ExperimentRunnerViewThread a_toBeCopied)
ExperimentRunnerViewThread(ExperimentRunner a_runner)
-
Method Summary
Modifier and Type Method Description void
addMapper(MapperView a_mv)
(package private) ExperimentRunner
createExperiment()
ExperimentRunnerViewThread.DoExperimentAction
doExperiment(ImGuiWrapper a_imgui, ExperimentRunnerViewThread.DataListener a_newDataListener)
MapperView
findMapper(ExperimentRun a_er)
double
getAvgPerformance()
ExperimentRunner.State
getExState()
java.lang.Iterable<MapperView>
getMappers()
void
halt()
void
run()
void
runExperiment(ExperimentRunnerViewThread.DataListener a_newDataListener)
void
stopExperiment()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
m_id
java.lang.String m_id -
m_experiment
ExperimentRunner m_experiment -
g_nbmapper_ex
static final int g_nbmapper_ex- See Also:
- Constant Field Values
-
g_hugmemapper_ex
static final int g_hugmemapper_ex- See Also:
- Constant Field Values
-
g_irattract_ex
static final int g_irattract_ex- See Also:
- Constant Field Values
-
g_lsiattract_ex
static final int g_lsiattract_ex- See Also:
- Constant Field Values
-
m_experimentIx
int m_experimentIx -
m_initialSetSize
ExperimentRunner.RandomDoubleVariable m_initialSetSize -
m_selectedSystem
ExperimentRunnerViewThread.SystemSelection m_selectedSystem -
m_useIntialMapping
boolean m_useIntialMapping -
g_id
static int g_id -
m_selectedMetrics
ExperimentRunnerViewThread.MetricSelection m_selectedMetrics
-
-
Constructor Details
-
ExperimentRunnerViewThread
-
ExperimentRunnerViewThread
ExperimentRunnerViewThread() -
ExperimentRunnerViewThread
ExperimentRunnerViewThread(ExperimentRunner a_runner)
-
-
Method Details
-
runExperiment
-
stopExperiment
public void stopExperiment() -
getMappers
-
addMapper
-
findMapper
-
doExperiment
public ExperimentRunnerViewThread.DoExperimentAction doExperiment(ImGuiWrapper a_imgui, ExperimentRunnerViewThread.DataListener a_newDataListener) -
createExperiment
- Throws:
java.io.IOException
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
getExState
-
halt
public void halt() -
getAvgPerformance
public double getAvgPerformance()
-