Class CalculatorBuilder<F,S,C extends ProbeConfiguration>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.measurement.calculator.CalculatorBuilder<F,S,C>
-
- All Implemented Interfaces:
IntermediateCalculatorFrom<F,S>
,IntermediateCalculatorTo<F,S>
public class CalculatorBuilder<F,S,C extends ProbeConfiguration> extends Object implements IntermediateCalculatorFrom<F,S>, IntermediateCalculatorTo<F,S>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <F,S,C extends ProbeConfiguration>
IntermediateCalculatorFrom<F,S>create(BinaryCalculator<F,S> c, MeasurementFacade<C> measurementFacade)
IntermediateCalculatorTo<F,S>
from(F first, String property, Object... measurementContexts)
Tells this calculator where and when a new calculation is supposed to start.BinaryCalculator<F,S>
to(S second, String property, Object... measurementContexts)
-
-
-
Method Detail
-
from
public IntermediateCalculatorTo<F,S> from(F first, String property, Object... measurementContexts)
Description copied from interface:IntermediateCalculatorFrom
Tells this calculator where and when a new calculation is supposed to start.- Specified by:
from
in interfaceIntermediateCalculatorFrom<F,S>
- Parameters:
first
- the element where the calculation startsproperty
- the element's observed property; once this property changes, a new calculation startsmeasurementContexts
- restricts the calculation to these measurement contexts; if supplied, a new calculation is started only when the observed property change took place in the scope of the given contexts.- Returns:
- a another half-finished, near to complete, calculator.
-
to
public BinaryCalculator<F,S> to(S second, String property, Object... measurementContexts)
- Specified by:
to
in interfaceIntermediateCalculatorTo<F,S>
-
create
public static <F,S,C extends ProbeConfiguration> IntermediateCalculatorFrom<F,S> create(BinaryCalculator<F,S> c, MeasurementFacade<C> measurementFacade)
-
-