Class PieChartExampleData
- java.lang.Object
-
- org.palladiosimulator.edp2.example.PieChartExampleData
-
public class PieChartExampleData 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 static String
NumberOfActiveJobsUUID
static String
SimTimeUUID
-
Constructor Summary
Constructors Constructor Description PieChartExampleData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.palladiosimulator.metricspec.MetricDescription>
createExampleBaseMetricDescriptions(EList<org.palladiosimulator.metricspec.Description> existingDescriptions)
Creates all exemplary base metric descriptions.void
createExampleExperimentMetadata()
Creates the exemplary experiment meta data.Collection<org.palladiosimulator.metricspec.MetricDescription>
createExampleMetricSetDescriptions(EList<org.palladiosimulator.metricspec.Description> existingDescriptions)
Creates all exemplary metric set descriptions.Collection<org.palladiosimulator.metricspec.Description>
getDescriptions()
Returns all exemplary descriptions.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
-
SimTimeUUID
public static final String SimTimeUUID
- See Also:
- Constant Field Values
-
NumberOfActiveJobsUUID
public static final String NumberOfActiveJobsUUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptions
public Collection<org.palladiosimulator.metricspec.Description> getDescriptions()
Returns all exemplary descriptions.- Returns:
- A collection containing all descriptions.
-
createExampleMetricSetDescriptions
public Collection<org.palladiosimulator.metricspec.MetricDescription> createExampleMetricSetDescriptions(EList<org.palladiosimulator.metricspec.Description> existingDescriptions)
Creates all exemplary metric set descriptions.
-
createExampleBaseMetricDescriptions
public Collection<org.palladiosimulator.metricspec.MetricDescription> createExampleBaseMetricDescriptions(EList<org.palladiosimulator.metricspec.Description> existingDescriptions)
Creates all exemplary base metric descriptions. Reuses existing ones (if available).- Parameters:
existingDescriptions
- List of all existing metric descriptions.
-
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.
-
-