Package se.lnu.siq.s4rdm3x.experiments
Class ExperimentRun
java.lang.Object
se.lnu.siq.s4rdm3x.experiments.ExperimentRun
- Direct Known Subclasses:
HuGMeExperimentRun
,IRExperimentRunBase
public abstract class ExperimentRun
extends java.lang.Object
Encapsulates basic parameters for running a mapper and provides an interface that needs to be fulfilled by subclasses.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExperimentRun(boolean a_doUseManualMapping)
-
Method Summary
Modifier and Type Method Description ExperimentRun
clone()
abstract ExperimentRunData.BasicRunData
createNewRunData(java.util.Random m_rand)
Called once for every experiment run.boolean
doUseManualMapping()
java.lang.String
getName()
abstract boolean
runClustering(CGraph a_g, ArchDef arch)
Called for every iteration in the mapping process.void
setName(java.lang.String a_name)
protected abstract ExperimentRun
subClone()
-
Constructor Details
-
ExperimentRun
protected ExperimentRun(boolean a_doUseManualMapping)
-
-
Method Details
-
doUseManualMapping
public boolean doUseManualMapping() -
createNewRunData
Called once for every experiment run. This is where specific mapping parameters are set.- Parameters:
m_rand
- Random object to be used when assigning random variables a value- Returns:
- an initiated instance of run data, this is probably a subclass with mapper specific parameters set
-
runClustering
Called for every iteration in the mapping process. Should basically instantiate a concrete mapper and run the mapping, then collect the relevant data for mapped nodes etc.- Parameters:
a_g
- Graph that contains all nodes of the systems, of particular interest are orphans and mapped nodes.arch
- Describes the architectural modules and their relations- Returns:
- false as long as there something is mapped.
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String a_name) -
clone
- Overrides:
clone
in classjava.lang.Object
- Returns:
- a new deep copied instance
-
subClone
- Returns:
- a new copied instance of a concrete ExperimentRun. All member should be deep copied and not referenced.
-