Class ModelAccess
- java.lang.Object
-
- org.palladiosimulator.simulizar.access.ModelAccess
-
- All Implemented Interfaces:
Cloneable
,IModelAccess
- Direct Known Subclasses:
ModelAccessUseOriginalReferences
public class ModelAccess extends Object implements IModelAccess
Helper to access the PCM model (global and local), the RuntimeMeasurement model, the Monitor Repository model, the usage evolution model and all SD models.
-
-
Constructor Summary
Constructors Constructor Description ModelAccess(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IModelAccess
clone()
protected org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition
copyPCMPartition()
de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard
getBlackboard()
org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition
getGlobalPCMModel()
org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition
getLocalPCMModel()
org.palladiosimulator.monitorrepository.MonitorRepository
getMonitorRepositoryModel()
RuntimeMeasurementModel
getRuntimeMeasurementModel()
org.palladiosimulator.servicelevelobjective.ServiceLevelObjectiveRepository
getServiceLevelObjectiveRepositoryModel()
org.scaledl.usageevolution.UsageEvolution
getUsageEvolutionModel()
void
startObservingPcmChanges()
Calling this method has the current instance observe thePCMResourceSetPartition
in order to keep track of model changes.void
stopObservingPcmChanges()
Calling this method has the current instance stop observing thePCMResourceSetPartition
.
-
-
-
Method Detail
-
clone
public IModelAccess clone()
- Specified by:
clone
in interfaceIModelAccess
- Overrides:
clone
in classObject
-
getLocalPCMModel
public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getLocalPCMModel()
- Specified by:
getLocalPCMModel
in interfaceIModelAccess
-
startObservingPcmChanges
public void startObservingPcmChanges()
Calling this method has the current instance observe thePCMResourceSetPartition
in order to keep track of model changes.- See Also:
getGlobalPCMModel()
,stopObservingPcmChanges()
-
stopObservingPcmChanges
public void stopObservingPcmChanges()
Calling this method has the current instance stop observing thePCMResourceSetPartition
.- See Also:
getGlobalPCMModel()
,startObservingPcmChanges()
-
copyPCMPartition
protected org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition copyPCMPartition()
- Returns:
- a copy of the global PCM modelling partition
-
getGlobalPCMModel
public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getGlobalPCMModel()
- Specified by:
getGlobalPCMModel
in interfaceIModelAccess
-
getMonitorRepositoryModel
public org.palladiosimulator.monitorrepository.MonitorRepository getMonitorRepositoryModel()
- Specified by:
getMonitorRepositoryModel
in interfaceIModelAccess
- Returns:
- the global Monitor Repository model.
-
getServiceLevelObjectiveRepositoryModel
public org.palladiosimulator.servicelevelobjective.ServiceLevelObjectiveRepository getServiceLevelObjectiveRepositoryModel()
- Returns:
- return the usage evolution element
-
getRuntimeMeasurementModel
public RuntimeMeasurementModel getRuntimeMeasurementModel()
- Specified by:
getRuntimeMeasurementModel
in interfaceIModelAccess
- Returns:
- the global RuntimeMeasurement model.
-
getUsageEvolutionModel
public org.scaledl.usageevolution.UsageEvolution getUsageEvolutionModel()
- Specified by:
getUsageEvolutionModel
in interfaceIModelAccess
- Returns:
- the global usage evolution model, or null if no such model is available
-
getBlackboard
public de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard getBlackboard()
- Specified by:
getBlackboard
in interfaceIModelAccess
-
-