Class AbstractProbeFrameworkListener
java.lang.Object
org.palladiosimulator.simulizar.interpreter.listener.AbstractInterpreterListener
org.palladiosimulator.simulizar.interpreter.listener.AbstractProbeFrameworkListener
- All Implemented Interfaces:
Extension
,IInterpreterListener
- Direct Known Subclasses:
ProbeFrameworkListener
Class for listening to interpreter events in order to store collected data using the
ProbeFramework
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.palladiosimulator.probeframework.calculator.IGenericCalculatorFactory
protected final Reconfigurator
protected final de.uka.ipd.sdq.simucomframework.model.SimuComModel
-
Constructor Summary
ConstructorDescriptionAbstractProbeFrameworkListener
(PCMPartitionManager pcmPartitionManager, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, Reconfigurator reconfigurator) -
Method Summary
Modifier and TypeMethodDescription<T extends org.palladiosimulator.pcm.core.composition.AssemblyContext,
R extends org.palladiosimulator.pcm.repository.ProvidedRole, S extends org.palladiosimulator.pcm.repository.Signature>
voidSpecial case AssemblyProvidedOperationCall needs three elements to be uniquely identified: AssemblyContext, ProvidedRole, Signature.void
beginEntryLevelSystemCallInterpretation
(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall> event) void
beginExternalCallInterpretation
(RDSEFFElementPassedEvent<org.palladiosimulator.pcm.seff.ExternalCallAction> event) <T extends org.palladiosimulator.pcm.system.System,
R extends org.palladiosimulator.pcm.repository.ProvidedRole, S extends org.palladiosimulator.pcm.repository.Signature>
voidSpecial case SystemOperationCall needs three elements to be uniquely identified: System, ProvidedRole, Signature.<T extends EObject>
voidvoid
beginUsageScenarioInterpretation
(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.UsageScenario> event) protected List<org.palladiosimulator.probeframework.probes.Probe>
createStartAndStopProbe
(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel) <T extends org.palladiosimulator.pcm.core.composition.AssemblyContext,
R extends org.palladiosimulator.pcm.repository.ProvidedRole, S extends org.palladiosimulator.pcm.repository.Signature>
voidSpecial case AssemblyProvidedOperationCall needs three elements to be uniquely identified: AssemblyContext, ProvidedRole, Signature.void
endEntryLevelSystemCallInterpretation
(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall> event) void
endExternalCallInterpretation
(RDSEFFElementPassedEvent<org.palladiosimulator.pcm.seff.ExternalCallAction> event) <T extends org.palladiosimulator.pcm.system.System,
R extends org.palladiosimulator.pcm.repository.ProvidedRole, S extends org.palladiosimulator.pcm.repository.Signature>
voidSpecial case SystemOperationCall needs three elements to be uniquely identified: System, ProvidedRole, Signature.<T extends EObject>
voidvoid
endUsageScenarioInterpretation
(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.UsageScenario> event) protected boolean
entityIsAlreadyInstrumented
(EObject modelElement) Collection<org.palladiosimulator.monitorrepository.MeasurementSpecification>
getMeasurementSpecificationsForMetricDescription
(org.palladiosimulator.metricspec.MetricDescription soughtFor) Gets all associatedMeasurementSpecification
s of activeMonitor
s that adhere to the given metric.Collection<org.palladiosimulator.monitorrepository.MeasurementSpecification>
getMeasurementSpecificationsForProcessingType
(EClass processingTypeEClass) Gets all associatedMeasurementSpecification
s of activeMonitor
s whose 'processingType' attribute is of a certain type.Gets thePCMPartitionManager
attached to this instance.de.uka.ipd.sdq.simucomframework.model.SimuComModel
Gets theSimuComModel
which is related to this instance.void
protected abstract void
Initializes reconfiguration time measurement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.simulizar.interpreter.listener.IInterpreterListener
cleanup
-
Field Details
-
simuComModel
protected final de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel -
calculatorFactory
protected final org.palladiosimulator.probeframework.calculator.IGenericCalculatorFactory calculatorFactory -
reconfigurator
-
-
Constructor Details
-
AbstractProbeFrameworkListener
public AbstractProbeFrameworkListener(PCMPartitionManager pcmPartitionManager, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, Reconfigurator reconfigurator) - Parameters:
modelAccessFactory
- Provides access to simulated modelssimuComModel
- Provides access to the central simulation
-
-
Method Details
-
initialize
public void initialize() -
beginUsageScenarioInterpretation
public void beginUsageScenarioInterpretation(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.UsageScenario> event) - Specified by:
beginUsageScenarioInterpretation
in interfaceIInterpreterListener
- Overrides:
beginUsageScenarioInterpretation
in classAbstractInterpreterListener
-
endUsageScenarioInterpretation
public void endUsageScenarioInterpretation(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.UsageScenario> event) - Specified by:
endUsageScenarioInterpretation
in interfaceIInterpreterListener
- Overrides:
endUsageScenarioInterpretation
in classAbstractInterpreterListener
-
beginEntryLevelSystemCallInterpretation
public void beginEntryLevelSystemCallInterpretation(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall> event) - Specified by:
beginEntryLevelSystemCallInterpretation
in interfaceIInterpreterListener
- Overrides:
beginEntryLevelSystemCallInterpretation
in classAbstractInterpreterListener
-
endEntryLevelSystemCallInterpretation
public void endEntryLevelSystemCallInterpretation(ModelElementPassedEvent<org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall> event) - Specified by:
endEntryLevelSystemCallInterpretation
in interfaceIInterpreterListener
- Overrides:
endEntryLevelSystemCallInterpretation
in classAbstractInterpreterListener
-
beginExternalCallInterpretation
public void beginExternalCallInterpretation(RDSEFFElementPassedEvent<org.palladiosimulator.pcm.seff.ExternalCallAction> event) - Specified by:
beginExternalCallInterpretation
in interfaceIInterpreterListener
- Overrides:
beginExternalCallInterpretation
in classAbstractInterpreterListener
-
endExternalCallInterpretation
public void endExternalCallInterpretation(RDSEFFElementPassedEvent<org.palladiosimulator.pcm.seff.ExternalCallAction> event) - Specified by:
endExternalCallInterpretation
in interfaceIInterpreterListener
- Overrides:
endExternalCallInterpretation
in classAbstractInterpreterListener
-
beginUnknownElementInterpretation
- Specified by:
beginUnknownElementInterpretation
in interfaceIInterpreterListener
- Overrides:
beginUnknownElementInterpretation
in classAbstractInterpreterListener
-
endUnknownElementInterpretation
- Specified by:
endUnknownElementInterpretation
in interfaceIInterpreterListener
- Overrides:
endUnknownElementInterpretation
in classAbstractInterpreterListener
-
getSimuComModel
public de.uka.ipd.sdq.simucomframework.model.SimuComModel getSimuComModel()Gets theSimuComModel
which is related to this instance.- Returns:
- A reference to the
SimuComModel
currently in use.
-
getPCMPartitionManager
Gets thePCMPartitionManager
attached to this instance.- Returns:
- A reference to the
PCMPartitionManager
.
-
getMeasurementSpecificationsForMetricDescription
public Collection<org.palladiosimulator.monitorrepository.MeasurementSpecification> getMeasurementSpecificationsForMetricDescription(org.palladiosimulator.metricspec.MetricDescription soughtFor) Gets all associatedMeasurementSpecification
s of activeMonitor
s that adhere to the given metric.- Parameters:
soughtFor
- AMetricDescription
denoting the target metric to look for.- Returns:
- An UNMODIFIABLE
Collection
containing all found measurement specifications, which might be empty but nevernull
.
-
getMeasurementSpecificationsForProcessingType
public Collection<org.palladiosimulator.monitorrepository.MeasurementSpecification> getMeasurementSpecificationsForProcessingType(EClass processingTypeEClass) Gets all associatedMeasurementSpecification
s of activeMonitor
s whose 'processingType' attribute is of a certain type.- Parameters:
processingTypeEClass
- AnEClass
denoting theProcessingType
subclass to look for.- Returns:
- An UNMODIFIABLE
Collection
containing all found measurement specifications, which might be empty (for instance if none are found) but nevernull
. - Throws:
NullPointerException
- In caseprocessingTypeEClass == null
.IllegalArgumentException
- In case the passed EClass does not represent a validProcessingType
.
-
createStartAndStopProbe
protected List<org.palladiosimulator.probeframework.probes.Probe> createStartAndStopProbe(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel) - Parameters:
measuringPoint
-simuComModel
-- Returns:
- list with start and stop probe
-
entityIsAlreadyInstrumented
- Parameters:
modelElement
-- Returns:
-
beginSystemOperationCallInterpretation
public <T extends org.palladiosimulator.pcm.system.System,R extends org.palladiosimulator.pcm.repository.ProvidedRole, void beginSystemOperationCallInterpretationS extends org.palladiosimulator.pcm.repository.Signature> (SystemOperationPassedEvent<T, R, S> event) Special case SystemOperationCall needs three elements to be uniquely identified: System, ProvidedRole, Signature.- Specified by:
beginSystemOperationCallInterpretation
in interfaceIInterpreterListener
- Overrides:
beginSystemOperationCallInterpretation
in classAbstractInterpreterListener
-
endSystemOperationCallInterpretation
public <T extends org.palladiosimulator.pcm.system.System,R extends org.palladiosimulator.pcm.repository.ProvidedRole, void endSystemOperationCallInterpretationS extends org.palladiosimulator.pcm.repository.Signature> (SystemOperationPassedEvent<T, R, S> event) Special case SystemOperationCall needs three elements to be uniquely identified: System, ProvidedRole, Signature.- Specified by:
endSystemOperationCallInterpretation
in interfaceIInterpreterListener
- Overrides:
endSystemOperationCallInterpretation
in classAbstractInterpreterListener
-
beginAssemblyProvidedOperationCallInterpretation
public <T extends org.palladiosimulator.pcm.core.composition.AssemblyContext,R extends org.palladiosimulator.pcm.repository.ProvidedRole, void beginAssemblyProvidedOperationCallInterpretationS extends org.palladiosimulator.pcm.repository.Signature> (AssemblyProvidedOperationPassedEvent<T, R, S> event) Special case AssemblyProvidedOperationCall needs three elements to be uniquely identified: AssemblyContext, ProvidedRole, Signature.- Specified by:
beginAssemblyProvidedOperationCallInterpretation
in interfaceIInterpreterListener
- Overrides:
beginAssemblyProvidedOperationCallInterpretation
in classAbstractInterpreterListener
-
endAssemblyProvidedOperationCallInterpretation
public <T extends org.palladiosimulator.pcm.core.composition.AssemblyContext,R extends org.palladiosimulator.pcm.repository.ProvidedRole, void endAssemblyProvidedOperationCallInterpretationS extends org.palladiosimulator.pcm.repository.Signature> (AssemblyProvidedOperationPassedEvent<T, R, S> event) Special case AssemblyProvidedOperationCall needs three elements to be uniquely identified: AssemblyContext, ProvidedRole, Signature.- Specified by:
endAssemblyProvidedOperationCallInterpretation
in interfaceIInterpreterListener
- Overrides:
endAssemblyProvidedOperationCallInterpretation
in classAbstractInterpreterListener
-
initReconfigurationTimeMeasurement
protected abstract void initReconfigurationTimeMeasurement()Initializes reconfiguration time measurement.
-