Class AbstractEDP2RecorderConfigurationFactory<RUN extends org.palladiosimulator.edp2.models.ExperimentData.Run>
java.lang.Object
org.palladiosimulator.recorderframework.config.AbstractRecorderConfigurationFactory
org.palladiosimulator.recorderframework.edp2.config.AbstractEDP2RecorderConfigurationFactory<RUN>
- Type Parameters:
RUN
- EDP2 run type, either an experiment run or an experiment group run
- All Implemented Interfaces:
IRecorderConfigurationFactory
- Direct Known Subclasses:
EDP2RecorderConfigurationFactory
,EDP2ReportRecorderConfigurationFactory
public abstract class AbstractEDP2RecorderConfigurationFactory<RUN extends org.palladiosimulator.edp2.models.ExperimentData.Run>
extends AbstractRecorderConfigurationFactory
Abstract factory for EDP2 recorder configuration objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.palladiosimulator.edp2.models.ExperimentData.ExperimentGroup
EDP2 experiment group.protected RUN
An EDP2 run, either an experiment run or an experiment group run.protected org.palladiosimulator.edp2.models.Repository.Repository
EDP2 Repository where data should be stored.static final String
Identifier for EDP2 repositories; usable in key-value maps.static final String
Identifier for variations; usable in key-value maps.Fields inherited from class org.palladiosimulator.recorderframework.config.AbstractRecorderConfigurationFactory
EXPERIMENT_RUN_DATE_FORMAT, EXPERIMENT_RUN_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.palladiosimulator.edp2.models.ExperimentData.MeasuringType
createMeasuringType
(org.palladiosimulator.metricspec.MetricDescription measureMetric, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) Creates a new measure conforming to the given metric description and to the given measuring point.createRecorderConfiguration
(Map<String, Object> configuration) Creates a configuration object using the given configuration.void
Finalizes this factory, thus, allowing to close potentially opened file handles.void
initialize
(Map<String, Object> configuration) Initializes this factory as a preparation for creating a configuration object.Methods inherited from class org.palladiosimulator.recorderframework.config.AbstractRecorderConfigurationFactory
getExperimentName, getExperimentRunName
-
Field Details
-
REPOSITORY_ID
Identifier for EDP2 repositories; usable in key-value maps.- See Also:
-
VARIATION_ID
Identifier for variations; usable in key-value maps.- See Also:
-
repository
protected org.palladiosimulator.edp2.models.Repository.Repository repositoryEDP2 Repository where data should be stored. -
experimentGroup
protected org.palladiosimulator.edp2.models.ExperimentData.ExperimentGroup experimentGroupEDP2 experiment group. -
experimentRun
An EDP2 run, either an experiment run or an experiment group run.
-
-
Constructor Details
-
AbstractEDP2RecorderConfigurationFactory
public AbstractEDP2RecorderConfigurationFactory()
-
-
Method Details
-
initialize
Description copied from interface:IRecorderConfigurationFactory
Initializes this factory as a preparation for creating a configuration object. TODO Do we really need initialization or can we directly create configurations? [Lehrig]- Specified by:
initialize
in interfaceIRecorderConfigurationFactory
- Overrides:
initialize
in classAbstractRecorderConfigurationFactory
- Parameters:
configuration
- a map with key-value pairs to be used for initialization.
-
createRecorderConfiguration
Description copied from interface:IRecorderConfigurationFactory
Creates a configuration object using the given configuration.- Parameters:
configuration
- a map with key-value pairs to be used for configuration.- Returns:
- a newly created recorder configuration object.
-
finalizeRecorderConfigurationFactory
public void finalizeRecorderConfigurationFactory()Description copied from interface:IRecorderConfigurationFactory
Finalizes this factory, thus, allowing to close potentially opened file handles. -
createMeasuringType
protected org.palladiosimulator.edp2.models.ExperimentData.MeasuringType createMeasuringType(org.palladiosimulator.metricspec.MetricDescription measureMetric, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) Creates a new measure conforming to the given metric description and to the given measuring point.- Parameters:
measureMetric
- the metric description of the measure.measuringPoint
- the measuring point of the measure.- Returns:
- a newly created measure conforming to the given parameters.
-