Interface ISimulationEvaluationScopeListener
-
- All Known Implementing Classes:
SimulationTimePowerCalculator
public interface ISimulationEvaluationScopeListenerBy implementing this interface, classes are enabled to observeSimulationTimeEvaluationScopes. Clients may want to do so in order to keep track of measurements that are collected each time the scope's underlyingSlidingWindowmoves on.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnewElementAvailable()An observedSimulationTimeEvaluationScopeinvokes this callback method once a new measurement has been collected.voidpreUnregister()If the observed scope is about to detach an observer (e.g., due to a call ofSimulationTimeEvaluationScope.removeAllListeners()orSimulationTimeEvaluationScope.removeListener(ISimulationEvaluationScopeListener)), this callback method is invoked.
-
-
-
Method Detail
-
newElementAvailable
void newElementAvailable()
An observedSimulationTimeEvaluationScopeinvokes this callback method once a new measurement has been collected. The new measurement can be retrieved by means of the scope'sAbstractEvaluationScope.next()method or by using the scope'siterator.
-
preUnregister
void preUnregister()
If the observed scope is about to detach an observer (e.g., due to a call ofSimulationTimeEvaluationScope.removeAllListeners()orSimulationTimeEvaluationScope.removeListener(ISimulationEvaluationScopeListener)), this callback method is invoked.
-
-