Package de.uka.ipd.sdq.simulation.core
Class AbstractSimulationConfig
java.lang.Object
de.uka.ipd.sdq.simulation.core.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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault name for an experiment run.static final StringDefault for stop condition maximum measurement count.static final StringDefault name of persistence recorder.static final StringDefault for stop condition simulation time.static final StringDefault simulator implementationstatic final StringDefault name for an experiment run.protected org.palladiosimulator.analyzer.workflow.core.runconfig.ExperimentRunDescriptorstatic final StringSimulation configuration tabstatic final Stringstatic final Stringprotected Longprotected Stringconfiguration optionsstatic final Stringprotected de.uka.ipd.sdq.probfunction.math.IRandomGeneratorprotected long[]protected org.palladiosimulator.recorderframework.core.config.IRecorderConfigurationFactoryprotected Stringstatic final Stringstatic final Stringprotected longstatic final Stringstatic final Stringprotected Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSimulationConfig(Map<String, Object> configuration, boolean debug) Constructs a new AbstractSimulationConfig.AbstractSimulationConfig(Map<String, Object> configuration, boolean debug, org.palladiosimulator.recorderframework.core.config.IRecorderConfigurationFactory configFactory) Constructs a new AbstractSimulationConfig. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidDispose random generator and delete reference to it so that thisSimuComConfigcan be started again and will create a new RandomGenerator.org.palladiosimulator.analyzer.workflow.core.runconfig.ExperimentRunDescriptorlongfinal org.palladiosimulator.recorderframework.core.config.IRecorderConfigurationFactoryprotected long[]getSeedFromConfig(Map<String, Object> configuration) longbooleanbooleanisDebug()voidsetAdditionalExperimentRunDescription(String additionalExperimentRunDescription) voidsetExperimentRunDescriptor(org.palladiosimulator.analyzer.workflow.core.runconfig.ExperimentRunDescriptor descriptor) voidsetNameBase(String name)
-
Field Details
-
VARIATION_ID
- See Also:
-
SIMULATOR_ID
- See Also:
-
PERSISTENCE_RECORDER_NAME
- See Also:
-
USE_FIXED_SEED
- See Also:
-
FIXED_SEED_PREFIX
- See Also:
-
MAXIMUM_MEASUREMENT_COUNT
- See Also:
-
DEFAULT_SIMULATOR_ID
Default simulator implementation- See Also:
-
DEFAULT_EXPERIMENT_RUN
Default name for an experiment run.- See Also:
-
DEFAULT_VARIATION_NAME
Default name for an experiment run.- See Also:
-
DEFAULT_SIMULATION_TIME
Default for stop condition simulation time.- See Also:
-
DEFAULT_MAXIMUM_MEASUREMENT_COUNT
Default for stop condition maximum measurement count.- See Also:
-
DEFAULT_PERSISTENCE_RECORDER_NAME
Default name of persistence recorder.- See Also:
-
VERBOSE_LOGGING
- See Also:
-
EXPERIMENT_RUN
Simulation configuration tab- See Also:
-
SIMULATION_TIME
- See Also:
-
nameExperimentRun
configuration options -
variationId
-
simuTime
protected long simuTime -
maxMeasurementsCount
-
randomSeed
protected long[] randomSeed -
randomNumberGenerator
protected de.uka.ipd.sdq.probfunction.math.IRandomGenerator randomNumberGenerator -
recorderName
-
recorderConfigurationFactory
protected org.palladiosimulator.recorderframework.core.config.IRecorderConfigurationFactory recorderConfigurationFactory -
descriptor
protected org.palladiosimulator.analyzer.workflow.core.runconfig.ExperimentRunDescriptor descriptor
-
-
Constructor Details
-
AbstractSimulationConfig
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.core.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 Details
-
getRecorderConfigurationFactory
public final org.palladiosimulator.recorderframework.core.config.IRecorderConfigurationFactory getRecorderConfigurationFactory()- Returns:
- the recorderConfigurationFactory
-
getVerboseLogging
public boolean getVerboseLogging() -
isDebug
public boolean isDebug() -
addListener
-
getListeners
-
getAdditionalExperimentRunDescription
-
setAdditionalExperimentRunDescription
-
getSeedFromConfig
-
getNameExperimentRun
- Specified by:
getNameExperimentRunin interfacede.uka.ipd.sdq.simulation.abstractsimengine.ISimulationConfig
-
getNameBase
-
getVariationId
-
setNameBase
-
getSimuTime
public long getSimuTime() -
getMaxMeasurementsCount
public long getMaxMeasurementsCount() -
getRecorderName
-
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.core.runconfig.ExperimentRunDescriptor descriptor) -
getExperimentRunDescriptor
public org.palladiosimulator.analyzer.workflow.core.runconfig.ExperimentRunDescriptor getExperimentRunDescriptor() -
getSimulatorId
-