java.lang.Object
org.palladiosimulator.metricspec.metricentity.MetricEntity
org.palladiosimulator.measurementframework.listener.MeasurementSource
org.palladiosimulator.probeframework.calculator.Calculator
org.palladiosimulator.probeframework.calculator.internal.UnaryCalculator
All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener>, org.palladiosimulator.metricspec.metricentity.IMetricEntity, IProbeListener
Direct Known Subclasses:
IdentityCalculator

public abstract class UnaryCalculator extends Calculator

This abstract class represents a unary calculator. Unary calculators expect exactly one probe, thus, restricting calculators to only one probe.

  • Field Summary

    Fields inherited from class org.palladiosimulator.probeframework.calculator.Calculator

    probes
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UnaryCalculator(org.palladiosimulator.metricspec.MetricDescription metricDescription, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe childProbe)
    Default constructor.
  • Method Summary

    Methods inherited from class org.palladiosimulator.probeframework.calculator.Calculator

    calculate, equals, getMeasuringPoint, hashCode, newProbeMeasurementAvailable, preUnregister

    Methods inherited from class org.palladiosimulator.measurementframework.listener.MeasurementSource

    addObserver, getMeasurementSourceListeners, notifyMeasurementSourceListener, removeObserver

    Methods inherited from class org.palladiosimulator.metricspec.metricentity.MetricEntity

    getMetricDesciption, isCompatibleWith, setMetricDescription

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnaryCalculator

      protected UnaryCalculator(org.palladiosimulator.metricspec.MetricDescription metricDescription, org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe childProbe)
      Default constructor. Restricts number of observed probes to exactly one.
      Parameters:
      metricDescription - MetricDescriptions as needed by the superclass.
      measuringPoint - MeasuringPoint as needed by the superclass.
      childProbe - The observed probe.