Class TakePassiveResourceStateProbe

  • All Implemented Interfaces:
    org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.probeframework.probes.listener.IProbeListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity

    public class TakePassiveResourceStateProbe
    extends org.palladiosimulator.probeframework.probes.BasicObjectStateProbe<de.uka.ipd.sdq.scheduler.IPassiveResource,​Long,​javax.measure.quantity.Dimensionless>
    Measures a passive resource state metric (dimensionless) by calculating the difference between the capacity of the passive resource (observed state object) and its available resources.
    • Field Summary

      • Fields inherited from class org.palladiosimulator.probeframework.probes.Probe

        metricEntityDelegate
    • Constructor Summary

      Constructors 
      Constructor Description
      TakePassiveResourceStateProbe​(de.uka.ipd.sdq.scheduler.IPassiveResource passiveResource)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.measure.Measure<Long,​javax.measure.quantity.Dimensionless> getBasicMeasure​(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
      Measures the available resources as available within the passive resource (observed state object).
      • Methods inherited from class org.palladiosimulator.probeframework.probes.BasicObjectStateProbe

        getStateObject
      • Methods inherited from class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe

        doMeasure
      • Methods inherited from class org.palladiosimulator.probeframework.probes.TriggeredProbe

        takeMeasurement, takeMeasurement
      • Methods inherited from class org.palladiosimulator.probeframework.probes.Probe

        addObserver, getMetricDesciption, isCompatibleWith, notifyMeasurementSourceListener, removeObserver
      • Methods inherited from interface org.palladiosimulator.metricspec.metricentity.IMetricEntity

        getMetricDesciption, isCompatibleWith
    • Constructor Detail

      • TakePassiveResourceStateProbe

        public TakePassiveResourceStateProbe​(de.uka.ipd.sdq.scheduler.IPassiveResource passiveResource)
        Default constructor.
        Parameters:
        passiveResource - The observer object is a passive resource, thus, allowing to request its capacity and its available resources.
    • Method Detail

      • getBasicMeasure

        protected javax.measure.Measure<Long,​javax.measure.quantity.Dimensionless> getBasicMeasure​(org.palladiosimulator.probeframework.measurement.RequestContext measurementContext)
        Measures the available resources as available within the passive resource (observed state object).
        Specified by:
        getBasicMeasure in class org.palladiosimulator.probeframework.probes.BasicTriggeredProbe<Long,​javax.measure.quantity.Dimensionless>