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 Details

    • ExperimentRun

      protected ExperimentRun​(boolean a_doUseManualMapping)
  • Method Details

    • doUseManualMapping

      public boolean doUseManualMapping()
    • createNewRunData

      public abstract ExperimentRunData.BasicRunData createNewRunData​(java.util.Random m_rand)
      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

      public abstract boolean runClustering​(CGraph a_g, ArchDef arch)
      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

      public ExperimentRun clone()
      Overrides:
      clone in class java.lang.Object
      Returns:
      a new deep copied instance
    • subClone

      protected abstract ExperimentRun subClone()
      Returns:
      a new copied instance of a concrete ExperimentRun. All member should be deep copied and not referenced.