Interface ISimulationEvaluationScopeListener
-
- All Known Implementing Classes:
SimulationTimePowerCalculator
public interface ISimulationEvaluationScopeListener
By implementing this interface, classes are enabled to observeSimulationTimeEvaluationScope
s. Clients may want to do so in order to keep track of measurements that are collected each time the scope's underlyingSlidingWindow
moves on.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
newElementAvailable()
An observedSimulationTimeEvaluationScope
invokes this callback method once a new measurement has been collected.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.
-
-
-
Method Detail
-
newElementAvailable
void newElementAvailable()
An observedSimulationTimeEvaluationScope
invokes 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.
-
-