Class ExampleData
- java.lang.Object
-
- org.palladiosimulator.edp2.example.ExampleData
-
public class ExampleData extends Object
Contains all exemplary including an example model instance. This class also demonstrates the use of EDP2 for storing measurements and creating descriptions. The implemented example follows the EDP2 creation steps:
-
-
Field Summary
Fields Modifier and Type Field Description org.palladiosimulator.metricspec.BaseMetricDescription
absoluteFrequency
static String
AbsoluteFrequencyUUID
org.palladiosimulator.metricspec.TextualBaseMetricDescription
architectureQualityEstimation
static String
ArchitectureQualityEstimationHighUUID
static String
ArchitectureQualityEstimationLowUUID
static String
ArchitectureQualityEstimationMediumUUID
static String
ArchitectureQualityEstimationUUID
org.palladiosimulator.metricspec.Identifier
architectureQualityIdentifierHigh
org.palladiosimulator.metricspec.Identifier
architectureQualityIdentifierLow
org.palladiosimulator.metricspec.Identifier
architectureQualityIdentifierMedium
org.palladiosimulator.metricspec.MetricSetDescription
serviceCallARTMetric
-
Constructor Summary
Constructors Constructor Description ExampleData(EList<org.palladiosimulator.metricspec.Description> existingDescriptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createExampleExperimentMetadata()
Creates the exemplary experiment meta data.ExperimentGroup
getExampleExperimentGroup()
Returns the exemplary experiment meta data.String
printStoredMeasurements(Repository repo)
Reads and prints the example data from a repository.String
printStoredMeasurements(Repository repo, String experimentGroupUuid)
Reads and prints the exemplary data stored for the experiment group in the repository.void
simulateExperimentRun()
Simulates running an experiment.
-
-
-
Field Detail
-
AbsoluteFrequencyUUID
public static final String AbsoluteFrequencyUUID
- See Also:
- Constant Field Values
-
ArchitectureQualityEstimationUUID
public static final String ArchitectureQualityEstimationUUID
- See Also:
- Constant Field Values
-
ArchitectureQualityEstimationLowUUID
public static final String ArchitectureQualityEstimationLowUUID
- See Also:
- Constant Field Values
-
ArchitectureQualityEstimationMediumUUID
public static final String ArchitectureQualityEstimationMediumUUID
- See Also:
- Constant Field Values
-
ArchitectureQualityEstimationHighUUID
public static final String ArchitectureQualityEstimationHighUUID
- See Also:
- Constant Field Values
-
absoluteFrequency
public final org.palladiosimulator.metricspec.BaseMetricDescription absoluteFrequency
-
architectureQualityEstimation
public final org.palladiosimulator.metricspec.TextualBaseMetricDescription architectureQualityEstimation
-
serviceCallARTMetric
public final org.palladiosimulator.metricspec.MetricSetDescription serviceCallARTMetric
-
architectureQualityIdentifierLow
public final org.palladiosimulator.metricspec.Identifier architectureQualityIdentifierLow
-
architectureQualityIdentifierMedium
public final org.palladiosimulator.metricspec.Identifier architectureQualityIdentifierMedium
-
architectureQualityIdentifierHigh
public final org.palladiosimulator.metricspec.Identifier architectureQualityIdentifierHigh
-
-
Constructor Detail
-
ExampleData
public ExampleData(EList<org.palladiosimulator.metricspec.Description> existingDescriptions)
-
-
Method Detail
-
createExampleExperimentMetadata
public void createExampleExperimentMetadata()
Creates the exemplary experiment meta data.
-
getExampleExperimentGroup
public ExperimentGroup getExampleExperimentGroup()
Returns the exemplary experiment meta data.- Returns:
- the meta data.
-
simulateExperimentRun
public void simulateExperimentRun()
Simulates running an experiment.
-
printStoredMeasurements
public String printStoredMeasurements(Repository repo, String experimentGroupUuid)
Reads and prints the exemplary data stored for the experiment group in the repository. Does only print the generated example data in the DAOs. All data must be created by the other example data code to ensure correct functionality.- Parameters:
repo
- The repository.experimentGroupUuid
- UUID of the experiment group which is queried.- Returns:
- Formatted data.
-
printStoredMeasurements
public String printStoredMeasurements(Repository repo)
Reads and prints the example data from a repository.- Parameters:
repo
- The repository.- Returns:
- Formatted data or
null
if there is no data.
-
-