Package de.uka.ipd.sdq.simulation
Class AbstractSimulationConfig
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.AbstractSimulationConfig
-
- All Implemented Interfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationConfig,Serializable
- Direct Known Subclasses:
SimuComConfig
public abstract class AbstractSimulationConfig extends Object implements Serializable, de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationConfig
This is the abstract base class for simulation configurations. It encapsulates the configuration elements that are common to all PCM simulators.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_EXPERIMENT_RUNDefault name for an experiment run.static StringDEFAULT_MAXIMUM_MEASUREMENT_COUNTDefault for stop condition maximum measurement count.static StringDEFAULT_PERSISTENCE_RECORDER_NAMEDefault name of persistence recorder.static StringDEFAULT_SIMULATION_TIMEDefault for stop condition simulation time.static StringDEFAULT_SIMULATOR_IDDefault simulator implementationstatic StringDEFAULT_VARIATION_NAMEDefault name for an experiment run.protected org.palladiosimulator.analyzer.workflow.runconfig.ExperimentRunDescriptordescriptorstatic StringEXPERIMENT_RUNSimulation configuration tabstatic StringFIXED_SEED_PREFIXstatic StringMAXIMUM_MEASUREMENT_COUNTprotected LongmaxMeasurementsCountprotected StringnameExperimentRunconfiguration optionsstatic StringPERSISTENCE_RECORDER_NAMEprotected de.uka.ipd.sdq.probfunction.math.IRandomGeneratorrandomNumberGeneratorprotected long[]randomSeedprotected org.palladiosimulator.recorderframework.config.IRecorderConfigurationFactoryrecorderConfigurationFactoryprotected StringrecorderNamestatic StringSIMULATION_TIMEstatic StringSIMULATOR_IDprotected longsimuTimestatic StringUSE_FIXED_SEEDstatic StringVARIATION_IDprotected StringvariationIdstatic StringVERBOSE_LOGGING
-
Constructor Summary
Constructors Constructor Description AbstractSimulationConfig(Map<String,Object> configuration, boolean debug)Constructs a new AbstractSimulationConfig.AbstractSimulationConfig(Map<String,Object> configuration, boolean debug, org.palladiosimulator.recorderframework.config.IRecorderConfigurationFactory configFactory)Constructs a new AbstractSimulationConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ISimulationListener l)voiddisposeRandomGenerator()Dispose random generator and delete reference to it so that thisSimuComConfigcan be started again and will create a new RandomGenerator.StringgetAdditionalExperimentRunDescription()StringgetEngine()org.palladiosimulator.analyzer.workflow.runconfig.ExperimentRunDescriptorgetExperimentRunDescriptor()List<ISimulationListener>getListeners()longgetMaxMeasurementsCount()StringgetNameBase()StringgetNameExperimentRun()org.palladiosimulator.recorderframework.config.IRecorderConfigurationFactorygetRecorderConfigurationFactory()StringgetRecorderName()protected long[]getSeedFromConfig(Map<String,Object> configuration)StringgetSimulatorId()longgetSimuTime()StringgetVariationId()booleangetVerboseLogging()booleanisDebug()voidsetAdditionalExperimentRunDescription(String additionalExperimentRunDescription)voidsetExperimentRunDescriptor(org.palladiosimulator.analyzer.workflow.runconfig.ExperimentRunDescriptor descriptor)voidsetNameBase(String name)
-
-
-
Field Detail
-
VARIATION_ID
public static final String VARIATION_ID
- See Also:
- Constant Field Values
-
SIMULATOR_ID
public static final String SIMULATOR_ID
- See Also:
- Constant Field Values
-
PERSISTENCE_RECORDER_NAME
public static final String PERSISTENCE_RECORDER_NAME
- See Also:
- Constant Field Values
-
USE_FIXED_SEED
public static final String USE_FIXED_SEED
- See Also:
- Constant Field Values
-
FIXED_SEED_PREFIX
public static final String FIXED_SEED_PREFIX
- See Also:
- Constant Field Values
-
MAXIMUM_MEASUREMENT_COUNT
public static final String MAXIMUM_MEASUREMENT_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_SIMULATOR_ID
public static final String DEFAULT_SIMULATOR_ID
Default simulator implementation- See Also:
- Constant Field Values
-
DEFAULT_EXPERIMENT_RUN
public static final String DEFAULT_EXPERIMENT_RUN
Default name for an experiment run.- See Also:
- Constant Field Values
-
DEFAULT_VARIATION_NAME
public static final String DEFAULT_VARIATION_NAME
Default name for an experiment run.- See Also:
- Constant Field Values
-
DEFAULT_SIMULATION_TIME
public static final String DEFAULT_SIMULATION_TIME
Default for stop condition simulation time.- See Also:
- Constant Field Values
-
DEFAULT_MAXIMUM_MEASUREMENT_COUNT
public static final String DEFAULT_MAXIMUM_MEASUREMENT_COUNT
Default for stop condition maximum measurement count.- See Also:
- Constant Field Values
-
DEFAULT_PERSISTENCE_RECORDER_NAME
public static final String DEFAULT_PERSISTENCE_RECORDER_NAME
Default name of persistence recorder.- See Also:
- Constant Field Values
-
VERBOSE_LOGGING
public static final String VERBOSE_LOGGING
- See Also:
- Constant Field Values
-
EXPERIMENT_RUN
public static final String EXPERIMENT_RUN
Simulation configuration tab- See Also:
- Constant Field Values
-
SIMULATION_TIME
public static final String SIMULATION_TIME
- See Also:
- Constant Field Values
-
nameExperimentRun
protected String nameExperimentRun
configuration options
-
variationId
protected String variationId
-
simuTime
protected long simuTime
-
maxMeasurementsCount
protected Long maxMeasurementsCount
-
randomSeed
protected long[] randomSeed
-
randomNumberGenerator
protected de.uka.ipd.sdq.probfunction.math.IRandomGenerator randomNumberGenerator
-
recorderName
protected String recorderName
-
recorderConfigurationFactory
protected org.palladiosimulator.recorderframework.config.IRecorderConfigurationFactory recorderConfigurationFactory
-
descriptor
protected org.palladiosimulator.analyzer.workflow.runconfig.ExperimentRunDescriptor descriptor
-
-
Constructor Detail
-
AbstractSimulationConfig
public AbstractSimulationConfig(Map<String,Object> configuration, boolean debug)
Constructs a new AbstractSimulationConfig. This constructor initializes the RecorderFramework (legacy).- Parameters:
configuration- a map which maps configuration option IDs to their values.
-
AbstractSimulationConfig
public AbstractSimulationConfig(Map<String,Object> configuration, boolean debug, org.palladiosimulator.recorderframework.config.IRecorderConfigurationFactory configFactory)
Constructs a new AbstractSimulationConfig. This constructor allows to circumvent the inflexible instantiation and initialization of IRecorderConfigurationFactory as part of the constructor. This constructor does not initialize the RecorderFramework.
-
-
Method Detail
-
getRecorderConfigurationFactory
public final org.palladiosimulator.recorderframework.config.IRecorderConfigurationFactory getRecorderConfigurationFactory()
- Returns:
- the recorderConfigurationFactory
-
getVerboseLogging
public boolean getVerboseLogging()
-
isDebug
public boolean isDebug()
-
addListener
public void addListener(ISimulationListener l)
-
getListeners
public List<ISimulationListener> getListeners()
-
getAdditionalExperimentRunDescription
public String getAdditionalExperimentRunDescription()
-
setAdditionalExperimentRunDescription
public void setAdditionalExperimentRunDescription(String additionalExperimentRunDescription)
-
getNameExperimentRun
public String getNameExperimentRun()
- Specified by:
getNameExperimentRunin interfacede.uka.ipd.sdq.simulation.abstractsimengine.ISimulationConfig
-
getNameBase
public String getNameBase()
-
getVariationId
public String getVariationId()
-
setNameBase
public void setNameBase(String name)
-
getSimuTime
public long getSimuTime()
-
getMaxMeasurementsCount
public long getMaxMeasurementsCount()
-
getRecorderName
public String getRecorderName()
-
getEngine
public String getEngine()
-
disposeRandomGenerator
public void disposeRandomGenerator()
Dispose random generator and delete reference to it so that thisSimuComConfigcan be started again and will create a new RandomGenerator.
-
setExperimentRunDescriptor
public void setExperimentRunDescriptor(org.palladiosimulator.analyzer.workflow.runconfig.ExperimentRunDescriptor descriptor)
-
getExperimentRunDescriptor
public org.palladiosimulator.analyzer.workflow.runconfig.ExperimentRunDescriptor getExperimentRunDescriptor()
-
getSimulatorId
public String getSimulatorId()
-
-