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 IModelAccessclone()protected org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartitioncopyPCMPartition()de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboardgetBlackboard()org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartitiongetGlobalPCMModel()org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartitiongetLocalPCMModel()org.palladiosimulator.monitorrepository.MonitorRepositorygetMonitorRepositoryModel()RuntimeMeasurementModelgetRuntimeMeasurementModel()org.palladiosimulator.servicelevelobjective.ServiceLevelObjectiveRepositorygetServiceLevelObjectiveRepositoryModel()org.scaledl.usageevolution.UsageEvolutiongetUsageEvolutionModel()voidstartObservingPcmChanges()Calling this method has the current instance observe thePCMResourceSetPartitionin order to keep track of model changes.voidstopObservingPcmChanges()Calling this method has the current instance stop observing thePCMResourceSetPartition.
-
-
-
Method Detail
-
clone
public IModelAccess clone()
- Specified by:
clonein interfaceIModelAccess- Overrides:
clonein classObject
-
getLocalPCMModel
public org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition getLocalPCMModel()
- Specified by:
getLocalPCMModelin interfaceIModelAccess
-
startObservingPcmChanges
public void startObservingPcmChanges()
Calling this method has the current instance observe thePCMResourceSetPartitionin 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:
getGlobalPCMModelin interfaceIModelAccess
-
getMonitorRepositoryModel
public org.palladiosimulator.monitorrepository.MonitorRepository getMonitorRepositoryModel()
- Specified by:
getMonitorRepositoryModelin 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:
getRuntimeMeasurementModelin interfaceIModelAccess- Returns:
- the global RuntimeMeasurement model.
-
getUsageEvolutionModel
public org.scaledl.usageevolution.UsageEvolution getUsageEvolutionModel()
- Specified by:
getUsageEvolutionModelin 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:
getBlackboardin interfaceIModelAccess
-
-